On Jun 14, 7:07 pm, "Edward K. Ream" <[email protected]> wrote:

> @nocolor, etc, do not work yet.  However, it may be possible to do all
> the heavy lifting in the pattern matchers.  We shall see...

Rev 2044 contains the latest (still disabled) code.  It contains
various tweaks. The general scheme is quite definitely going to work.
All unit tests now pass when using the new scheme.

The new code handles @killcolor correctly by using a very simple
restart method.  This is likely faster than any other shortcut method.
Even better, all the wretched coloring flags can now be eliminated.
The code keeps getting simpler and simpler. The other coloring
directives will be handled by their own restart methods.  This will
eliminate all special colorizing cases.

Still to do: write all the needed restart methods, and tweak the
existing pattern matchers to follow the slightly changed calling
conventions.  I expect no major problems doing this, but it will take
some time.

Edward

P.S.  It's becoming clear exactly why the new way works so well.  By
construction, the restart methods have access to the complete scanning
state.  As a result, it is trivial for them to restart the scan.
Better, they are completely self contained, and any details they
handle have absolutely no outside effects.  As a further result,
setting up the main line of the colorizer is trivial.  What a
difference from the old way!

EKR
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to