Scintilla Lexer for D

Waldemar waldemar at wa-ba.com
Wed Dec 13 22:21:22 PST 2006


== Quote from Hasan Aljudy (hasan.aljudy at gmail.com)'s article
> Chris Miller wrote:
> > On Wed, 13 Dec 2006 11:31:19 -0500, jcc7 <technocrat7 at gmail.com> wrote:
> >
> >> Waldemar Wrote:
> >>
> >>> Folks FYI,
> >>>
> >>> Scintilla now has a lexer for D.  At the moment it is available only
> >>> via CVS
> >>> but should appear in the next release.  This will make all
> >>> scintilla-based
> >>> editors and IDEs capable of supporting D very easily.
> >>
> >> Sounds great! Thanks for doing this.
> >>
> >> I took a glance at the source (I think I found the right file):
> >>
http://scintilla.cvs.sourceforge.net/scintilla/scintilla/src/LexD.cxx?revision=1.1&view=markup
> >>
> >>
> >> It looks like you've even managed to support nested comments. That's
> >> fantastic!
> >>
> >> Do you have any idea how often the Scintilla team releases new
> >> versions? I can't wait to try this out. ;)
> >>
> >> jcc7
> >
> > Hmm.. My Scintilla changes supported D and its nesting comments for a
> > long time, almost a year and a half.
> > This guy even emailed me a while back asking if my changes could be
> > incorporated in Scintilla and I said sure.
> > http://wiki.dprogramming.com/DLex/HomePage ~
> > http://wiki.dprogramming.com/SciTE/HomePage
> > o-kay.
> heheh ..
> I knew there's already a D port of Scintilla, and I was gonna say that,
> but I know next to nothing about Scintilla, and I wasn't sure if there
> was a fundamental difference between this one and that one, so I didn't
> say anything, fearing that I would only put myself in an embarrassing
> position.


I knew about it, too.  But I did my research and found out that this code was
rejected by scintilla.  It was never resubmitted.  It was based on an old CPP
lexer and had several problems including a questionable method of dealing with
nested comments.  The best way to get it in was to modify the existing CPP lexer
and use standard mechanisms for nesting comments.  I also added folding.



More information about the Digitalmars-d mailing list