From f30ae4da0d593810544c10667b1b9c3e0b438082 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Sat, 22 Oct 2022 14:00:03 +0300 Subject: [PATCH] highlights(d): use more specific groups --- queries/d/highlights.scm | 48 ++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/queries/d/highlights.scm b/queries/d/highlights.scm index 9a0887f3a..8bec1ca10 100644 --- a/queries/d/highlights.scm +++ b/queries/d/highlights.scm @@ -114,44 +114,25 @@ ] @repeat [ - "__gshared" "__parameters" - "abstract" "alias" "align" "asm" "auto" "body" "class" - "const" "debug" - "deprecated" "enum" "export" - "extern" - "final" "goto" - "immutable" - "inout" "interface" "invariant" - "lazy" "macro" - "nothrow" - "null" "out" "override" "package" - "private" - "protected" - "public" - "pure" - "ref" - "scope" - "shared" "static" "struct" - "synchronized" "template" "union" "unittest" @@ -219,6 +200,35 @@ "try" ] @exception +"null" @constant.builtin + +[ + "__gshared" + "const" + "immutable" + "shared" +] @storageclass + +[ + "abstract" + "deprecated" + "extern" + "final" + "inout" + "lazy" + "nothrow" + "private" + "protected" + "public" + "pure" + "ref" + "scope" + "synchronized" +] @type.qualifier + +(alias_assignment + . (identifier) @type.definition) + (module_declaration "module" @include )