Re: Next generation of lexers

From: mitchell <mforal.n....at.gmail.com>
Date: Wed, 28 Apr 2010 16:24:55 -0700 (PDT)

Rob,

> >> I put lexers for Markdown, NSIS and Lilypond up here:http://bitbucket.org/rgieseke/textadept-lexers
>
> >> Feel free to include the lexers, if you like, they will hopefully
> >> improve as I use them more. I wasn't sure if a Markdown lexer is
> >> against the point of Markdown, but then I liked it.
>
> > Do you think they're polished enough to be included in the upcoming
> > release?
>
> NSIS and Lilypond, yes.
>
> % Lilypond
> ly lilypond
>
> % NSIS
> nsh nsis
> nsi nsis

Okay. In hg.

> [snip]
> How did you write all these lexers, by the way, did you mostly just
> "translate" the Scite lexers? Is there a project that collects example
> source files and keyword lists for all programming languages, a
> lexerland?

They're either written from scratch or based off of existing ones. I
do grab keywords from SciTE on occasion. I manually test lexers from
sample code via Wikipedia or google code search.

Mitchell

>
>
>
>
>
> >> Some thoughts on the new docs:
> >> I had bad experiences with other editors when a lexing style changed
> >> theme colors so lines became impossible to read. Maybe a note could be
> >> added to add back- and foreground colors together? The diff lexer is
> >> an example for this, maybe the foreground color could be changed?
> >> Another issue with the diff lexer: Lua comments are treated as
> >> deletions. I tried some but didn't find a good solution.
>
> >> Another idea for the Latex lexer, maybe it would be useful to turn
> >> this into a Tex lexer that covers plain Tex, Latex and Context.
> >> Currently there are quite a lot of keywords in the Latex lexer but it
> >> is impossible to cover all packages or new ones defined with
> >> renewcommand.
> >> I would do a
> >> local command = token('keyword', '\\' * l.word)
> >> This would cover Context's keywords as well. Having Latex environments
> >> in the lexer shouldn't be a problem.
> >> Then I have to look some more into LuaTeX, and have the Lua lexer embedded :-)
> >> I like their explanation for using Lua over x:http://luatex.org/faq.html
>
> > Thanks a lot for your suggestions, but if you could have code,
> > patches, and/or concrete text to contribute, that would be even
> > better. I'm pretty strapped for time with final exams coming up and
> > rather than spending time trying to understand exactly what you'd
> > like, I'd prefer to see what exactly needs to be done. Normally I have
> > no problems with what you're doing :) It's just this time of year
> > that's difficult for me.
>
> > Best,
> > Mitchell
>
> Sorry, if I have been vague and/or thinking aloud.
> I always accept "I'll accept a patch" as an answer. :-) It's just that
> sometimes there is a compatibility reason or something... I'll try to
> come up with more concrete solutions.
> As for the Tex lexer I was maybe hoping for feedback from Context
> users if that would be a good idea.
>
> Thanks,
> Robert
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/textadept?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "textadept" group.
To post to this group, send email to textadept.at.googlegroups.com.
To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
Received on Wed 28 Apr 2010 - 19:24:55 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:43:42 EST