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