Add option to tree_string to include anonymous tokens
This commit is contained in:
parent
9b68ee62c8
commit
36eae5d5e9
5 changed files with 22 additions and 14 deletions
|
|
@ -166,7 +166,7 @@ const char *ts_node_name(TSNode self, const TSDocument *document) {
|
|||
|
||||
const char *ts_node_string(TSNode self, const TSDocument *document) {
|
||||
return ts_tree_string(ts_node__tree(self),
|
||||
document->parser.language->symbol_names);
|
||||
document->parser.language->symbol_names, false);
|
||||
}
|
||||
|
||||
bool ts_node_eq(TSNode self, TSNode other) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue