Add option to tree_string to include anonymous tokens

This commit is contained in:
Max Brunsfeld 2015-10-28 12:09:28 -07:00
parent 9b68ee62c8
commit 36eae5d5e9
5 changed files with 22 additions and 14 deletions

View file

@ -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) {