| 1 |
(directive_attribute |
| 2 |
(directive_name) @keyword |
| 3 |
(quoted_attribute_value |
| 4 |
(attribute_value) @injection.content) |
| 5 |
(#set! injection.language "javascript")) |
| 6 |
|
| 7 |
((interpolation |
| 8 |
(raw_text) @injection.content) |
| 9 |
(#set! injection.language "javascript")) |
| 10 |
|
| 11 |
|
| 12 |
((script_element |
| 13 |
(start_tag) @_no_lang |
| 14 |
(raw_text) @injection.content) |
| 15 |
(#not-match? @_no_lang "lang=") |
| 16 |
(#set! injection.language "javascript")) |
| 17 |
|
| 18 |
|
| 19 |
((script_element |
| 20 |
(start_tag |
| 21 |
(attribute |
| 22 |
(attribute_name) @_attr_name |
| 23 |
(quoted_attribute_value (attribute_value) @injection.language))) |
| 24 |
(raw_text) @injection.content) |
| 25 |
(#eq? @_attr_name "lang")) |
| 26 |
|
| 27 |
|
| 28 |
((style_element |
| 29 |
(start_tag) @_no_lang |
| 30 |
(raw_text) @injection.content) |
| 31 |
(#not-match? @_no_lang "lang=") |
| 32 |
(#set! injection.language "css")) |
| 33 |
|
| 34 |
|
| 35 |
((style_element |
| 36 |
(start_tag |
| 37 |
(attribute |
| 38 |
(attribute_name) @_attr_name |
| 39 |
(quoted_attribute_value (attribute_value) @injection.language))) |
| 40 |
(raw_text) @injection.content) |
| 41 |
(#eq? @_attr_name "lang")) |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
is |
| 46 |
es |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
"` |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
((comment) @injection.content |
| 57 |
(#set! injection.language "comment")) |