reStructuredText parser has it wrong for comments
It produces a runaway blue color every time two dots ..
appear in a
line. The definition of comment in reStructured Text is Any text which begins with an explicit markup start but doesn't use the syntax of any of the constructs above [the previous list of explicit markups], is a comment.
The symptom is that any line that contains ellipsis as three dots with a space after... like this one, will be shown in blue from the dots till EOL.
The fix is simple, change the start regex from (\s*)\.\.(\s+).+$
to ^(\s*)\.\.(\s+).+$
;
i.e. add a ^
to ensure that the capturing whitespace is from the beginning of the line.
I observed it in version:
$ dpkg-query -S /usr/share/gtksourceview-3.0/language-specs/rst.lang
libgtksourceview-3.0-common: /usr/share/gtksourceview-3.0/language-specs/rst.lang
$ dpkg -l libgtksourceview-3.0-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===========================-==================-==================-===========================================================
ii libgtksourceview-3.0-common 3.24.7-1 all common files for the GTK+ syntax highlighting widget