Skip to content

Commit c0dd623

Browse files
committed
fix(syntax): highlight 'subscription' operation
1 parent f4197b5 commit c0dd623

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntaxes/graphql.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"graphql-operation-def": {
3030
"patterns": [
31-
{ "include": "#graphql-query-mutation" },
31+
{ "include": "#graphql-operation-type" },
3232
{ "include": "#graphql-name" },
3333
{ "include": "#graphql-variable-definitions" },
3434
{ "include": "#graphql-directive" },
@@ -55,8 +55,8 @@
5555
{ "include": "#literal-quasi-embedded" }
5656
]
5757
},
58-
"graphql-query-mutation": {
59-
"match": "\\s*\\b(query|mutation)\\b",
58+
"graphql-operation-type": {
59+
"match": "\\s*\\b(query|mutation|subscription)\\b",
6060
"captures": {
6161
"1": { "name": "keyword.operation.graphql" }
6262
}

0 commit comments

Comments
 (0)