Progress and optimization on syntax highlighting

Regex rules are a little more flexible now, matching the first explicit
capture instead of the implicit capture. XML highlighting is taking
shape, but it's still missing elements and attributes.