mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
19
runtime/queries/d/injections.scm
Normal file
19
runtime/queries/d/injections.scm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((call_expression
|
||||
(type) @_printf
|
||||
(named_arguments
|
||||
"("
|
||||
.
|
||||
(named_argument
|
||||
(expression
|
||||
(string_literal) @injection.content))))
|
||||
(#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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue