diff options
Diffstat (limited to 'queries/hack')
| -rw-r--r-- | queries/hack/highlights.scm | 14 |
1 files changed, 11 insertions, 3 deletions
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" |
