]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Shouldn't require a 'local' keyword for local fieldpointers
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 10 Nov 2012 14:43:43 +0000 (15:43 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 09:13:01 +0000 (10:13 +0100)
parser.c

index dc4288484121ffad3de4d51bae91adbbaf23365c..0bd3d7f481ae7f88f0e6778e7dfb96d4b97b54ae 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1597,7 +1597,7 @@ onerr:
 
 static bool parse_statement(parser_t *parser, ast_block *block, ast_expression **out)
 {
-    if (parser->tok == TOKEN_TYPENAME)
+    if (parser->tok == TOKEN_TYPENAME || parser->tok == '.')
     {
         /* local variable */
         if (!block) {