mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 23:40:04 -04:00
Update C/C++ highlights to new query syntax
This commit is contained in:
parent
e46baab8ca
commit
a5fc7b13cc
4 changed files with 17 additions and 16 deletions
|
|
@ -94,10 +94,10 @@
|
|||
(sized_type_specifier) @type
|
||||
|
||||
((identifier) @type
|
||||
(match? @type "^[A-Z]"))
|
||||
(#match? @type "^[A-Z]"))
|
||||
|
||||
((identifier) @constant
|
||||
(match? @constant "^[A-Z][A-Z\\d_]+$"))
|
||||
(#match? @constant "^[A-Z][A-Z\\d_]+$"))
|
||||
|
||||
(comment) @comment
|
||||
|
||||
|
|
@ -109,3 +109,4 @@
|
|||
(identifier)) @parameter
|
||||
|
||||
(ERROR) @error
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
(declaration
|
||||
declarator: (identifier) @definition.var)
|
||||
(enum_specifier
|
||||
name: (*) @definition.type
|
||||
name: (_) @definition.type
|
||||
(enumerator_list
|
||||
(enumerator name: (identifier) @definition.var)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue