Merge pull request #126 from tree-sitter/mb-fix-epsilon-rule-loophole

Don't allow an epsilon start rule if it is used in other rules
This commit is contained in:
Max Brunsfeld 2018-01-23 17:19:55 -08:00 committed by GitHub
commit b520bdd2d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 18 deletions

View file

@ -1,2 +1,4 @@
The rule `rule_2` matches the empty string.
Tree-sitter currently does not support syntactic rules that match the empty string.
Tree-sitter does not support syntactic rules that match the empty string
unless they are used only as the grammar's start rule.