summaryrefslogtreecommitdiff
path: root/vala/valascanner.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-11-14 20:57:37 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-11-14 20:57:37 +0000
commit070c9d911a1ca743c46bc105977d2531232bdffa (patch)
tree0b002df8566864f49359c02e6e2d2d981b1e58ca /vala/valascanner.vala
parentd1bc16004dad8bfd9e6ae5f0d7437f1bd7e61187 (diff)
downloadvala-070c9d911a1ca743c46bc105977d2531232bdffa.tar.gz
Support parameter arrays, fixes bug 538897
2008-11-14 Jürg Billeter <j@bitron.ch> * vala/valaformalparameter.vala: * vala/valainterfacewriter.vala: * vala/valainvocationexpression.vala: * vala/valaparser.vala: * vala/valascanner.vala: * vala/valasemanticanalyzer.vala: * vala/valatokentype.vala: * gobject/valaccodeinvocationexpressionmodule.vala: Support parameter arrays, fixes bug 538897 svn path=/trunk/; revision=2021
Diffstat (limited to 'vala/valascanner.vala')
-rw-r--r--vala/valascanner.vala9
1 files changed, 8 insertions, 1 deletions
diff --git a/vala/valascanner.vala b/vala/valascanner.vala
index 84f029005..daa7f44ef 100644
--- a/vala/valascanner.vala
+++ b/vala/valascanner.vala
@@ -192,7 +192,14 @@ public class Vala.Scanner {
if (matches (begin, "inline")) return TokenType.INLINE;
break;
case 'p':
- if (matches (begin, "public")) return TokenType.PUBLIC;
+ switch (begin[1]) {
+ case 'a':
+ if (matches (begin, "params")) return TokenType.PARAMS;
+ break;
+ case 'u':
+ if (matches (begin, "public")) return TokenType.PUBLIC;
+ break;
+ }
break;
case 'r':
if (matches (begin, "return")) return TokenType.RETURN;