diff --git a/packages/codemirror-lang-graphql/src/syntax.grammar b/packages/codemirror-lang-graphql/src/syntax.grammar index dd3f27346..6ba64976d 100644 --- a/packages/codemirror-lang-graphql/src/syntax.grammar +++ b/packages/codemirror-lang-graphql/src/syntax.grammar @@ -299,8 +299,8 @@ Description { } OperationType { - @specialize - | @specialize + @specialize + | @specialize | @specialize } @@ -317,7 +317,7 @@ ExecutableDirectiveLocation { @specialize | @specialize | @specialize - | @specialize + | @specialize | @specialize | @specialize | @specialize @@ -338,22 +338,24 @@ TypeSystemDirectiveLocation { | @specialize } -@skip { Whitespace | Comment } +@skip { whitespace | Comment } @tokens { - Whitespace { + whitespace { std.whitespace+ } + StringValue { "\"\"\"" (!["] | "\\n" | "\"" "\""? !["])* "\"\"\"" | "\"" !["\\\n]* "\"" } + IntValue { "-"? "0" | "-"? std.digit+ } FloatValue { - IntValue ("." std.digit+ | ("e" | "E") IntValue+) + IntValue ("." std.digit+ | ("e" | "E") IntValue+) } @precedence { IntValue, FloatValue } @@ -367,6 +369,8 @@ TypeSystemDirectiveLocation { Comma { "," } + + "{" "}" "[" "]" } -@detectDelim \ No newline at end of file +@detectDelim