2023-05-03 19:07:59 +09:00
|
|
|
((preproc_def
|
|
|
|
|
(preproc_arg) @injection.content)
|
|
|
|
|
(#lua-match? @injection.content "\n")
|
|
|
|
|
(#set! injection.language "c"))
|
2021-03-12 11:21:46 -05:00
|
|
|
|
2023-05-03 19:07:59 +09:00
|
|
|
(preproc_function_def
|
|
|
|
|
(preproc_arg) @injection.content
|
|
|
|
|
(#set! injection.language "c"))
|
|
|
|
|
|
|
|
|
|
(preproc_call
|
|
|
|
|
(preproc_arg) @injection.content
|
|
|
|
|
(#set! injection.language "c"))
|
|
|
|
|
|
|
|
|
|
((comment) @injection.content
|
|
|
|
|
(#set! injection.language "comment"))
|
2023-07-27 03:51:13 -04:00
|
|
|
|
|
|
|
|
; TODO: add when asm is added
|
2023-05-03 19:07:59 +09:00
|
|
|
; (gnu_asm_expression assembly_code: (string_literal) @injection.content
|
|
|
|
|
; (#set! injection.language "asm"))
|
|
|
|
|
; (gnu_asm_expression assembly_code: (concatenated_string (string_literal) @injection.content)
|
|
|
|
|
; (#set! injection.language "asm"))
|