Closed kirjavascript closed 7 years ago
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 ;)
using vim-plug and pangloss/vim-javascript
correct formatting;
here's the issue, the text variable is turned into an XML tag;
alternative colours;
minimal .vimrc;