Some code is XMLified when it shouldn't be
kirjavascript opened this issue · comments
This is a known issue. Syntax detection in vim is done via regular expressions, so it'll never be able to capture the full grammar of any sufficiently complex language. In the case of JSX, we have to detect strings like <this
as the start of an XML tag in order to switch into XML mode to highlight attributes and such, which means that certain whitespace choices are forbidden.
Some might consider this a feature, not a bug ;)