[Github-comments] [geany] Latex syntax: Bad '[' in math mode (#859)

Ben Wiederhake notifications at xxxxx
Fri Jan 8 12:15:29 UTC 2016


Not sure when this started, and not sure why I didn't report this earlier. Open a latex file, and write an unmatched `[` (opening square bracket) after a command in math mode, i.e.: `$ a \in [0,2\pi) $`

Expected behavior: Geany/ctags/IDon'tKnow still knows that we're in math mode, so an opening bracket does not necessarily start an optional argument.

Actual behavior: the opening bracket causes *everything* after it (including the text after math mode) to be highlighted as a command argument (i.e., bold blue).

Minimal working example:

	\documentclass[a4paper,parskip]{scrartcl}
	\usepackage[utf8]{inputenc}
	\usepackage{amsmath,amssymb,amsfonts}

	\begin{document}

	\section{Hello}

	We know that $angle(x,p) \in [0,2\pi)$ must hold.

	\end{document}

Essentially the newest version:

	$ LC_ALL=C geany --version
	geany 1.27 (git >= d1fcd9f) (built on 2016-01-03 with GTK 2.24.29, GLib 2.46.2)

The bugtracker does not seem to know this issue already. If this needs forwarding to ctags/scintilla/IDon'tKnow, please do that for me.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/859
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160108/980ea89a/attachment.html>


More information about the Github-comments mailing list