From: Wolfgang (Blub) Bumiller Date: Sat, 10 Nov 2012 14:43:43 +0000 (+0100) Subject: Shouldn't require a 'local' keyword for local fieldpointers X-Git-Tag: 0.1~19^2~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8687aa9a3e7e97f341a518ebdfcc55e25c52fabf;p=xonotic%2Fgmqcc.git Shouldn't require a 'local' keyword for local fieldpointers --- diff --git a/parser.c b/parser.c index dc42884..0bd3d7f 100644 --- 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) {