After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 644671 - Vala language syntax file updated to support new features
Vala language syntax file updated to support new features
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-13 20:37 UTC by Marco Trevisan (Treviño)
Modified: 2011-04-25 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Vala syntax highlighting plugin updated (11.20 KB, patch)
2011-03-13 20:37 UTC, Marco Trevisan (Treviño)
none Details | Review

Description Marco Trevisan (Treviño) 2011-03-13 20:37:06 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)
Comment 1 Marco Trevisan (Treviño) 2011-03-13 20:37:53 UTC
You can see an example of the new output at http://go.3v1n0.net/gh8lEQ
Comment 2 Paolo Borelli 2011-04-25 16:37:47 UTC
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.
Comment 3 Jürg Billeter 2011-04-25 17:42:09 UTC
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)