Fix handling of extra tokens in ts_tree_cursor_current_field_id
This commit is contained in:
parent
7ad087ce27
commit
30e73505e1
2 changed files with 39 additions and 1 deletions
|
|
@ -273,6 +273,7 @@ TSFieldId ts_tree_cursor_current_field_id(const TSTreeCursor *_self) {
|
|||
|
||||
while (field_map < field_map_end) {
|
||||
if (
|
||||
!ts_subtree_extra(*entry->subtree) &&
|
||||
!field_map->inherited &&
|
||||
field_map->child_index == entry->structural_child_index
|
||||
) return field_map->field_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue