Cleanup debug logging in parser
This commit is contained in:
parent
7be067a2e9
commit
aba8af9e5b
3 changed files with 21 additions and 20 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue