/usr/share/libt3highlight2/def/html.lang is in libt3highlight2 0.4.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | #TODO:
# - aria attributes?
%include = "def/javascript.lang"
%include = "def/svg.lang"
%include = "def/mathml.lang"
%include = "def/css.lang"
%define {
html-bare-escape {
%highlight {
regex = '&(?:A(?:Elig|acute|circ|grave|lpha|ring|tilde|uml)|Beta|C(?:' +
'cedil|hi)|D(?:agger|elta)|E(?:TH|acute|circ|grave|psilon|ta|uml)|' +
'Gamma|I(?:acute|circ|grave|ota|uml)|Kappa|Lambda|Mu|N(?:tilde|u)|' +
'O(?:Elig|acute|circ|grave|m(?:ega|icron)|slash|tilde|uml)|P(?:hi|' +
'i|rime|si)|Rho|S(?:caron|igma)|T(?:HORN|au|heta)|U(?:acute|circ|' +
'grave|psilon|uml)|Xi|Y(?:acute|uml)|Zeta|a(?:acute|c(?:irc|ute)|' +
'elig|grave|l(?:efsym|pha)|mp|n(?:d|g)|ring|symp|tilde|uml)|b(?:dquo|' +
'eta|rvbar|ull)|c(?:ap|cedil|e(?:dil|nt)|hi|irc|lubs|o(?:ng|py)|rarr|' +
'u(?:p|rren))|d(?:Arr|a(?:gger|rr)|e(?:g|lta)|i(?:ams|vide))|e(?:' +
'acute|circ|grave|m(?:pty|sp)|nsp|psilon|quiv|t(?:a|h)|u(?:ml|ro)|' +
'xist)|f(?:nof|orall|ra(?:c(?:1(?:2|4)|34)|sl))|g(?:amma|e|t)|h(?:' +
'Arr|arr|e(?:arts|llip))|i(?:acute|circ|excl|grave|mage|n(?:fin|t)|' +
'ota|quest|sin|uml)|kappa|l(?:Arr|a(?:mbda|ng|quo|rr)|ceil|dquo|e|' +
'floor|o(?:wast|z)|rm|s(?:aquo|quo)|t)|m(?:acr|dash|i(?:cro|ddot|' +
'nus)|u)|n(?:abla|bsp|dash|e|i|ot(?:in)?|sub|tilde|u)|o(?:acute|circ|' +
'elig|grave|line|m(?:ega|icron)|plus|r(?:d(?:f|m))?|slash|ti(?:lde|' +
'mes)|uml)|p(?:ar(?:a|t)|er(?:mil|p)|hi|i(?:v)?|lusmn|ound|r(?:ime|' +
'o(?:d|p))|si)|quot|r(?:Arr|a(?:dic|ng|quo|rr)|ceil|dquo|e(?:al|g)|' +
'floor|ho|lm|s(?:aquo|quo))|s(?:bquo|caron|dot|ect|hy|i(?:gma(?:f)?|' +
'm)|pades|u(?:b(?:e)?|m|p(?:1|2|3|e)?)|zlig)|t(?:au|h(?:e(?:re4|' +
'ta(?:sym)?)|insp|orn)|i(?:lde|mes)|rade)|u(?:Arr|a(?:cute|rr)|circ|' +
'grave|ml|psi(?:h|lon)|uml)|weierp|xi|y(?:acute|en|uml)|z(?:eta|' +
'w(?:j|nj))|#(?:x[\da-fA-F]+|\d+));'
style = "number"
}
}
html-escape {
%highlight {
regex = '&(?:A(?:Elig|acute|circ|grave|lpha|ring|tilde|uml)|Beta|C(?:' +
'cedil|hi)|D(?:agger|elta)|E(?:TH|acute|circ|grave|psilon|ta|uml)|' +
'Gamma|I(?:acute|circ|grave|ota|uml)|Kappa|Lambda|Mu|N(?:tilde|u)|' +
'O(?:Elig|acute|circ|grave|m(?:ega|icron)|slash|tilde|uml)|P(?:hi|' +
'i|rime|si)|Rho|S(?:caron|igma)|T(?:HORN|au|heta)|U(?:acute|circ|' +
'grave|psilon|uml)|Xi|Y(?:acute|uml)|Zeta|a(?:acute|c(?:irc|ute)|' +
'elig|grave|l(?:efsym|pha)|mp|n(?:d|g)|ring|symp|tilde|uml)|b(?:dquo|' +
'eta|rvbar|ull)|c(?:ap|cedil|e(?:dil|nt)|hi|irc|lubs|o(?:ng|py)|rarr|' +
'u(?:p|rren))|d(?:Arr|a(?:gger|rr)|e(?:g|lta)|i(?:ams|vide))|e(?:' +
'acute|circ|grave|m(?:pty|sp)|nsp|psilon|quiv|t(?:a|h)|u(?:ml|ro)|' +
'xist)|f(?:nof|orall|ra(?:c(?:1(?:2|4)|34)|sl))|g(?:amma|e|t)|h(?:' +
'Arr|arr|e(?:arts|llip))|i(?:acute|circ|excl|grave|mage|n(?:fin|t)|' +
'ota|quest|sin|uml)|kappa|l(?:Arr|a(?:mbda|ng|quo|rr)|ceil|dquo|e|' +
'floor|o(?:wast|z)|rm|s(?:aquo|quo)|t)|m(?:acr|dash|i(?:cro|ddot|' +
'nus)|u)|n(?:abla|bsp|dash|e|i|ot(?:in)?|sub|tilde|u)|o(?:acute|circ|' +
'elig|grave|line|m(?:ega|icron)|plus|r(?:d(?:f|m))?|slash|ti(?:lde|' +
'mes)|uml)|p(?:ar(?:a|t)|er(?:mil|p)|hi|i(?:v)?|lusmn|ound|r(?:ime|' +
'o(?:d|p))|si)|quot|r(?:Arr|a(?:dic|ng|quo|rr)|ceil|dquo|e(?:al|g)|' +
'floor|ho|lm|s(?:aquo|quo))|s(?:bquo|caron|dot|ect|hy|i(?:gma(?:f)?|' +
'm)|pades|u(?:b(?:e)?|m|p(?:1|2|3|e)?)|zlig)|t(?:au|h(?:e(?:re4|' +
'ta(?:sym)?)|insp|orn)|i(?:lde|mes)|rade)|u(?:Arr|a(?:cute|rr)|circ|' +
'grave|ml|psi(?:h|lon)|uml)|weierp|xi|y(?:acute|en|uml)|z(?:eta|' +
'w(?:j|nj))|#(?:x[\da-fA-F]+|\d+));'
style = "string-escape"
}
}
html-attribute {
%highlight {
start = '"'
%highlight { use = 'html-escape' }
end = '"'
style = "string"
}
%highlight {
start = "'"
%highlight { use = 'html-escape' }
end = "'"
style = "string"
}
%highlight {
regex = '\b\d+\b'
style = "number"
}
%highlight {
regex = '[^\s/>=''"]+|/(?!>)'
style = 'error'
}
}
html-named-attributes {
%highlight {
regex = '(?<![\w:-])(?:a(?:bbr|c(?:ce(?:pt(?:-charset)?|sskey)|tion' +
')|l(?:i(?:gn|nk)|t)|rchive|sync|uto(?:complete|focus|play)|xis' +
')|b(?:ackground|gcolor|order)|c(?:ell(?:padding|spacing)|h(?:a' +
'(?:llenge|r(?:off|set)?)|ecked)|ite|l(?:ass(?:id)?|ear)|o(?:de' +
'(?:base|type)?|l(?:or|s(?:pan)?)|mpact|nt(?:e(?:nt(?:editable)' +
'?|xtmenu)|rols)|ords)|rossorigin)|d(?:at(?:a|etime)|e(?:clare|' +
'f(?:ault|er))|i(?:r(?:name)?|sabled)|r(?:aggable|opzone))|enct' +
'ype|f(?:ace|or(?:m(?:action|enctype|method|novalidate|target)?' +
')?|rame(?:border)?)|h(?:e(?:aders|ight)|i(?:dden|gh)|ref(?:lan' +
'g)?|space|ttp-equiv)|i(?:con|d|smap)|k(?:eytype|ind)|l(?:a(?:b' +
'el|ng(?:uage)?)|i(?:nk|st)|o(?:ngdesc|op|w))|m(?:a(?:nifest|rg' +
'in(?:height|width)|x(?:length)?)|e(?:dia(?:group)?|thod)|in|u(' +
'?:ltiple|ted))|n(?:ame|o(?:href|resize|shade|validate|wrap))|o' +
'(?:bject|n(?:a(?:bort|fterprint)|b(?:efore(?:print|unload)|lur' +
')|c(?:anplay(?:through)?|hange|lick|ontextmenu|uechange)|d(?:b' +
'lclick|r(?:ag(?:en(?:d|ter)|leave|over|start)?|op)|urationchan' +
'ge)|e(?:mptied|nded|rror)|focus|hashchange|in(?:put|valid)|key' +
'(?:down|press|up)|load(?:ed(?:data|metadata)|start)?|m(?:essag' +
'e|ouse(?:down|move|o(?:ut|ver)|up|wheel))|o(?:ffline|nline)|p(' +
'?:a(?:ge(?:hide|show)|use)|lay(?:ing)?|opstate|rogress)|r(?:at' +
'echange|es(?:et|ize))|s(?:croll|e(?:ek(?:ed|ing)|lect)|how|t(?' +
':alled|orage)|u(?:bmit|spend))|timeupdate|unload|volumechange|' +
'waiting)|p(?:en|timum))|p(?:attern|laceholder|oster|r(?:eload|' +
'o(?:file|mpt)))|r(?:adiogroup|e(?:adonly|l|quired|v(?:ersed)?)' +
'|o(?:le|ws(?:pan)?)|ules)|s(?:andbox|c(?:heme|ope(?:d)?|rollin' +
'g)|e(?:amless|lected)|hape|ize(?:s)?|p(?:an|ellcheck)|rc(?:doc' +
'|lang)?|t(?:a(?:ndby|rt)|ep|yle)|ummary)|t(?:a(?:bindex|rget)|' +
'ext|itle|ype(?:mustmatch)?)|usemap|v(?:al(?:ign|ue(?:type)?)|e' +
'rsion|link|space)|w(?:idth|rap)|xml(?::(?:base|lang|space)|ns)' +
')(?![\w:-])'
style = 'variable'
}
}
html {
%highlight { use = "html-bare-escape" }
%highlight {
start = '(?i)</(?:a(?:bbr|cronym|ddress|pplet|rticle|side|udio)?|' +
'b(?:d(?:i|o)|ig|lockquote|ody|utton)?|c(?:a(?:nvas|ption)|enter|' +
'heckbox|ite|o(?:de|lgroup))|d(?:atalist|d|e(?:l|tails)|fn|i(?:' +
'r|v)|l|t)|em|f(?:i(?:eldset|g(?:caption|ure)|le)|o(?:nt|oter|' +
'rm)|rameset)|h(?:1|2|3|4|5|6|ead(?:er)?|group|idden|tml)|i(?:' +
'frame|mage|ns)?|kbd|l(?:abel|egend|i)|m(?:a(?:p|rk)|e(?:nu|' +
'ter))|n(?:av|o(?:frames|script))|o(?:bject|l|pt(?:group|ion)|' +
'utput)|p(?:assword|r(?:e|ogress))?|q|r(?:adio|eset|p|t|uby)|' +
's(?:amp|cript|e(?:ction|lect)|mall|pan|t(?:r(?:ike|ong)|yle)|' +
'u(?:b(?:mit)?|mmary|p))?|t(?:able|body|d|ext(?:area)?|foot|' +
'h(?:ead)?|i(?:me|tle)|r|t)|u(?:l)?|v(?:ar|ideo))(?![\w-])'
%highlight {
regex = '[^\s>]+'
style = 'error'
}
end = '>'
delim-style = 'keyword'
}
%highlight {
start = '<!--'
end = '-->'
style = 'comment'
}
%highlight {
start = '<!DOCTYPE(?![\w-])'
%highlight {
regex = '(?i)(?<![\w-])(?:HTML|html|PUBLIC)(?![\w-])'
style = 'misc'
}
%highlight { use = 'html-attribute' }
end = '>'
style = 'misc'
}
%highlight {
start = '(?i)<\?xml(?![\w-])'
%highlight {
regex = '(?i)(?<![\w-])(?:version|encoding)(?![\w-])'
style = 'misc'
}
%highlight { use = 'html-attribute' }
end = '\?>'
style = 'misc'
}
%highlight {
start = '(?i)<script(?![\w-])'
%highlight { use = "html-named-attributes" }
%highlight { use = "html-attribute" }
%highlight {
start = '>'
%highlight { use = "javascript" }
end = "(?i)(?=</script([^\w-]|$))"
exit = 2
delim-style = 'keyword'
}
delim-style = 'keyword'
}
%highlight {
start = '(?i)<svg(?![\w-])'
%highlight {
regex = '(?<![\w:-])xmlns(?::[\w-]+)?(?<![\w:-])'
style = 'variable'
}
%highlight { use = "html-named-attributes" }
%highlight { use = "svg-named-attributes" }
%highlight { use = "html-attribute" }
%highlight {
start = '>'
%highlight {
start = "(?i)</svg"
%highlight {
regex = '[^\s>]+'
style = 'error'
}
end = '>'
exit = 3
delim-style = 'keyword'
}
%highlight { use = "svg" }
delim-style = 'keyword'
}
delim-style = 'keyword'
}
%highlight {
start = '(?i)<math(?![\w-])'
%highlight {
regex = '(?<![\w:-])xmlns(?::[\w-]+)?(?<![\w:-])'
style = 'variable'
}
%highlight { use = "html-named-attributes" }
%highlight { use = "mathml-named-attributes" }
%highlight { use = "html-attribute" }
%highlight {
start = '>'
%highlight {
start = "(?i)</math"
%highlight {
regex = '[^\s>]+'
style = 'error'
}
end = '>'
exit = 3
delim-style = 'keyword'
}
%highlight { use = "mathml" }
delim-style = 'keyword'
}
delim-style = 'keyword'
}
%highlight {
start = '(?i)<style(?![\w-])'
%highlight {
regex = '(?<![\w:-])(?:media|type|scoped)(?![\w:-])'
style = 'variable'
}
%highlight { use = "html-named-attributes" }
%highlight { use = "html-attribute" }
%highlight {
start = '>'
%highlight {
start = "(?i)</style"
%highlight {
regex = '[^\s>]+'
style = 'error'
}
end = '>'
exit = 3
delim-style = 'keyword'
}
%highlight { use = "css" }
delim-style = 'keyword'
}
delim-style = 'keyword'
}
%highlight {
start = '(?i)<(?:a(?:bbr|cronym|ddress|pplet|r(?:ea|ticle)|' +
'side|udio)?|b(?:ase(?:font)?|d(?:i|o)|ig|lockquote|ody|r|utton)?|' +
'c(?:a(?:nvas|ption)|enter|ite|o(?:de|l(?:group)?|mmand))|d(?:' +
'atalist|d|e(?:l|tails)|fn|i(?:r|v)|l|t)|em(?:bed)?|f(?:i(?:' +
'eldset|g(?:caption|ure))|o(?:nt|oter|rm)|rame(?:set)?)|h(?:1|' +
'2|3|4|5|6|ead(?:er)?|group|r|tml)|i(?:frame|mg|n(?:put|s)|' +
'sindex)?|k(?:bd|eygen)|l(?:abel|egend|i(?:nk)?)|m(?:a(?:p|rk)|' +
'e(?:nu|t(?:a|er)))|n(?:av|o(?:frames|script))|o(?:bject|l|pt(?:' +
'group|ion)|utput)|p(?:aram|r(?:e|ogress))?|q|r(?:p|t|uby)|s(?:' +
'amp|e(?:ction|lect)|mall|ource|pan|t(?:r(?:ike|ong)|yle)|u(?:' +
'b|mmary|p))?|t(?:able|body|d|extarea|foot|h(?:ead)?|i(?:me|' +
'tle)|r(?:ack)?|t)|u(?:l)?|v(?:ar|ideo)|wbr)(?![\w-])'
%highlight { use = "html-named-attributes" }
%highlight { use = 'html-attribute' }
end = '/?>'
delim-style = 'keyword'
}
%highlight {
start = '<'
%highlight {
start = "'"
end = "'"
}
%highlight {
start = '"'
end = '"'
}
end = '>'
style = 'error'
}
}
}
|