aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/cpp')
-rw-r--r--runtime/queries/cpp/highlights.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/cpp/highlights.scm b/runtime/queries/cpp/highlights.scm
index 509dcdf7..c1d14a0b 100644
--- a/runtime/queries/cpp/highlights.scm
+++ b/runtime/queries/cpp/highlights.scm
@@ -49,6 +49,13 @@
(this) @variable.builtin
(nullptr) @constant.builtin
+; Parameters
+
+(parameter_declaration
+ declarator: (reference_declarator (identifier) @variable.parameter))
+(optional_parameter_declaration
+ declarator: (identifier) @variable.parameter)
+
; Keywords
(template_argument_list (["<" ">"] @punctuation.bracket))