Improve error reporting by removing Statement rule description; correct typo

This commit is contained in:
Tony Garnock-Jones 2016-05-27 18:45:32 -04:00
parent eef8e09f11
commit d4e4cc6bd6
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ ES5 {
multiLineComment = "/*" (~"*/" sourceCharacter)* "*/"
singleLineComment = "//" (~lineTerminator sourceCharacter)*
identifier (an indentifier) = ~reservedWord identifierName
identifier (an identifier) = ~reservedWord identifierName
identifierName = identifierStart identifierPart*
identifierStart = letter | "$" | "_"
@ -395,7 +395,7 @@ ES5 {
// §A.4 Statements -- http://ecma-international.org/ecma-262/5.1/#sec-A.4
Statement (a statement)
Statement
= Block
| VariableStatement
| EmptyStatement