fix(c-family): inject into preproc args in preproc defs when it spans multiple lines only

This commit is contained in:
Amaan Qureshi 2023-08-10 19:32:29 -04:00
parent acd9d2115d
commit 41f35eac4f
6 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,5 @@
((preproc_def (preproc_arg) @arduino)
(#lua-match? @arduino "\n"))
(preproc_function_def (preproc_arg) @arduino)
(preproc_call (preproc_arg) @arduino)

View file

@ -1,3 +1,5 @@
((preproc_def (preproc_arg) @c)
(#lua-match? @c "\n"))
(preproc_function_def (preproc_arg) @c)
(preproc_call (preproc_arg) @c)

View file

@ -1,3 +1,5 @@
((preproc_def (preproc_arg) @cpp)
(#lua-match? @cpp "\n"))
(preproc_function_def (preproc_arg) @cpp)
(preproc_call (preproc_arg) @cpp)

View file

@ -1,3 +1,5 @@
((preproc_def (preproc_arg) @cuda)
(#lua-match? @cuda "\n"))
(preproc_function_def (preproc_arg) @cuda)
(preproc_call (preproc_arg) @cuda)

View file

@ -1,3 +1,5 @@
((preproc_def (preproc_arg) @glsl)
(#lua-match? @glsl "\n"))
(preproc_function_def (preproc_arg) @glsl)
(preproc_call (preproc_arg) @glsl)

View file

@ -1,3 +1,5 @@
((preproc_def (preproc_arg) @hlsl)
(#lua-match? @hlsl "\n"))
(preproc_function_def (preproc_arg) @hlsl)
(preproc_call (preproc_arg) @hlsl)