Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file path and line number errors when using
+
, *
and ()
This PR fix file path and line number errors when using `+`, `*` or `()`. I discovered this when using the above new grammar in Lrama. Refs: ruby/lrama@df39a6f Refs: https://github.com/ruby/lrama/blob/df39a6f36535ac65e08a0a49eb84d6b944622e22/lib/lrama/parser.rb#L1270-L1282 As it stands, the second argument to `module_eval` is the absolute path to racc/grammarfileparser.rb and the line number. Perhaps specifying `@filename` and` @scanner.lineno + 1` is correct? https://github.com/ydah/racc/blob/ea43e57012355c726b914c52fdcb32708d1091c6/lib/racc/grammarfileparser.rb#L373
- Loading branch information