Add TSInput option to measure columns in bytes not characters
This commit is contained in:
parent
b862db766e
commit
c66fddd3aa
6 changed files with 26 additions and 5 deletions
|
|
@ -26,8 +26,13 @@ void ts_document_free(TSDocument *self) {
|
|||
parser_destroy(&self->parser);
|
||||
if (self->tree)
|
||||
ts_tree_release(self->tree);
|
||||
ts_document_set_input(self,
|
||||
(TSInput){ NULL, NULL, NULL, TSInputEncodingUTF8 });
|
||||
ts_document_set_input(self, (TSInput){
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
TSInputEncodingUTF8,
|
||||
false
|
||||
});
|
||||
ts_free(self);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue