mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -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
23
runtime/queries/query/injections.scm
Normal file
23
runtime/queries/query/injections.scm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters (string) @injection.content))
|
||||
(#any-of? @_name "match" "not-match" "vim-match" "not-vim-match")
|
||||
(#set! injection.language "regex")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters (string) @injection.content))
|
||||
(#any-of? @_name "lua-match" "not-lua-match")
|
||||
(#set! injection.language "luap")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
((predicate
|
||||
name: (identifier) @_name
|
||||
parameters: (parameters (string) @injection.content . (string) .))
|
||||
(#any-of? @_name "gsub" "not-gsub")
|
||||
(#set! injection.language "luap")
|
||||
(#offset! @injection.content 0 1 0 -1))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue