neharob / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

LaTeXSyntax highlighting #164

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. construct a file containing this line:
\def\mydate$#1: #2 #3 ${\mbox{\tt #2 #3 UTC}}
and a bunch of other stuff after it.
2. Open it in Editra.

What is the expected output? What do you see instead?

You see the entire remainder of the file in boldface.
Apparently the "${" in the \def statement confuses the
LaTeX parser, and it thinks that the entire remainder of
the file is part of the \def .

The trouble is, \def doesn't follow normal LaTeX syntax.
A possible patch would be to limit the maximum scope of
a $ or { to be just a few lines.    Then, at least,
Editra would get most of the file right.

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?

What method of install was your version installed with (Binary/Source)?

If from source: What version of python and wxPython are you using?

Please provide any additional information below.

Original issue reported on code.google.com by gpk...@gmail.com on 24 Sep 2008 at 8:11

GoogleCodeExporter commented 9 years ago
Must be a bug in Scintilla. The version used in wxPython 2.8 is fairly old so 
there 
may be a fix when 2.9 comes out. Will investigate further.

Original comment by CodyPrec...@gmail.com on 24 Sep 2008 at 1:12

GoogleCodeExporter commented 9 years ago
This appears to be fixed in newer versions of Scintilla.

The fix will land in Editra when wxPython2.9 is released.

Original comment by CodyPrec...@gmail.com on 13 Feb 2009 at 4:43