[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] disable a time-consuming multiline regex?
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] disable a time-consuming multiline regex? |
Date: |
Tue, 29 Dec 2015 17:52:04 +0100 |
On Thu, Dec 24, 2015, at 07:11, Eitan Adler wrote:
> On 23 December 2015 at 09:38, Mike Frysinger <address@hidden> wrote:
> > On 01 Dec 2015 21:14, Benno Schulenberg wrote:
> >> The following regex in c.nanorc is very time-hungry:
> >>
> >> # Multiline strings. This regex is VERY resource intensive!
> >> color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$"
> >> end="^(\\.|[^"])*""
> >
> > i tend to disable it as well because it gets other cases wrong like:
> > #define FOO() \
> > printf("ok!"); \
> > blah; \
> > printf("done!");
> >
> > it causes the whole body of the macro to be highlighted
>
> +1 please disable it or remove it.
Disabled in SVN, r5513, also for assembler. It was already disabled
for Objective-C.
Benno
--
http://www.fastmail.com - Same, same, but different...