highlights(cpp): fix constructor call highlighting

Address #883
This commit is contained in:
Stephan Seitz 2021-01-29 16:31:27 +01:00 committed by Thomas Vigouroux
parent 3bef806c18
commit 9eaf1840b3

View file

@ -71,6 +71,9 @@
function: (field_expression
field: (field_identifier) @function))
((call_expression
function: (identifier) @constructor)
(#match? @constructor "^[A-Z]"))
((call_expression
function: (scoped_identifier
name: (identifier) @constructor))