4 filename: "\\.htm[l]?$"
7 # Doctype is case-insensitive
8 - preproc: "<!(?i)(DOCTYPE html.*)>"
11 start: "<(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|section|select|small|source|span|strike|strong|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr)\\b"
14 - identifier: "\\b(placeholder|style|alt|bgcolor|height|href|id|(aria|data)\\-.+|label|longdesc|name|on(click|focus|load|mouseover)|size|span|src|target|type|value|width|class|charset|content|rel|integrity|crossorigin|for|onsubmit|lang|role)\\b"
15 - special: "\\b(required)\\b"
16 # Match double-quote strings
22 - constant.specialChar: "\\\\."
23 - constant.string.url: "((ftp(s)?|http(s)?|git|chrome)://[^\\s]+)"
24 # Match single-quote strings
30 - constant.specialChar: "\\\\."
31 - constant.string.url: "((ftp(s)?|http(s)?|git|chrome)://[^\\s]+)"
32 # Highlight the equals and any colon between words
33 - symbol: "\\b(=|:\\b)"
37 start: "</(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|section|select|small|source|span|strike|strong|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr)\\b"
40 # Anything in the closing tag is an error
43 # Reserved entities like a and Ī
44 - special: "(([a-zA-Z]&#[0-9]+|&[a-zA-Z]+|&#[a-zA-Z0-9]+);)"
46 # TODO: Add `limit-rules` to both the `default` rules below once it's implemented into Micro
50 limit-group: symbol.tag
52 - include: "javascript"
57 limit-group: symbol.tag
61 # This weird empty comment thing is technically valid
68 - todo: "(FIXME|NOTE|TODO):?"
69 # While technically not a "true" error, these are recommended to not be used inside a comment