aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/c/highlights.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm
index af4012810..c73405aca 100644
--- a/queries/c/highlights.scm
+++ b/queries/c/highlights.scm
@@ -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