Menu

#1690 LaTeX markup error after \left[ and \right[

Bug
open-accepted
5
2015-03-08
2015-02-01
No

The LaTeX markup function of the editor Geany v1.24.1, which relies on the Scintilla lexer, has the following bug:

After the LaTeX commands \left[ and \right[ all text is marked up in dark blue until the next ].

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-02-01
    • labels: --> scintilla, lexer, latex
    • status: open --> open-accepted
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2015-02-01

    This is with the "latex" lexer, not the "tex" lexer.

    I won't be working on this myself.

     
  • pointless

    pointless - 2015-03-08

    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

Log in to post a comment.