summaryrefslogtreecommitdiff
path: root/queries/cpp
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-07-20 08:00:28 +0200
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-07-20 09:00:07 +0200
commit58d52ea62d163096f8a1369c6a3c5faff316b68d (patch)
treee9876db3b799b9579915897dfa782cff595fe888 /queries/cpp
parent3c0684f7f26638020d973c7c9d478b085a8bac30 (diff)
C++ highlights: Highlight variadic parameters
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index c0a76c13..05f8d184 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -7,6 +7,9 @@
((identifier) @field
(#match? @field "_$"))
+; function(Foo ...foo)
+(variadic_parameter_declaration) @parameter
+
;(field_expression) @parameter ;; How to highlight this?
(template_function
name: (identifier) @function)
@@ -103,3 +106,4 @@
] @keyword
"::" @operator
+"..." @operator