nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] aggressive C color highlighting


From: Alexey Toptygin
Subject: Re: [Nano-devel] aggressive C color highlighting
Date: Thu, 3 Aug 2006 22:34:49 +0000 (UTC)

On Thu, 3 Aug 2006, address@hidden wrote:

I already have this implemented in an patch to 1.3.0. There were a few bugs with some additional features that kept me from releasing it and I lost my free time before resolving them. I will try to port the code sans buggy features to the latest source and post it here.

--

Nano colorizes every match on the screen before moving on to the next expression. Match overlap removal can be handled using two different methods.

1) Apply all expressions to the current character pointer and increment to the end of the match or to the next character when there is no match. This method is quite simple and will give a significant speed boost.

2) Use the same technique as in the first method but store all matches in a list and colorize the text using the list. The list must be rebuilt each time the file is modified. This method uses more memory to store the list but gives a huge speed increase when only viewing a file and no loss in speed compared to the first method.

This is exactly what I had in mind. It would be nice to see your patch, even if it's broken.

                        Alexey




reply via email to

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