Commit 8f108c1a authored by Albert Magyar's avatar Albert Magyar Committed by mergify[bot]
Browse files

Add explicit EOF to top-level parser rule (#1217)

* Fixes #1154
* Tests that #1154 example produces SyntaxErrorsException
* Generally helps catch trailing syntax errors
* Performance-neutral relative to previous grammar
* Recommended by antlr4 devs, can help performance in some cases
* See antlr/antlr4#1540
parent 4c3c7e32
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment