highlights(c): highlight enum variants as @constant

Fixes #2120
This commit is contained in:
Stephan Seitz 2021-12-16 02:58:50 +01:00
parent 974e2181a0
commit 1d3111ccb1

View file

@ -137,6 +137,8 @@
((identifier) @constant
(#lua-match? @constant "^[A-Z][A-Z0-9_]+$"))
(enumerator
name: (identifier) @constant)
;; Preproc def / undef
(preproc_def