mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +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)
|
(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…
Reference in New Issue
Block a user