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

This commit is contained in:
Sam McCall 2022-10-15 03:05:39 +02:00 committed by GitHub
parent 45e038f4d5
commit a3ed9169df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

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

View file

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