blob: 2f75c846a16a30a72002399ab823be534207f82f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
((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))
|