filetypes.V.conf for Geany lightweight IDE/editor
I've made a basic custom filetype for the cross-platform Geany editor (https://geany.org). It has syntax highlighting, code folding, autocompletion, symbol list. Geany doesn't support custom lexing/tag parsing so this is based on the Rust lexer and tag parser (to recognise `fn`). Some things won't work properly like V method syntax and single quote strings, but I think it's pretty good. Hopefully V will support double quoted strings soon (https://github.com/vlang/v/issues/153) ;-)
You just have to save the file in a subdirectory filedefs of your System data dir or User config dir. Click Help -> Debug Messages and scroll to the top to find what those directories are.
Forgot to mention, to associate .v files with the V filetype, you also need to edit another config file. See the top of filetypes.V.conf for instructions. (As Geany recognises .v as Verilog, we have to first disable that then register .v for V and optionally set a filetype group for V).
Log in via GitHub to comment
, open-source blogging/forum software written in V