diff options
| author | Vexu <git@vexu.eu> | 2019-12-12 18:26:12 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-12 13:06:48 -0500 |
| commit | c759a77aa063f75b29a2278409b9c6d92496ae5d (patch) | |
| tree | 53f43fa6c48e0523eef7e603c5df506354e2e423 /src/parser.cpp | |
| parent | d08dc21116fb2f21b170930475ab122e668144e3 (diff) | |
| download | zig-c759a77aa063f75b29a2278409b9c6d92496ae5d.tar.gz zig-c759a77aa063f75b29a2278409b9c6d92496ae5d.zip | |
fix dot init parsing
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 96162632b9..4b5e0e3ebb 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1923,7 +1923,11 @@ static AstNode *ast_parse_anon_lit(ParseContext *pc) { } // anon container literal - return ast_parse_init_list(pc); + AstNode *res = ast_parse_init_list(pc); + if (res != nullptr) + return res; + put_back_token(pc); + return nullptr; } // AsmOutput <- COLON AsmOutputList AsmInput? |
