[Vala] Vala syntax highlight plugin for gtksourceview updated



The vala language plugin for libgtksourceview is quite old and it misses
some features and it has some bugs.

I've updated it to get a better experience in all gtk editors/viewers
using this library (like GEdit, Anjuta, Scribes...) for getting the best
vala development experience there:

* Added extension support to *.vapi files
* Support for verbatim strings (triple quoted strings)
* Dropped standard string support since Vala supports multiline
  strings by default
* Support for string templates highlighting
  Each string starting with @" is now parsed for variable references
  (using the $ prefix) or for expressions (using the $(expr) container)
* Dropped support for strings with single quote (they are char's!)
* Support for directives (#if, #else, #elif, #endif)
* Support for #if 0, #if false comments
* Support for @identifiers: they aren't highlighted now
* Added async modifier keyword
* Use void as a type
* Support for Vala attributes
* Support for types declaration highlighting
* Support for gtk-doc syntax in comments
* Fallback to c implementations for decimal, hexadecimal, float, octal
  and char (before not supported)

I've sent the patch against the git master to the gtksourceview
develpers via bugzilla [1], while the complete file is attached to this
mail (just put it in /usr/share/gtksourceview-2.0/language-specs/ or
~/.gnome2/gtksourceview-1.0/language-specs/).

You can see the result in this screenshot: http://go.3v1n0.net/gh8lEQ
Please, test it and let me know if you find any bug or you have some
suggestions! ;)

[1] https://bugzilla.gnome.org/show_bug.cgi?id=644671

Attachment: vala.lang
Description: application/xml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]