mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
35 lines
880 B
Scheme
35 lines
880 B
Scheme
((comment) @injection.content
|
|
(#set! injection.language "comment"))
|
|
|
|
((comment) @injection.content
|
|
(#lua-match? @injection.content "^#:")
|
|
(#set! injection.language "rbs"))
|
|
|
|
((comment) @injection.content
|
|
(#lua-match? @injection.content "^#%s+@rbs")
|
|
(#set! injection.language "rbs"))
|
|
|
|
((comment) @injection.content
|
|
(#lua-match? @injection.content "^#%s+|")
|
|
(#set! injection.language "rbs"))
|
|
|
|
(heredoc_body
|
|
(heredoc_content) @injection.content
|
|
(heredoc_end) @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))
|