[Geany-devel] scala support

Lex Trotman elextr at xxxxx
Tue Sep 8 00:25:50 UTC 2009


2009/9/8 francisco treacy <francisco.treacy at gmail.com>:
> Hi all,
>
> I discovered Geany not long time ago and I love the balance of
> features/power (without getting bloated).
>
> Now as I am coding in Scala, I would like to add support for this language.
>
> Unfortunately I have no idea about Scintilla/Scite (which I read you
> supported for syntax) and my C is way too rusty.

Unfortunately you will need to write a little C to add a filetype, but
most should be able to be copied from other filetypes.  The HACKING
file in the source (or on the Geany web site) has instructions on
adding a filetype.  Since you are re-using the C++ lexer it shouldn't
be too much effort.

But I found a
> properties file for Scite in the Scala repository:
> http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/scite/scala.properties

Geany has its own properties files which contain similar information
but in a different format and you should be able to translate from
this file.  See the manual and the HACKING file.

> (From what I got on the mailing list, this is based on the Scintilla C++ lexer).
>
> So... is anybody else interested in getting Scala syntax to work?
> (and possibly code completion and other goodies... but there I'm going
> faster than the music).
> Could you please point me to some straightforward steps to integrate
> support into Geany?

The HACKING file and the manual are the main documentation, as I siad
above (and as the docs say) copy code from another filetype, probably
C++ since you are going to re-use its lexer.

Cheers
Lex

>
> If you need examples of the Scala language, here there are plenty:
> http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk/src/library/scala/
>
> Thanks!
>
> Francisco
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>



More information about the Devel mailing list