nvim-treesitter/queries/cpp/injections.scm

20 lines
490 B
Scheme
Raw Normal View History

((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
(#set! injection.language "cpp"))
((comment) @injection.content
(#set! injection.language "comment"))
(raw_string_literal
delimiter: (raw_string_delimiter) @injection.language
(raw_string_content) @injection.content)