| 1 |
|
| 2 |
((element |
| 3 |
(start_tag (tag_name) @_tag) |
| 4 |
(raw_text) @injection.content) |
| 5 |
(#eq? @_tag "script") |
| 6 |
(#set! injection.language "javascript")) |
| 7 |
|
| 8 |
|
| 9 |
((element |
| 10 |
(start_tag (tag_name) @_tag) |
| 11 |
(raw_text) @injection.content) |
| 12 |
(#eq? @_tag "style") |
| 13 |
(#set! injection.language "css")) |
| 14 |
|
| 15 |
|
| 16 |
((element |
| 17 |
(start_tag |
| 18 |
(tag_name) @_tag |
| 19 |
(attribute |
| 20 |
(attribute_name) @_lang |
| 21 |
(quoted_attribute_value |
| 22 |
(attribute_value) @injection.language))) |
| 23 |
(raw_text) @injection.content) |
| 24 |
(#any-of? @_tag "style" "script") |
| 25 |
(#eq? @_lang "lang")) |
| 26 |
|
| 27 |
|
| 28 |
((attribute |
| 29 |
(attribute_name) @_style_name |
| 30 |
(quoted_attribute_value (attribute_value) @injection.content)) |
| 31 |
(#eq? @_style_name "style") |
| 32 |
(#set! injection.language "css")) |
| 33 |
|
| 34 |
|
| 35 |
((expression content: (js) @injection.content) |
| 36 |
(#set! injection.language "javascript")) |
| 37 |
((expression content: (ts) @injection.content) |
| 38 |
(#set! injection.language "typescript")) |
| 39 |
|
| 40 |
|
| 41 |
((shorthand_attribute content: (js) @injection.content) |
| 42 |
(#set! injection.language "javascript")) |
| 43 |
((shorthand_attribute content: (ts) @injection.content) |
| 44 |
(#set! injection.language "typescript")) |
| 45 |
|
| 46 |
|
| 47 |
((expression_value content: (js) @injection.content) |
| 48 |
(#set! injection.language "javascript")) |
| 49 |
((expression_value content: (ts) @injection.content) |
| 50 |
(#set! injection.language "typescript")) |
| 51 |
|
| 52 |
|
| 53 |
((else_if_clause expression: (expression_value content: (js) @injection.content)) |
| 54 |
(#set! injection.language "javascript")) |
| 55 |
((else_if_clause expression: (expression_value content: (ts) @injection.content)) |
| 56 |
(#set! injection.language "typescript")) |
| 57 |
|
| 58 |
|
| 59 |
((if_block expression: (expression content: (js) @injection.content)) |
| 60 |
(#set! injection.language "javascript")) |
| 61 |
((if_block expression: (expression content: (ts) @injection.content)) |
| 62 |
(#set! injection.language "typescript")) |
| 63 |
|
| 64 |
|
| 65 |
((each_block expression: (expression content: (js) @injection.content)) |
| 66 |
(#set! injection.language "javascript")) |
| 67 |
((each_block expression: (expression content: (ts) @injection.content)) |
| 68 |
(#set! injection.language "typescript")) |
| 69 |
((each_block binding: (pattern content: (js) @injection.content)) |
| 70 |
(#set! injection.language "javascript")) |
| 71 |
((each_block binding: (pattern content: (ts) @injection.content)) |
| 72 |
(#set! injection.language "typescript")) |
| 73 |
((each_block index: (pattern content: (js) @injection.content)) |
| 74 |
(#set! injection.language "javascript")) |
| 75 |
((each_block index: (pattern content: (ts) @injection.content)) |
| 76 |
(#set! injection.language "typescript")) |
| 77 |
((each_block key: (expression content: (js) @injection.content)) |
| 78 |
(#set! injection.language "javascript")) |
| 79 |
((each_block key: (expression content: (ts) @injection.content)) |
| 80 |
(#set! injection.language "typescript")) |
| 81 |
|
| 82 |
|
| 83 |
((await_block expression: (expression content: (js) @injection.content)) |
| 84 |
(#set! injection.language "javascript")) |
| 85 |
((await_block expression: (expression content: (ts) @injection.content)) |
| 86 |
(#set! injection.language "typescript")) |
| 87 |
((await_block (pattern content: (js) @injection.content)) |
| 88 |
(#set! injection.language "javascript")) |
| 89 |
((await_block (pattern content: (ts) @injection.content)) |
| 90 |
(#set! injection.language "typescript")) |
| 91 |
((await_branch (pattern content: (js) @injection.content)) |
| 92 |
(#set! injection.language "javascript")) |
| 93 |
((await_branch (pattern content: (ts) @injection.content)) |
| 94 |
(#set! injection.language "typescript")) |
| 95 |
((orphan_branch (pattern content: (js) @injection.content)) |
| 96 |
(#set! injection.language "javascript")) |
| 97 |
((orphan_branch (pattern content: (ts) @injection.content)) |
| 98 |
(#set! injection.language "typescript")) |
| 99 |
|
| 100 |
|
| 101 |
((key_block expression: (expression content: (js) @injection.content)) |
| 102 |
(#set! injection.language "javascript")) |
| 103 |
((key_block expression: (expression content: (ts) @injection.content)) |
| 104 |
(#set! injection.language "typescript")) |
| 105 |
|
| 106 |
|
| 107 |
((snippet_parameters parameter: (pattern content: (js) @injection.content)) |
| 108 |
(#set! injection.language "javascript")) |
| 109 |
((snippet_parameters parameter: (pattern content: (ts) @injection.content)) |
| 110 |
(#set! injection.language "typescript")) |
| 111 |
((snippet_block type_parameters: (snippet_type_parameters) @injection.content) |
| 112 |
(#set! injection.language "typescript")) |
| 113 |
|
| 114 |
|
| 115 |
((comment) @injection.content |
| 116 |
(#set! injection.language "comment")) |