authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-01-31 17:17:00-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2016-01-31 17:17:00-07:00
log773cd851fe83d1ee89d7e0ca9e7ad7327d2962c9
tree9e580e8c238649ef67f0bec787256420c2105ae5
parent105317285402befe75289c20c4b12fccbe94aa08

parser: fix parsing of type decls


1 files changed, 2 insertions(+), 0 deletions(-)

src/parser.cpp+2
...@@ -2508,6 +2508,8 @@ static AstNode *ast_parse_type_decl(ParseContext *pc, int *token_index,...@@ -2508,6 +2508,8 @@ static AstNode *ast_parse_type_decl(ParseContext *pc, int *token_index,
2508 ast_buf_from_token(pc, name_tok, &node->data.type_decl.symbol);2508 ast_buf_from_token(pc, name_tok, &node->data.type_decl.symbol);
2509 node->data.type_decl.child_type = ast_parse_prefix_op_expr(pc, token_index, true);2509 node->data.type_decl.child_type = ast_parse_prefix_op_expr(pc, token_index, true);
25102510
2511 ast_eat_token(pc, token_index, TokenIdSemicolon);
2512
2511 node->data.type_decl.visib_mod = visib_mod;2513 node->data.type_decl.visib_mod = visib_mod;
2512 node->data.type_decl.directives = directives;2514 node->data.type_decl.directives = directives;
25132515