[Geany-devel] [PATCH] Add support for Erlang and (R5RS) Scheme

Nick Treleaven nick.treleaven at xxxxx
Wed Oct 20 15:52:32 UTC 2010


On Wed, 20 Oct 2010 09:13:46 -0400
Taylor Venable <taylor at metasyntax.net> wrote:

> > We require that Scintilla changes be added to the official project
> > first, otherwise things could break when we merge Scintilla.
> >
> > Also, how different is Scheme to Lisp syntax - maybe the Lisp lexer
> > could be shared? Could be discussed with the Scintilla project.
> >
> > In the meantime, I could apply the patch but change Scheme to use the
> > Lisp lexer.
> >
> 
> I've removed the Scheme part from the diff at
> http://metasyntax.net/geany-erlang.diff so just the Erlang can be applied. I

Thanks, applied. I changed a line in filetypes.erlang:
function_name=default,bold

When using named styles there's a different syntax for bold - the
original happened to have the same effect but printed a debug warning.

> don't know how Scintilla takes into account different variants of the same
> syntax, but there are differences between Common Lisp and Scheme, and
> amongst individual Scheme implementations, so I'll go upstream first to talk
> with them about that: no point doing it one way if you just have to change
> course soon afterward.

OK. BTW our Scintilla is a few releases old and there are incompatible
changes in the latest Scintilla. If your lexer is accepted it may be
possible to use the current version until we update our Scintilla.

> Note that in the patch I didn't update the build
> process for Windows since I don't use Windows and haven't any systems to

No problem, done.

> test it on. Some of the Erlang highlighting colours may need to be adjusted;
> I don't use Erlang a lot yet, and I don't know what people are expected or
> desiring, compared with say the angry fruit salad you can get in Emacs -
> which I quite like actually but there aren't that many named styles in
> Geany. :-)

Named styles haven't really caught on yet; I today added an
alternative color scheme alt.conf in (View->Editor->Color Schemes) so
this should raise their profile.

If you have any suggestions of adding named styles or updating other
filetypes to use them, let us know.

Nick



More information about the Devel mailing list