| 1 |
([ |
| 2 |
(line_comment) |
| 3 |
(multiline_comment) |
| 4 |
] @injection.content |
| 5 |
(#set! injection.language "comment")) |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
((call_expression |
| 10 |
(navigation_expression |
| 11 |
(string_literal |
| 12 |
(string_content) @injection.content) |
| 13 |
(navigation_suffix |
| 14 |
((simple_identifier) @_function |
| 15 |
(#eq? @_function "toRegex"))))) |
| 16 |
(#set! injection.language "regex")) |
| 17 |
|
| 18 |
|
| 19 |
((call_expression |
| 20 |
((simple_identifier) @_function |
| 21 |
(#eq? @_function "Regex")) |
| 22 |
(call_suffix |
| 23 |
(value_arguments |
| 24 |
(value_argument |
| 25 |
(string_literal |
| 26 |
(string_content) @injection.content))))) |
| 27 |
(#set! injection.language "regex")) |
| 28 |
|
| 29 |
|
| 30 |
((call_expression |
| 31 |
(navigation_expression |
| 32 |
((simple_identifier) @_class |
| 33 |
(#eq? @_class "Regex")) |
| 34 |
(navigation_suffix |
| 35 |
((simple_identifier) @_function |
| 36 |
(#eq? @_function "fromLiteral")))) |
| 37 |
(call_suffix |
| 38 |
(value_arguments |
| 39 |
(value_argument |
| 40 |
(string_literal |
| 41 |
(string_content) @injection.content))))) |
| 42 |
(#set! injection.language "regex")) |