I don't know LaTeX, but I guess it could be possible to recognize some stuff can't be part of the optional arguments maybe? BTW, this is the same as SF bug https://sourceforge.net/p/geany/bugs/1087/, and is already forwarded to Scintlla as https://sourceforge.net/p/scintilla/bugs/1690/
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/859#issuecomment-170269092
