| 1 | ((comment) @injection.content |
| 2 | (#set! injection.language "comment")) |
| 3 | |
| 4 | ((script_element |
| 5 | (raw_text) @injection.content) |
| 6 | (#set! injection.language "javascript")) |
| 7 | |
| 8 | ((style_element |
| 9 | (raw_text) @injection.content) |
| 10 | (#set! injection.language "css")) |
| 11 | |
| 12 | ; e.g. `<input pattern="[Bb]anana|[Cc]herry" /> |
| 13 | (attribute |
| 14 | (attribute_name) @_attr (#eq? @_attr "pattern") |
| 15 | (quoted_attribute_value |
| 16 | (attribute_value) @injection.content) |
| 17 | (#set! injection.language "regex")) |