mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -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
26
runtime/queries/kcl/injections.scm
Normal file
26
runtime/queries/kcl/injections.scm
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
(call_expr
|
||||
function: (selector_expr
|
||||
(identifier) @_regex)
|
||||
arguments: (argument_list
|
||||
(_)
|
||||
.
|
||||
(string
|
||||
(string_content) @injection.content))
|
||||
(#eq? @_regex "regex")
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
(call_expr
|
||||
function: (selector_expr
|
||||
(identifier) @_regex
|
||||
(select_suffix
|
||||
(identifier) @_fn
|
||||
(#eq? @_fn "compile")))
|
||||
arguments: (argument_list
|
||||
.
|
||||
(string
|
||||
(string_content) @injection.content))
|
||||
(#eq? @_regex "regex")
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue