on master help sign in
c/c++ highlights: *& are @type or @operator based on context (#4278)
a3ed916Sam McCall
runtime/queries/c/highlights.scm+3
@@ -51,6 +51,9 @@
51 (preproc_directive)
51 (preproc_directive)
52] @keyword.directive
52] @keyword.directive
53
53
54+(pointer_declarator "*" @type.builtin)
55+(abstract_pointer_declarator "*" @type.builtin)
56+
54[
57[
55 "+"
58 "+"
56 "-"
59 "-"
runtime/queries/cpp/highlights.scm+4
@@ -34,6 +34,10 @@
34(auto) @type
34(auto) @type
35"decltype" @type
35"decltype" @type
36
36
37+(ref_qualifier ["&" "&&"] @type.builtin)
38+(reference_declarator ["&" "&&"] @type.builtin)
39+(abstract_reference_declarator ["&" "&&"] @type.builtin)
40+
37; Constants
41; Constants
38
42
39(this) @variable.builtin
43(this) @variable.builtin