Update C/C++ highlights to new query syntax

This commit is contained in:
Stephan Seitz 2020-06-07 13:13:24 +02:00
parent e46baab8ca
commit a5fc7b13cc
4 changed files with 17 additions and 16 deletions

View file

@ -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

View file

@ -17,7 +17,7 @@
(declaration
declarator: (identifier) @definition.var)
(enum_specifier
name: (*) @definition.type
name: (_) @definition.type
(enumerator_list
(enumerator name: (identifier) @definition.var)))