c/c++ highlights: *& are @type or @operator based on context (#4278)
This commit is contained in:
parent
45e038f4d5
commit
a3ed9169df
2 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue