Skip to content

Commit

Permalink
Fix issue with symbol pos map
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamugare committed Aug 30, 2024
1 parent 6efea50 commit 47f548c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syncode/parsers/incremental_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,4 +370,7 @@ def _get_nonterminal_start_pos(self, s:Iterable[Tree]) -> int:
if type(s[0]) == Token:
return s[0].start_pos
else:
s = s[0].children
idx = 0
while s[idx] is None: # Skip None values
idx += 1
s = s[idx].children

0 comments on commit 47f548c

Please sign in to comment.