mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
c highlights: fix define/undef arguments
This commit is contained in:
parent
e45ab15cf3
commit
049028ef3e
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue