Cleanup debug logging in parser

This commit is contained in:
Max Brunsfeld 2015-09-20 23:41:40 -07:00
parent 7be067a2e9
commit aba8af9e5b
3 changed files with 21 additions and 20 deletions

View file

@ -49,7 +49,8 @@ void ts_document_set_input_string(TSDocument *document, const char *text) {
}
void ts_document_edit(TSDocument *document, TSInputEdit edit) {
if (!document->tree) return;
if (!document->tree)
return;
size_t max_chars = ts_tree_total_size(document->tree).chars;
if (edit.position > max_chars)