nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Debian Bug#785508: nano: python highlighting fragile in


From: Benno Schulenberg
Subject: Re: [Nano-devel] Debian Bug#785508: nano: python highlighting fragile in v2.4
Date: Mon, 18 May 2015 20:01:56 +0200

On Mon, May 18, 2015, at 19:29, Alexandre Detiste wrote:
> "the starting sequence must be followed by a non-newline character"
> (exactly one occurence in the pgm I'm working on, see attachments)

Well, yes.  But that is my favourite docstring: the triple quotes
on lines by themselves.  :)

> Well I spent all my day in nano on a raspberry pi editing a 3000 lines pgm;
> so I'd prefer to pick fast matching (#5) over 100% correct matching. (#7)

Well, comment #7 says that the patch is "costly", but I doubt that
it will be noticeably slower than the current method of invalidating
the precalculations and then recalculating them (possibly wrongly) on
the fly.  I think that up to ten, twenty, thirty thousand lines the
difference will be hardly noticeable.  Could you try?  Could apply
the patch and rehearse it on a testing file that consists of ten
concatenated copies of your real pgm file?

Benno

-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
                          unladen european swallow




reply via email to

[Prev in Thread] Current Thread [Next in Thread]