fix: improve indentation on GQL editors

This commit is contained in:
Andrew Bastin 2022-05-07 23:33:48 +05:30
parent c3b784c680
commit 127bd7318f

View file

@ -338,15 +338,17 @@ TypeSystemDirectiveLocation {
| @specialize<Name, "INPUT_FIELD_DEFINITION">
}
@skip { Whitespace | Comment }
@skip { whitespace | Comment }
@tokens {
Whitespace {
whitespace {
std.whitespace+
}
StringValue {
"\"\"\"" (!["] | "\\n" | "\"" "\""? !["])* "\"\"\"" | "\"" !["\\\n]* "\""
}
IntValue {
"-"? "0"
| "-"? std.digit+
@ -367,6 +369,8 @@ TypeSystemDirectiveLocation {
Comma {
","
}
"{" "}" "[" "]"
}
@detectDelim