Files
neovim/runtime/queries/c/injections.scm
2023-08-13 12:30:47 +02:00

22 lines
638 B
Scheme

((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
(#set! injection.language "c"))
; ((comment) @injection.content
; (#set! injection.language "comment"))
; TODO: add when asm is added
; (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"))