Update trees' metadata bits when setting symbol back to word token

This commit is contained in:
Max Brunsfeld 2019-01-29 15:30:13 -08:00
parent f6d014f3f4
commit 213ccfd3a4
3 changed files with 20 additions and 10 deletions

View file

@ -1363,7 +1363,7 @@ static void ts_parser__advance(TSParser *self, StackVersion version, bool allow_
);
MutableSubtree mutable_lookahead = ts_subtree_make_mut(&self->tree_pool, lookahead);
ts_subtree_set_symbol(&mutable_lookahead, self->language->keyword_capture_token);
ts_subtree_set_symbol(&mutable_lookahead, self->language->keyword_capture_token, self->language);
lookahead = ts_subtree_from_mut(mutable_lookahead);
continue;
}