From ffc85e270f2c2f868b2175c187af2d5021ccbea7 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 27 Jan 2024 14:37:46 -0700 Subject: [PATCH] GML: Add IDENTIFIER as a valid value See the comment in the .bnf for an explanation --- src/main/resources/grammar/SerenityOS GML.bnf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/grammar/SerenityOS GML.bnf b/src/main/resources/grammar/SerenityOS GML.bnf index fc55d08..6968606 100644 --- a/src/main/resources/grammar/SerenityOS GML.bnf +++ b/src/main/resources/grammar/SerenityOS GML.bnf @@ -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