Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
((comment) @injection.content
 (#set! injection.language "comment"))

((script_element
  (raw_text) @injection.content)
 (#set! injection.language "javascript"))

((style_element
  (raw_text) @injection.content)
 (#set! injection.language "css"))

; e.g. `<input pattern="[Bb]anana|[Cc]herry" />
(attribute
  (attribute_name) @_attr (#eq? @_attr "pattern")
  (quoted_attribute_value
    (attribute_value) @injection.content)
  (#set! injection.language "regex"))