#4213
XML syntax highlighting breaks if empty tag contains whitespace before close
Description
XML syntax highlighting handles <tagname attr="text"/> fine, but is borked by <tagname attr="text" />.
Environment
- Version: 2.0.15 (6a62575b)
- OS: Archlinux
- Terminal: alacritty
This is because the XML syntax (stupidly) always starts a new identifier from a space here:
https://github.com/micro-editor/micro/blob/393cf24858e63ba75af1480b618d2e3add5b9e3e/runtime/syntax/xml.yaml#L23
One fix would be to change the identifier start to require a NameStartChar (and we might as well allow
\tas whitespace too while we are at it to bring it closer to the spec):