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.
Thanks, wanted to make a new patch for Geany but didn't have time since I sent the Erlang lexer upstream :)
Hope this works as expected ;)
/Lenain On 20 oct. 2010, at 03:10, 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.
-- Taylor C. Venable http://metasyntax.net/ _______________________________________________ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
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.
Nick
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. :-)
On Wed, 20 Oct 2010 09:13:46 -0400 Taylor Venable taylor@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