[SVN] r11471 (Latex)

Allan Odgaard mailinglist at textmate.org
Mon Apr 13 15:05:14 UTC 2009


• improve the regexp used to match non-comment part of lines

The previous regexp would cause a break point per character in the line and Ruby’s regexp lib “only” allow around 2,000 of these, so users with excessively long lines saw this command error out (stack overflow).

As a quick fix I made the regexp match the entire line in one go, if it does not contain any % characters. It then falls back on the old regexp (i.e. via normal regexp alternation).

Changed:
U   trunk/Bundles/Latex.tmbundle/Commands/Show Outline.tmCommand



More information about the textmate-dev mailing list