| 1 | (tag_name) @tag |
| 2 | (erroneous_end_tag_name) @error |
| 3 | (doctype) @constant |
| 4 | (attribute_name) @attribute |
| 5 | (entity) @string.special.symbol |
| 6 | (comment) @comment |
| 7 | |
| 8 | ((attribute |
| 9 | (attribute_name) @attribute |
| 10 | (quoted_attribute_value (attribute_value) @markup.link.url)) |
| 11 | (#any-of? @attribute "href" "src")) |
| 12 | |
| 13 | ((element |
| 14 | (start_tag |
| 15 | (tag_name) @tag) |
| 16 | (text) @markup.link.label) |
| 17 | (#eq? @tag "a")) |
| 18 | |
| 19 | (attribute [(attribute_value) (quoted_attribute_value)] @string) |
| 20 | |
| 21 | ((element |
| 22 | (start_tag |
| 23 | (tag_name) @tag) |
| 24 | (text) @markup.bold) |
| 25 | (#any-of? @tag "strong" "b")) |
| 26 | |
| 27 | ((element |
| 28 | (start_tag |
| 29 | (tag_name) @tag) |
| 30 | (text) @markup.italic) |
| 31 | (#any-of? @tag "em" "i")) |
| 32 | |
| 33 | ((element |
| 34 | (start_tag |
| 35 | (tag_name) @tag) |
| 36 | (text) @markup.strikethrough) |
| 37 | (#any-of? @tag "s" "del")) |
| 38 | |
| 39 | [ |
| 40 | "<" |
| 41 | ">" |
| 42 | "</" |
| 43 | "/>" |
| 44 | "<!" |
| 45 | ] @punctuation.bracket |
| 46 | |
| 47 | "=" @punctuation.delimiter |