2024-01-26 02:48:26 -05:00
|
|
|
((comment) @injection.content
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! injection.language "comment"))
|
2021-10-01 11:33:33 +02:00
|
|
|
|
2024-01-26 02:48:26 -05:00
|
|
|
((call_expression
|
|
|
|
|
(type) @_printf
|
2024-07-28 06:39:43 +00:00
|
|
|
(named_arguments
|
2024-01-26 02:48:26 -05:00
|
|
|
"("
|
|
|
|
|
.
|
2024-07-28 06:39:43 +00:00
|
|
|
(named_argument
|
|
|
|
|
(expression
|
|
|
|
|
(string_literal) @injection.content))))
|
2024-01-26 02:48:26 -05:00
|
|
|
(#eq? @_printf "printf")
|
|
|
|
|
(#offset! @injection.content 0 1 0 -1)
|
|
|
|
|
(#set! injection.language "printf"))
|
|
|
|
|
|
|
|
|
|
; TODO: uncomment when asm is added
|
|
|
|
|
; ((asm_inline) @injection.content
|
|
|
|
|
; (#set! injection.language "asm")
|
|
|
|
|
; (#set! injection.combined))
|