Mark repeat symbols as anonymous
This commit is contained in:
parent
fa8993460e
commit
1c66d90203
2 changed files with 4 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ static inline size_t ts_node__offset_row(TSNode self) {
|
|||
|
||||
static inline bool ts_node__is_relevant(TSNode self, bool include_anonymous) {
|
||||
const TSTree *tree = ts_node__tree(self);
|
||||
return include_anonymous ? tree->visible : tree->named;
|
||||
return include_anonymous ? tree->visible : tree->visible && tree->named;
|
||||
}
|
||||
|
||||
static inline size_t ts_node__relevant_child_count(TSNode self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue