mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(c-family): inject into preproc args in preproc defs when it spans multiple lines only
This commit is contained in:
parent
acd9d2115d
commit
41f35eac4f
6 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
((preproc_def (preproc_arg) @arduino)
|
||||
(#lua-match? @arduino "\n"))
|
||||
(preproc_function_def (preproc_arg) @arduino)
|
||||
(preproc_call (preproc_arg) @arduino)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
((preproc_def (preproc_arg) @c)
|
||||
(#lua-match? @c "\n"))
|
||||
(preproc_function_def (preproc_arg) @c)
|
||||
(preproc_call (preproc_arg) @c)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
((preproc_def (preproc_arg) @cpp)
|
||||
(#lua-match? @cpp "\n"))
|
||||
(preproc_function_def (preproc_arg) @cpp)
|
||||
(preproc_call (preproc_arg) @cpp)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
((preproc_def (preproc_arg) @cuda)
|
||||
(#lua-match? @cuda "\n"))
|
||||
(preproc_function_def (preproc_arg) @cuda)
|
||||
(preproc_call (preproc_arg) @cuda)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
((preproc_def (preproc_arg) @glsl)
|
||||
(#lua-match? @glsl "\n"))
|
||||
(preproc_function_def (preproc_arg) @glsl)
|
||||
(preproc_call (preproc_arg) @glsl)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
((preproc_def (preproc_arg) @hlsl)
|
||||
(#lua-match? @hlsl "\n"))
|
||||
(preproc_function_def (preproc_arg) @hlsl)
|
||||
(preproc_call (preproc_arg) @hlsl)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue