[Aeditor-talk] regexp, yet another redesign

Simon Strandgaard neoneye at adslhome.dk
Thu Feb 26 00:32:49 EST 2004


On Mon, 2004-02-23 at 02:29, Simon Strandgaard wrote:
> Right now I have a minor problem with activation of the third
> quantifier... the testcase which provokes the problem is here
[snip test_verbose_repeat3]
> I have attached the error output where above testcase fails, it
> generates huge amounts of output! Its easy to see where it goes wrong,
> but its not that obvious what the exact cause of failure seems to be
> (maybe im too tired today).
> 

Phew..now its fixed. Changes to the datastructure was necessary, that
explains why the data in debug output was _very_ strange.

I took some days off (long needed vacation from regexp), because of the
wierd debug output and a possible datastructure change in sight. While
being on pseudo-vacation I made a simple syntax hiliter. Many years ago
I made one in pascal, for pascal, where I had draw complex state
machines on paper and later implement them. Yesterday within few hours I
had made a relatively nice Ruby2html syntax hiliter, by using regexp.

I have attached the code for the syntax-hiliter.. it doesn't have any
dependencies (except for Ruby).

--
Simon Strandgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/aeditor-talk/attachments/20040226/4aa7ab2d/syntax.html


More information about the Aeditor-talk mailing list