summaryrefslogtreecommitdiff
path: root/queries/cpp
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-01-29 16:31:27 +0100
committerThomas Vigouroux <tomvig38@gmail.com>2021-01-29 17:01:23 +0100
commit9eaf1840b36095ddf147986d522b57d2d85262ab (patch)
tree6016caff9e9a32457ab575add7d5483e9bde8d3e /queries/cpp
parent3bef806c1852cb4ccbb297e71ad1a7a1d762e1f8 (diff)
highlights(cpp): fix constructor call highlighting
Address #883
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index 75c201ee..7110f983 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -72,6 +72,9 @@
field: (field_identifier) @function))
((call_expression
+ function: (identifier) @constructor)
+(#match? @constructor "^[A-Z]"))
+((call_expression
function: (scoped_identifier
name: (identifier) @constructor))
(#match? @constructor "^[A-Z]"))