From c44c7e4367829ed47943082291eefbd2f3326917 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 22 Oct 2022 17:03:04 +0300 Subject: [PATCH] highlights(graphql): fix captures --- queries/graphql/highlights.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/queries/graphql/highlights.scm b/queries/graphql/highlights.scm index cedf8e113..3a9d47dad 100644 --- a/queries/graphql/highlights.scm +++ b/queries/graphql/highlights.scm @@ -19,12 +19,6 @@ (input_object_type_definition (name) @type) -(directive_definition - (name) @type) - -(directive_definition - "@" @type) - (scalar_type_extension (name) @type) @@ -46,7 +40,14 @@ (named_type (name) @type) -(directive) @type +; Directives +;----------- + +(directive_definition + "@" @attribute + (name) @attribute) + +(directive) @attribute ; Properties ;-----------