mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -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)
|
||||
(preproc_function_def
|
||||
name: (identifier) @function.macro)
|
||||
(preproc_arg) @function.macro
|
||||
; TODO (preproc_arg) @embedded
|
||||
|
||||
(field_identifier) @property
|
||||
(statement_identifier) @label
|
||||
|
|
@ -103,4 +105,7 @@
|
|||
(parameter_list
|
||||
(parameter_declaration) @parameter)
|
||||
|
||||
(preproc_params
|
||||
(identifier)) @parameter
|
||||
|
||||
(ERROR) @error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue