Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 4569aef

Browse files
markusjwetzelacao
authored andcommitted
Add directive highlighting for type system directives
1 parent 2743fa0 commit 4569aef

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

grammars/graphql.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
"1": { "name": "support.type.graphql" }
8282
}
8383
},
84+
{ "include": "#graphql-comment" },
85+
{ "include": "#graphql-description-docstring" },
86+
{ "include": "#graphql-description-singleline" },
87+
{ "include": "#graphql-directive" },
8488
{ "include": "#graphql-ampersand" },
8589
{ "include": "#graphql-comma" }
8690
]
@@ -130,6 +134,7 @@
130134
{ "include": "#graphql-comment" },
131135
{ "include": "#graphql-description-docstring" },
132136
{ "include": "#graphql-description-singleline" },
137+
{ "include": "#graphql-directive" },
133138
{ "include": "#graphql-variable-definitions" },
134139
{ "include": "#graphql-type-object" },
135140
{ "include": "#graphql-colon" },
@@ -186,6 +191,7 @@
186191
{ "include": "#graphql-comment" },
187192
{ "include": "#graphql-description-docstring" },
188193
{ "include": "#graphql-description-singleline" },
194+
{ "include": "#graphql-directive" },
189195
{ "include": "#graphql-skip-newlines" }
190196
]
191197
},
@@ -261,6 +267,7 @@
261267
{ "include": "#graphql-comment" },
262268
{ "include": "#graphql-description-docstring" },
263269
{ "include": "#graphql-description-singleline" },
270+
{ "include": "#graphql-directive" },
264271
{ "include": "#graphql-colon" },
265272
{ "include": "#graphql-input-types" },
266273
{ "include": "#graphql-variable-assignment" },
@@ -536,6 +543,7 @@
536543
{ "include": "#graphql-comment" },
537544
{ "include": "#graphql-description-docstring" },
538545
{ "include": "#graphql-description-singleline" },
546+
{ "include": "#graphql-directive" },
539547
{ "include": "#graphql-value" },
540548
{ "include": "#graphql-skip-newlines" }
541549
]
@@ -622,10 +630,15 @@
622630
{ "include": "#graphql-comment" },
623631
{ "include": "#graphql-description-docstring" },
624632
{ "include": "#graphql-description-singleline" },
633+
{ "include": "#graphql-directive" },
625634
{ "include": "#graphql-enum-value" },
626635
{ "include": "#literal-quasi-embedded" }
627636
]
628-
}
637+
},
638+
{ "include": "#graphql-comment" },
639+
{ "include": "#graphql-description-docstring" },
640+
{ "include": "#graphql-description-singleline" },
641+
{ "include": "#graphql-directive" }
629642
]
630643
},
631644
"graphql-enum-value": {

0 commit comments

Comments
 (0)