GNOME Bugzilla – Bug 644671
Vala language syntax file updated to support new features
Last modified: 2011-04-25 17:42:09 UTC
Created attachment 183299 [details] [review] Vala syntax highlighting plugin updated I've updated the vala language file to update it against new language features, and to fix some old bugs. * 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)
You can see an example of the new output at http://go.3v1n0.net/gh8lEQ
So far the vala.lang file has been maintained by the vala guys themselves, so I prefer to leave up to them the review/commit/etc.
The patch looks fine, thanks for working on this. I've pushed it to master after replacing _name= by name= for the new strings as gtksourceview is still in string freeze. commit c4cefd24310f8712563268d51d98bdd879170fc3 Author: Marco Trevisan (Treviño) <mail@3v1n0.net> Date: Sun Mar 13 21:34:38 2011 +0100 Vala syntax highlighting plugin updated * 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)