File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed
packages/vscode-graphql-syntax Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' vscode-graphql-syntax ' : patch
3
+ ---
4
+
5
+ Add syntax highlighting support for the repeatable keyword on a directive definition.
Original file line number Diff line number Diff line change 390
390
"2" : {
391
391
"name" : " entity.name.function.directive.graphql"
392
392
},
393
- "3" : { "name" : " keyword.on.graphql" },
394
- "4" : { "name" : " support.type.graphql" }
393
+ "3" : {
394
+ "name" : " keyword.repeatable.graphql"
395
+ },
396
+ "4" : {
397
+ "name" : " keyword.on.graphql"
398
+ },
399
+ "5" : {
400
+ "name" : " support.type.graphql"
401
+ }
395
402
},
396
403
"patterns" : [
397
404
{
398
405
"include" : " #graphql-variable-definitions"
399
406
},
400
407
{
401
- "begin" : " \\ s*(\\ bon\\ b)\\ s*([_A-Za-z]*)" ,
408
+ "begin" : " \\ s*(\\ brepeatable \\ b)? \\ s*( \\ bon\\ b)\\ s*([_A-Za-z]*)" ,
402
409
"end" : " (?=.)" ,
403
410
"applyEndPatternLast" : 1 ,
404
411
"beginCaptures" : {
405
412
"1" : {
406
- "name" : " keyword.on .graphql"
413
+ "name" : " keyword.repeatable .graphql"
407
414
},
408
415
"2" : {
416
+ "name" : " keyword.on.graphql"
417
+ },
418
+ "3" : {
409
419
"name" : " support.type.location.graphql"
410
420
}
411
421
},
Original file line number Diff line number Diff line change 5
5
directive @test (testArg : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
6
6
directive @onArg on ARGUMENT_DEFINITION
7
7
directive @onAllDefs on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | INTERFACE | UNION | ENUM_VALUE | INPUT_OBJECT | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
8
+ directive @onRepeatable repeatable on FIELD_DEFINITION
8
9
9
10
enum Episode {
10
11
NEWHOPE
Original file line number Diff line number Diff line change @@ -329,6 +329,15 @@ INPUT_OBJECT | support.type.location.graphql
329
329
ARGUMENT_DEFINITION | support.type.location.graphql
330
330
| |
331
331
INPUT_FIELD_DEFINITION | support.type.location.graphql
332
+ directive | keyword.directive.graphql
333
+ |
334
+ @onRepeatable | entity.name.function.directive.graphql
335
+ |
336
+ repeatable | keyword.repeatable.graphql
337
+ |
338
+ on | keyword.on.graphql
339
+ |
340
+ FIELD_DEFINITION | support.type.location.graphql
332
341
|
333
342
enum | meta.enum.graphql keyword.enum.graphql
334
343
| meta.enum.graphql
You can’t perform that action at this time.
0 commit comments