c highlights: fix define/undef arguments

This commit is contained in:
Thomas Vigouroux 2020-11-22 22:17:16 +01:00
parent e45ab15cf3
commit 049028ef3e

View file

@ -143,6 +143,15 @@
((identifier) @constant
(#match? @constant "^[A-Z][A-Z0-9_]+$"))
;; Preproc def / undef
(preproc_def
name: (_) @constant)
(preproc_call
directive: (preproc_directive) @_u
argument: (_) @constant
(#eq? @_u "#undef"))
(comment) @comment
;; Parameters