Skip to content

Commit

Permalink
GML: Add IDENTIFIER as a valid value
Browse files Browse the repository at this point in the history
See the comment in the .bnf for an explanation
  • Loading branch information
mattco98 committed Jan 27, 2024
1 parent d8bcf09 commit ffc85e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/resources/grammar/SerenityOS GML.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,10 @@ Value ::=
| STRING
| Array
| Component
// IDENTIFIER is not valid here, however when completion attempts to run inside
// of an array, the identifier token it inserts completely breaks the grammar. The
// only way to prevent that completion is to make IDENTIFIER a valid Value and
// handle the error highlighting in an Annotator
| IDENTIFIER

Array ::= OPEN_BRACKET [Value (COMMA Value)*] CLOSE_BRACKET

0 comments on commit ffc85e2

Please sign in to comment.