diff options
Diffstat (limited to 'src/parse/pattern.cpp')
-rw-r--r-- | src/parse/pattern.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse/pattern.cpp b/src/parse/pattern.cpp index 699e7fae..aed2c91d 100644 --- a/src/parse/pattern.cpp +++ b/src/parse/pattern.cpp @@ -43,8 +43,9 @@ AST::Pattern Parse_Pattern(TokenStream& lex, bool is_refutable) Token tok; tok = lex.getToken(); - if( tok.type() == TOK_MACRO ) + if( tok.type() == TOK_IDENT && lex.lookahead(0) == TOK_EXCLAM ) { + lex.getToken(); return AST::Pattern( AST::Pattern::TagMacro(), box$(Parse_MacroInvocation(ps, tok.str(), lex))); } if( tok.type() == TOK_INTERPOLATED_PATTERN ) |