Fix cpp-highlights: wrong capture name used in regex

This commit is contained in:
Stephan Seitz 2020-06-26 17:12:10 +02:00 committed by Thomas Vigouroux
parent 75bce1dc93
commit 2d224ac3bf

View file

@ -52,7 +52,7 @@
((call_expression ((call_expression
function: (field_expression function: (field_expression
field: (field_identifier) @constructor)) field: (field_identifier) @constructor))
(#match? @function "^[A-Z]")) (#match? @constructor "^[A-Z]"))
;; constructing a type in a intizializer list: Constructor (): **SuperType (1)** ;; constructing a type in a intizializer list: Constructor (): **SuperType (1)**
((field_initializer ((field_initializer
@ -64,8 +64,7 @@
; Constants ; Constants
;(this) @constant.builtin (this) @constant.builtin
(this) @keyword
(nullptr) @constant (nullptr) @constant
(true) @boolean (true) @boolean