summaryrefslogtreecommitdiff
path: root/vala/valagenietokentype.vala
diff options
context:
space:
mode:
authorJamie McCracken <jamiemcc gnome org>2009-04-13 20:30:29 -0400
committerJamie McCracken <jamiemcc gnome org>2009-04-13 20:30:29 -0400
commitcbc2127176905c19229c89ef9c28afc8ca81f41a (patch)
tree98a1fa206c73b4f7ce1499f7a13db0b631f70b72 /vala/valagenietokentype.vala
parent41efbe449e61d9fd892449fa7735457d01646ffb (diff)
downloadvala-cbc2127176905c19229c89ef9c28afc8ca81f41a.tar.gz
Updated genie scanner to handle all new/missing vala tokens and directives
Diffstat (limited to 'vala/valagenietokentype.vala')
-rw-r--r--vala/valagenietokentype.vala13
1 files changed, 12 insertions, 1 deletions
diff --git a/vala/valagenietokentype.vala b/vala/valagenietokentype.vala
index a2fd0ca46..5193c61ec 100644
--- a/vala/valagenietokentype.vala
+++ b/vala/valagenietokentype.vala
@@ -91,6 +91,7 @@ public enum Vala.Genie.TokenType {
INLINE,
INTEGER_LITERAL,
INTERFACE,
+ INTERNAL,
INTERR,
IS,
ISA,
@@ -120,6 +121,7 @@ public enum Vala.Genie.TokenType {
OPEN_BRACKET,
OPEN_PARENS,
OVERRIDE,
+ OWNED,
PASS,
PERCENT,
PLUS,
@@ -149,15 +151,19 @@ public enum Vala.Genie.TokenType {
TRUE,
TRY,
TYPEOF,
+ UNOWNED,
USES,
VAR,
+ VERBATIM_STRING_LITERAL,
VIRTUAL,
VOID,
VOLATILE,
WEAK,
WHEN,
WHILE,
- WRITEONLY;
+ WRITEONLY,
+ YIELD,
+ YIELDS;
public weak string to_string () {
switch (this) {
@@ -227,6 +233,7 @@ public enum Vala.Genie.TokenType {
case INLINE: return "`inline'";
case INTEGER_LITERAL: return "integer literal";
case INTERFACE: return "`interface'";
+ case INTERNAL: return "`internal'";
case INTERR: return "`?'";
case IS: return "`is'";
case ISA: return "`isa'";
@@ -256,6 +263,7 @@ public enum Vala.Genie.TokenType {
case OPEN_BRACKET: return "`['";
case OPEN_PARENS: return "`('";
case OVERRIDE: return "`override'";
+ case OWNED: return "`owned'";
case PASS: return "`pass'";
case PERCENT: return "`%'";
case PLUS: return "`+'";
@@ -285,6 +293,7 @@ public enum Vala.Genie.TokenType {
case TRUE: return "`true'";
case TRY: return "`try'";
case TYPEOF: return "`typeof'";
+ case UNOWNED: return "`unowned'";
case USES: return "`uses'";
case VAR: return "`var'";
case VIRTUAL: return "`virtual'";
@@ -294,6 +303,8 @@ public enum Vala.Genie.TokenType {
case WHEN: return "`when'";
case WHILE: return "`while'";
case WRITEONLY: return "`writeonly'";
+ case YIELD: return "`yield'";
+ case YIELDS: return "`yields'";
default: return "unknown token";
}
}