From 049028ef3e639d948e9e1ee464ad7b9fd317f2c4 Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Sun, 22 Nov 2020 22:17:16 +0100 Subject: [PATCH] c highlights: fix define/undef arguments --- queries/c/highlights.scm | 9 +++++++++ 1 file changed, 9 insertions(+) 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