mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
|
((identifier) @constant
|
||||||
(#match? @constant "^[A-Z][A-Z0-9_]+$"))
|
(#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
|
(comment) @comment
|
||||||
|
|
||||||
;; Parameters
|
;; Parameters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue