From 65db19fc5a44797dbfce00352acea24952c7a480 Mon Sep 17 00:00:00 2001 From: "Markus J. Wetzel" Date: Mon, 27 Sep 2021 23:57:15 +0200 Subject: [PATCH] Add directive highlighting for type system directives --- syntaxes/graphql.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/syntaxes/graphql.json b/syntaxes/graphql.json index dd12b0b..ebf0170 100644 --- a/syntaxes/graphql.json +++ b/syntaxes/graphql.json @@ -137,6 +137,7 @@ { "include": "#graphql-comment" }, { "include": "#graphql-description-docstring" }, { "include": "#graphql-description-singleline" }, + { "include": "#graphql-directive" }, { "include": "#graphql-variable-definitions" }, { "include": "#graphql-type-object" }, { "include": "#graphql-colon"}, @@ -255,6 +256,7 @@ { "include": "#graphql-comment" }, { "include": "#graphql-description-docstring" }, { "include": "#graphql-description-singleline" }, + { "include": "#graphql-directive" }, { "include": "#graphql-colon" }, { "include": "#graphql-input-types"}, { "include": "#graphql-variable-assignment"}, @@ -471,6 +473,7 @@ { "include": "#graphql-comment" }, { "include": "#graphql-description-docstring" }, { "include": "#graphql-description-singleline" }, + { "include": "#graphql-directive" }, { "include": "#graphql-value" }, { "include": "#graphql-skip-newlines" } ] @@ -555,10 +558,15 @@ { "include": "#graphql-comment" }, { "include": "#graphql-description-docstring" }, { "include": "#graphql-description-singleline" }, + { "include": "#graphql-directive" }, { "include": "#graphql-enum-value" }, { "include": "#literal-quasi-embedded" } ] - } + }, + { "include": "#graphql-comment" }, + { "include": "#graphql-description-docstring" }, + { "include": "#graphql-description-singleline" }, + { "include": "#graphql-directive" } ] }, "graphql-enum-value": {