Closed dchest closed 10 years ago
This is a wontfix. You could imagine having the following:
u = u<<u>u;
which is impossible to detect context-independently. The workaround for this is just to put whitespace around your operators, which is a best practice anyway.
Well, is it possible to detect the code I quoted as a not containing tags? I'd rather have it not detect tags in the case that you quoted than detect in the one I quoted.
BTW, this is not even JSX code I quoted, it's a plain JavaScript file which is somehow got picked up by vim-jsx, so fixing operator whitespace in every JavaScript file I open is not an option.
In this screenshot after the first
<<
operator syntax highlighting breaks: