Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: improve indentation on GQL editors
Andrew Bastin127bd7318f94
diff --git a/packages/codemirror-lang-graphql/src/syntax.grammar b/packages/codemirror-lang-graphql/src/syntax.grammarindex 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<Name, "query">- | @specialize<Name, "mutation">+ @specialize<Name, "query">+ | @specialize<Name, "mutation">| @specialize<Name, "subscription">}@@ -317,7 +317,7 @@ ExecutableDirectiveLocation {@specialize<Name, "QUERY">| @specialize<Name, "MUTATION">| @specialize<Name, "SUBSCRIPTION">- | @specialize<Name, "FIELD">+ | @specialize<Name, "FIELD">| @specialize<Name, "FRAGMENT_DEFINITION">| @specialize<Name, "FRAGMENT_SPREAD">| @specialize<Name, "INLINE_FRAGMENT">@@ -338,22 +338,24 @@ TypeSystemDirectiveLocation {| @specialize<Name, "INPUT_FIELD_DEFINITION">}-@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