Open taodongl opened 1 year ago
I guess it's because it points to the beginning of the rule where the issue occurred?
@tomtau oh yes, my example isn't good (pest and antlr report the same position). I use a new json example:
{"name": "hello, the" world"}
For pest: location: Pos(0), line_col: Pos((1, 1))
For antlr: line 1:22 token recognition error at: 'w'
BTW a similar issue: https://github.com/pest-parser/pest/discussions/955 which was resolved by correcting the grammar.
Describe the bug I want to use pest to analyze syntax issue of files (I used to deal with it using Antlr in Java lang), but I can't get right position.
To Reproduce
Expected behavior
Current behavior