On Wed, Oct 20, 2010 at 8:03 AM, Nick Treleaven < nick.treleaven@btinternet.com> wrote:
On Tue, 19 Oct 2010 21:10:17 -0400 Taylor Venable taylor@metasyntax.net wrote:
Hello. In response to my own feature requests (2993016, 2993022) I've written basic support for Erlang and Scheme into Geany. For Scheme, I hijacked the Lisp lexer and changed a few things, such as the names of
the
keyword configurations. There should probably be more subtle changes to accommodate differences in the languages. For Erlang, I used the existing Scintilla lexer and hooked it into Geany. The patch at http://metasyntax.net/geany.diff can be applied to at least Subversion
trunk
r5303. Please let me know if this is welcome, and if so I'll put some
time
into refining the support, adding tag scanners, etc.
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 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. 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 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. :-)