Incorrect cursor position when reporting errors
frabert opened this issue · comments
Francesco Bertolaccini commented
When I try getting the cursor position for a syntax error (using exception.Data["cursor"]) I always get the last column on the last line, no matter where the error was detected
John Gietzen commented
I'm not able to reproduce this problem.
Using the workbench (which uses the cursor data), I can see the cursor being updated in this example:
Grammar
a = "a"* #ERROR{ "Here" }
Subject
aaaaaaaaaabaaaaaaaaaa
This reports an error on column 11:
John Gietzen commented
I'm closing this issue for now to keep things tidy, but if you have a repro case feel free to reopen.