From 6a61461d18039de7ebc8fd51f2b6ec0d4e562431 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 28 Nov 2021 15:12:08 +0100 Subject: highlights(hack): add keywords implements --- queries/hack/highlights.scm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'queries/hack') diff --git a/queries/hack/highlights.scm b/queries/hack/highlights.scm index 1bde66632..c7e481a80 100644 --- a/queries/hack/highlights.scm +++ b/queries/hack/highlights.scm @@ -21,6 +21,7 @@ "await" "type" "interface" + "implements" "class" "protected" "private" @@ -32,7 +33,7 @@ (xhp_modifier) (final_modifier) "extends" - "insteadof" + "insteadof" ] @keyword "use" @include @@ -61,12 +62,20 @@ "arraykey" "void" "nonnull" - (null) "mixed" "dynamic" "noreturn" ] @type.builtin +[ + (null) +] @constant.builtin + +[ + (true) + (false) +] @boolean + (type_specifier) @type (new_expression (_) @type) @@ -83,7 +92,6 @@ (qualified_identifier (identifier) @type .)) -(function_type_specifier) @function (attribute_modifier) @attribute [ "@required" -- cgit v1.2.3-70-g09d2