Remove rename symbol when reusing a previously-renamed tree

This commit is contained in:
Max Brunsfeld 2017-07-21 16:24:33 -07:00
parent cf445da253
commit 2437287e3e

View file

@ -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}));
}