mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50: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
23
runtime/queries/ruby/injections.scm
Normal file
23
runtime/queries/ruby/injections.scm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
(heredoc_body
|
||||
(heredoc_content) @injection.content
|
||||
(heredoc_end) @injection.language
|
||||
(#downcase! @injection.language))
|
||||
|
||||
(regex
|
||||
(string_content) @injection.content
|
||||
(#set! injection.language "regex"))
|
||||
|
||||
((call
|
||||
receiver: (identifier) @_receiver
|
||||
method: (identifier) @_method
|
||||
arguments: (argument_list
|
||||
(pair
|
||||
key: (hash_key_symbol)
|
||||
value: (string
|
||||
(string_content) @injection.content))))
|
||||
(#eq? @_receiver "binding")
|
||||
(#any-of? @_method "b" "break")
|
||||
(#set! injection.self))
|
||||
Loading…
Add table
Add a link
Reference in a new issue