mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
c/c++ highlights: *& are @type or @operator based on context (#4278)
This commit is contained in:
parent
45e038f4d5
commit
a3ed9169df
@ -51,6 +51,9 @@
|
||||
(preproc_directive)
|
||||
] @keyword.directive
|
||||
|
||||
(pointer_declarator "*" @type.builtin)
|
||||
(abstract_pointer_declarator "*" @type.builtin)
|
||||
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user