| 1 |
|
| 2 |
|
| 3 |
((comment) @injection.content |
| 4 |
(#set! injection.language "comment")) |
| 5 |
|
| 6 |
|
| 7 |
(query |
| 8 |
((funcname) @_function |
| 9 |
(#any-of? @_function "test" "match" "capture" "scan" "split" "splits" "sub" "gsub")) |
| 10 |
(args |
| 11 |
. |
| 12 |
(query |
| 13 |
(string) @injection.content |
| 14 |
(#set! injection.language "regex")))) |
| 15 |
|
| 16 |
|
| 17 |
(query |
| 18 |
((funcname) @_function |
| 19 |
(#any-of? @_function "test" "match" "capture" "scan" "split" "splits" "sub" "gsub")) |
| 20 |
(args |
| 21 |
. |
| 22 |
(args |
| 23 |
(query |
| 24 |
(string) @injection.content |
| 25 |
(#set! injection.language "regex"))))) |