mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
C++: Improve parameter highlighting
This adds parameter highlighting for reference parameters and defaulted parameters. For example: ```cpp auto strip_prefix_only(std::string& s, Hidden_Homonym skip_hidden_homonym = {}) const -> Affixing_Result<Prefix>; ``` Previously both parameters were only highlighted as variables.
This commit is contained in:
parent
c099dde2a7
commit
f5d95de227
@ -49,6 +49,13 @@
|
|||||||
(this) @variable.builtin
|
(this) @variable.builtin
|
||||||
(nullptr) @constant.builtin
|
(nullptr) @constant.builtin
|
||||||
|
|
||||||
|
; Parameters
|
||||||
|
|
||||||
|
(parameter_declaration
|
||||||
|
declarator: (reference_declarator (identifier) @variable.parameter))
|
||||||
|
(optional_parameter_declaration
|
||||||
|
declarator: (identifier) @variable.parameter)
|
||||||
|
|
||||||
; Keywords
|
; Keywords
|
||||||
|
|
||||||
(template_argument_list (["<" ">"] @punctuation.bracket))
|
(template_argument_list (["<" ">"] @punctuation.bracket))
|
||||||
|
Loading…
Reference in New Issue
Block a user