> I was trying to use the Scintilla for syntax highlight,
> multi undo, multi redo.
> But I do not know how to use the Scintilla with MFC.
> So, I decided to rewrite the RubyWin without MFC and I
> finished. Now I am trying to use the Scintilla again.

   I tried to write a Scintilla lexer for Ruby today but gave up as it
was more complex than I thought. The complex bits are arbitrary
characters used for quoting and here documents both of which
require quite a bit of maintained state which is hard within the
incremental lexing framework of Scintilla.

   However, Ruby is lexically similar to but simpler than Perl. Unless
there is are some more complex lexical features I've missed. So the
best place to start is with the subset Perl lexer which has to deal
with both extended quoting mechanisms. The current Perl lexer only
handles a subset of Perl but is still quite large. I think its quite
reasonable to first develop a subset Ruby lexer and then gradually add
features.

   If someone develops a Ruby lexer, I'd like to include it in the
Scintilla distribution so it could be used in SciTE and any other
editors that use Scintilla.

   Neil


Sent via Deja.com http://www.deja.com/
Before you buy.