Browse Source

Fixed 'end_pos' for xearley, 2nd try (issue #534)

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.3
Erez Sh 5 years ago
parent
commit
3a04f49860
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lark/parsers/xearley.py

+ 1
- 1
lark/parsers/xearley.py View File

@@ -93,7 +93,7 @@ class Parser(BaseParser):
if token is not None:
token.end_line = text_line
token.end_column = text_column + 1
token.end_pos = i
token.end_pos = i + 1

new_item = item.advance()
label = (new_item.s, new_item.start, i)


Loading…
Cancel
Save