mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Add better highlighting for preprocessor functions in C highlights
This commit is contained in:
parent
d88db9d718
commit
e46baab8ca
1 changed files with 5 additions and 0 deletions
|
|
@ -84,6 +84,8 @@
|
||||||
declarator: (identifier) @function)
|
declarator: (identifier) @function)
|
||||||
(preproc_function_def
|
(preproc_function_def
|
||||||
name: (identifier) @function.macro)
|
name: (identifier) @function.macro)
|
||||||
|
(preproc_arg) @function.macro
|
||||||
|
; TODO (preproc_arg) @embedded
|
||||||
|
|
||||||
(field_identifier) @property
|
(field_identifier) @property
|
||||||
(statement_identifier) @label
|
(statement_identifier) @label
|
||||||
|
|
@ -103,4 +105,7 @@
|
||||||
(parameter_list
|
(parameter_list
|
||||||
(parameter_declaration) @parameter)
|
(parameter_declaration) @parameter)
|
||||||
|
|
||||||
|
(preproc_params
|
||||||
|
(identifier)) @parameter
|
||||||
|
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue