Hello,
I would like geany to support the cython [1] programming language. The Cython language is very close to the Python language, but Cython additionally supports calling C functions and declaring C types on variables and class attributes. It is really useful when wrapping C libraries into python. Cython is built upon Pyrex, they both uses the same filename extension and a compatible to a certain extent.
I had a look at [2] but I'm still not sure of what should be done. Here is my first attempt:
- I added GEANY_FILETYPES_CYTHON to filetypes.{c,h}. I choosed ft->lang = 7, but I'm not sure about it means ([2] doesn't mention it) - I added data/filetypes.cython, copied from the cython one with additional keywords (I still need to change the build options) - I think we can use the Python lexer, but I don't know how to explain it to geany, so I did nothing yet.
These modifications are in the attached patch (against trunk). It compiles and works: I now have a cython filetype in geany. However, I still have no folding nor syntax highlighting. Can you guide me a little bit for the next step?
Regards -- Sébastien Barthélemy
[1] http://www.cython.org/ [2] http://www.geany.org/manual/hacking.html#adding-a-filetype