c/c++ highlights: *& are @type or @operator based on context (#4278)
commita3ed9169df8d0a56ab4f698d2c90e7e6b4404633
authorSam McCall <sam.mccall@gmail.com>
dateSat 15 Oct 2022, 03:05 (4 years ago)
parent45e038f
runtime/queries/c/highlights.scm+3
@@ -51,6 +51,9 @@
5151 (preproc_directive)
5252] @keyword.directive
5353
54+(pointer_declarator "*" @type.builtin)
55+(abstract_pointer_declarator "*" @type.builtin)
56+
5457[
5558 "+"
5659 "-"
runtime/queries/cpp/highlights.scm+4
@@ -34,6 +34,10 @@
3434(auto) @type
3535"decltype" @type
3636
37+(ref_qualifier ["&" "&&"] @type.builtin)
38+(reference_declarator ["&" "&&"] @type.builtin)
39+(abstract_reference_declarator ["&" "&&"] @type.builtin)
40+
3741; Constants
3842
3943(this) @variable.builtin