c/c++ highlights: *& are @type or @operator based on context (#4278)

pull/4287/head
Sam McCall 2 years ago committed by GitHub
parent 45e038f4d5
commit a3ed9169df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,6 +51,9 @@
(preproc_directive) (preproc_directive)
] @keyword.directive ] @keyword.directive
(pointer_declarator "*" @type.builtin)
(abstract_pointer_declarator "*" @type.builtin)
[ [
"+" "+"
"-" "-"

@ -34,6 +34,10 @@
(auto) @type (auto) @type
"decltype" @type "decltype" @type
(ref_qualifier ["&" "&&"] @type.builtin)
(reference_declarator ["&" "&&"] @type.builtin)
(abstract_reference_declarator ["&" "&&"] @type.builtin)
; Constants ; Constants
(this) @variable.builtin (this) @variable.builtin

Loading…
Cancel
Save