mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
30
runtime/queries/teal/injections.scm
Normal file
30
runtime/queries/teal/injections.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
(
|
||||
(function_call
|
||||
(index
|
||||
(identifier) @_cdef_identifier)
|
||||
(arguments
|
||||
(string) @injection.content)
|
||||
)
|
||||
|
||||
(#eq? @_cdef_identifier "cdef")
|
||||
(#lua-match? @injection.content "^[\"']")
|
||||
(#offset! @injection.content 0 1 0 -1)
|
||||
(#set! injection.language "c")
|
||||
)
|
||||
|
||||
(
|
||||
(function_call
|
||||
(index
|
||||
(identifier) @_cdef_identifier)
|
||||
(arguments
|
||||
(string) @injection.content)
|
||||
)
|
||||
|
||||
(#eq? @_cdef_identifier "cdef")
|
||||
(#lua-match? @injection.content "^%[%[")
|
||||
(#offset! @injection.content 0 2 0 -2)
|
||||
(#set! injection.language "c")
|
||||
)
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue