Remove rename symbol when reusing a previously-renamed tree
This commit is contained in:
parent
cf445da253
commit
2437287e3e
1 changed files with 2 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ void ts_tree_assign_parents(Tree *self, TreePath *path, const TSLanguage *langua
|
|||
child->context.offset = offset;
|
||||
if (!child->extra && rename_sequence && rename_sequence[non_extra_index] != 0) {
|
||||
child->context.rename_symbol = rename_sequence[non_extra_index];
|
||||
} else {
|
||||
child->context.rename_symbol = 0;
|
||||
}
|
||||
array_push(path, ((TreePathEntry){child, length_zero(), 0}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue