Skip to content

Commit 52017e3

Browse files
authored
Add block strings to GraphQL grammar (#282)
1 parent a224687 commit 52017e3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.changeset/kind-dodos-repair.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vscode-apollo": patch
3+
---
4+
5+
Improve syntax highlighting for GraphQL block strings

syntaxes/graphql.json

+14
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,19 @@
485485
"1": { "name": "constant.language.null.graphql" }
486486
}
487487
},
488+
"graphql-block-string-value": {
489+
"contentName": "string.quoted.triple.block.graphql",
490+
"begin": "\\s*+((\"\"\"))",
491+
"end": "\\s*+((\"\"\"))",
492+
"beginCaptures": {
493+
"1": { "name": "string.quoted.triple.block.graphql" },
494+
"2": { "name": "punctuation.definition.string.begin.graphql" }
495+
},
496+
"endCaptures": {
497+
"1": { "name": "string.quoted.triple.block.graphql" },
498+
"2": { "name": "punctuation.definition.string.end.graphql" }
499+
}
500+
},
488501
"graphql-string-value": {
489502
"contentName": "string.quoted.double.graphql",
490503
"begin": "\\s*+((\"))",
@@ -553,6 +566,7 @@
553566
"patterns": [
554567
{ "include": "#graphql-variable-name" },
555568
{ "include": "#graphql-float-value" },
569+
{ "include": "#graphql-block-string-value" },
556570
{ "include": "#graphql-string-value" },
557571
{ "include": "#graphql-boolean-value" },
558572
{ "include": "#graphql-null-value" },

0 commit comments

Comments
 (0)