diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-09-21 22:32:24 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-09-21 22:32:24 +0100 |
| commit | 95fb5fa46cfb3c90d6d69027f090364333d8f821 (patch) | |
| tree | b57eae6d65cc41d7eb76203f8d0cdf9b0300477c /src/parser.cpp | |
| parent | d614913c112b68774d10853ff24e1a29fbd91ebb (diff) | |
Fix `#export` proc tag
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 821a57ab8..730f16d06 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1917,7 +1917,12 @@ AstNode *parse_ident(AstFile *f) { AstNode *parse_tag_expr(AstFile *f, AstNode *expression) { Token token = expect_token(f, Token_Hash); - Token name = expect_token(f, Token_Ident); + Token name = {}; + if (f->curr_token.kind == Token_export) { + name = expect_token(f, Token_export); + } else { + name = expect_token(f, Token_Ident); + } return ast_tag_expr(f, token, name, expression); } |