chore(c-family): inject all preproc args again

This commit is contained in:
Amaan Qureshi 2023-08-13 17:29:39 -04:00
parent e0f4782978
commit b5f2030312
6 changed files with 6 additions and 66 deletions

View file

@ -1,14 +1,4 @@
((preproc_def
(preproc_arg) @injection.content)
(#lua-match? @injection.content "\n")
(#set! injection.language "arduino"))
(preproc_function_def
(preproc_arg) @injection.content
(#set! injection.language "arduino"))
(preproc_call
(preproc_arg) @injection.content
((preproc_arg) @injection.content
(#set! injection.language "arduino"))
((comment) @injection.content

View file

@ -1,14 +1,4 @@
((preproc_def
(preproc_arg) @injection.content)
(#lua-match? @injection.content "\n")
(#set! injection.language "c"))
(preproc_function_def
(preproc_arg) @injection.content
(#set! injection.language "c"))
(preproc_call
(preproc_arg) @injection.content
((preproc_arg) @injection.content
(#set! injection.language "c"))
((comment) @injection.content

View file

@ -1,14 +1,4 @@
((preproc_def
(preproc_arg) @injection.content)
(#lua-match? @injection.content "\n")
(#set! injection.language "cpp"))
(preproc_function_def
(preproc_arg) @injection.content
(#set! injection.language "cpp"))
(preproc_call
(preproc_arg) @injection.content
((preproc_arg) @injection.content
(#set! injection.language "cpp"))
((comment) @injection.content

View file

@ -1,14 +1,4 @@
((preproc_def
(preproc_arg) @injection.content)
(#lua-match? @injection.content "\n")
(#set! injection.language "cuda"))
(preproc_function_def
(preproc_arg) @injection.content
(#set! injection.language "cuda"))
(preproc_call
(preproc_arg) @injection.content
((preproc_arg) @injection.content
(#set! injection.language "cuda"))
((comment) @injection.content

View file

@ -1,14 +1,4 @@
((preproc_def
(preproc_arg) @injection.content)
(#lua-match? @injection.content "\n")
(#set! injection.language "glsl"))
(preproc_function_def
(preproc_arg) @injection.content
(#set! injection.language "glsl"))
(preproc_call
(preproc_arg) @injection.content
((preproc_arg) @injection.content
(#set! injection.language "glsl"))
((comment) @injection.content

View file

@ -1,14 +1,4 @@
((preproc_def
(preproc_arg) @injection.content)
(#lua-match? @injection.content "\n")
(#set! injection.language "hlsl"))
(preproc_function_def
(preproc_arg) @injection.content
(#set! injection.language "hlsl"))
(preproc_call
(preproc_arg) @injection.content
((preproc_arg) @injection.content
(#set! injection.language "hlsl"))
((comment) @injection.content