This is more serious than just the left command. Something like $f:[0,1]\to [0,\infty)$ is used relatively frequently and also ruins the rest of the document.
This problem occurs with any command which doesn't take an optional parameter. I suggest making a list of such commands and disabling optional parameter parsing on them.
A quick and dirty fix would be disallowing optional parameters to take multiple lines, so it wouldn't ruin the rest of the document.
Workaround for people annoyed by this: add %]$ at the end of the line.
Last edit: pointless 2015-03-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is with the "latex" lexer, not the "tex" lexer.
I won't be working on this myself.
This is more serious than just the left command. Something like $f:[0,1]\to [0,\infty)$ is used relatively frequently and also ruins the rest of the document.
This problem occurs with any command which doesn't take an optional parameter. I suggest making a list of such commands and disabling optional parameter parsing on them.
A quick and dirty fix would be disallowing optional parameters to take multiple lines, so it wouldn't ruin the rest of the document.
Workaround for people annoyed by this: add %]$ at the end of the line.
Last edit: pointless 2015-03-08