From: Ali Sabil Date: Tue, 17 Feb 2009 10:02:57 +0000 (+0000) Subject: escape the dynamic keyword, and identifiers starting with a digit X-Git-Tag: 0.5.7~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcad21fb85edaa7a30eddd75b29614c8bd2bfbd0;p=thirdparty%2Fvala.git escape the dynamic keyword, and identifiers starting with a digit 2009-02-17 Ali Sabil * vala/valacodewriter.vala: escape the dynamic keyword, and identifiers starting with a digit svn path=/trunk/; revision=2447 --- diff --git a/ChangeLog b/ChangeLog index 88927d6b6..802be13d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-17 Ali Sabil + + * vala/valacodewriter.vala: escape the dynamic keyword, and identifiers + starting with a digit + 2009-02-17 Ryan Lortie * gobject/valaccodebasemodule.vala: diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index aef68650a..3a8b29871 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -1558,10 +1558,10 @@ public class Vala.CodeWriter : CodeVisitor { private void write_identifier (string s) { if (s == "base" || s == "break" || s == "class" || s == "construct" || s == "delegate" || s == "delete" || - s == "do" || s == "foreach" || s == "in" || + s == "do" || s == "dynamic" || s == "foreach" || s == "in" || s == "interface" || s == "lock" || s == "namespace" || s == "new" || s == "out" || s == "ref" || - s == "signal") { + s == "signal" || s.get_char ().isdigit ()) { stream.putc ('@'); } write_string (s);