The V Programming Language

Simple, fast, safe language created for developing Volt, soon available for everyone.

Open source release in June 2019. Early access since April 15.
Install V from source in 0.5 seconds
wget vlang.io/v.c && gcc -o v v.c
1.9k

filetypes.V.conf for Geany lightweight IDE/editor

Alex
Apr 15 · 3 min read
ntrel May 16 10:28
Hi,
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) ;-)

https://raw.githubusercontent.com/ntrel/vdev/master/filetypes.V.conf

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.
ntrel May 16 10:42
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



Powered by vtalk, open-source blogging/forum software written in V