beaver-devel
[Top][All Lists]
Advanced

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

Re: [Beaver-devel] Syntax Highlighting


From: Michael Terry
Subject: Re: [Beaver-devel] Syntax Highlighting
Date: Wed, 19 Mar 2003 12:02:53 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030319

Leslie Polzer wrote:
The syntax highlighting needs a rewrite.
I suggest we use separate source files for every Lexer.

Advantage: fast, correct and flexible syntax highlighting
that considers the peculiarities of every language (think of PHP/HTML).
Clean and organized code. Powerful regular expressions compiled at
Beaver start-up.
Please see the attached Perl script to get an idea how this would
be accomplished. The HTML color tags are of course to be replaced
by GtkTextTags.

Disadvantage: good-bye Ultraedit-compatible wordfiles.

Synthesis: use information we can still store in the wordfiles
(like keywords) with the above Lexers, add additional features
the Lexer brings and throw away obsolete stuff in the wordfiles.

What do you (that is, the members of this list) think?

I like it. One thing that might be nice is if we kept wordfile compatibility and only used it if we didn't have a built-in lexer. This way, users can still add crazy languages that we've never heard of and have them work, but for the majority of people, Beaver is still super-fast and accurate.

-mt

Attachment: pgp3wbZtkYLYa.pgp
Description: PGP signature


reply via email to

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