Follow-up of T284883: CodeMirror – support highlighting the new <tvar> tag syntax.
Steps to replicate the issue:
Open the 2010 Wikitext Editor, CodeMirror enabled, and type the following content:
<translate> Hello <tvar name=world>world</tvar> <tvar name=foo>Foo</tvar> </translate>
What happens?:
Note the first opening bracket < for foo tvar is not green-colored, whereas the one of world tvar actually is.
When the tvar is at line start, the cm-mw-tag-translate class is not added to the leading bracket.
What should have happened instead?:
The bracket should be colored as world bracket, with cm-mw-tag-translate class.