Skip to content

Commit

Permalink
Correct grammar production for ‘IdentiferName’ (#26)
Browse files Browse the repository at this point in the history
* Update grammar-expression.md - ‘IdentifierName’

The grammar production for ‘IdentifierName‘, specifically the second alternative ‘SingleQuotedIdentifier’, is missing the opening and closing ‘single quote’ (U+0027) tokens.

This is a correction to make that consistent with the syntax shown in the grammar production for ‘TextLiteral’.

* Correct grammar production - ‘IdentiferName’

The grammar production for ‘IdentifierName‘, specifically the second alternative ‘SingleQuotedIdentifier’, is missing the opening and closing ‘single quote’ (U+0027) tokens.

This is a correction to make that consistent with the syntax shown in the grammar production for ‘TextLiteral’.
  • Loading branch information
jgrisham authored Apr 8, 2022
1 parent 57a63c2 commit a9c0d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/expression-grammar.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Identifier :

IdentifierName :
IdentifierStartCharacter IdentifierContinueCharacters?
SingleQuotedIdentifier
`'` SingleQuotedIdentifier `'`

IdentifierStartCharacter :
LetterCharacter
Expand Down
2 changes: 1 addition & 1 deletion docs/expression-grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ An identifier is a name used to refer to a value. Identifiers can either be regu

&emsp;&emsp;<a name="IdentifierName"></a>*IdentifierName* **:**<br>
&emsp;&emsp;&emsp;&emsp;*[IdentifierStartCharacter](#IdentifierStartCharacter)*&emsp;*[IdentifierContinueCharacters](#IdentifierContinueCharacters)*<sub>opt</sub><br>
&emsp;&emsp;&emsp;&emsp;*[SingleQuotedIdentifier](#SingleQuotedIdentifier)*<br>
&emsp;&emsp;&emsp;&emsp;`'`&emsp;*[SingleQuotedIdentifier](#SingleQuotedIdentifier)*&emsp;`'`<br>

&emsp;&emsp;<a name="IdentifierStartCharacter"></a>*IdentifierStartCharacter* **:**<br>
&emsp;&emsp;&emsp;&emsp;*[LetterCharacter](#LetterCharacter)*<br>
Expand Down

0 comments on commit a9c0d69

Please sign in to comment.