Browse Source

Fixed 'end_pos' for xearley (issue #534)

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

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

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


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


Loading…
Cancel
Save