mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
Fix cpp-highlights: wrong capture name used in regex
This commit is contained in:
parent
75bce1dc93
commit
2d224ac3bf
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue