From 72acbb24c256c8652fd905d2bdb2f0b0953d5b0d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 16 Oct 2016 09:54:13 +0800 Subject: Parse Patterns - Allow < and << to start a path in a pattern --- src/parse/pattern.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parse/pattern.cpp b/src/parse/pattern.cpp index 2b83d0f3..30d98fb6 100644 --- a/src/parse/pattern.cpp +++ b/src/parse/pattern.cpp @@ -195,6 +195,8 @@ AST::Pattern Parse_PatternReal1(TokenStream& lex, bool is_refutable) case TOK_RWORD_SELF: case TOK_RWORD_SUPER: case TOK_IDENT: + case TOK_LT: + case TOK_DOUBLE_LT: PUTBACK(tok, lex); return Parse_PatternReal_Path( lex, Parse_Path(lex, PATH_GENERIC_EXPR), is_refutable ); case TOK_DOUBLE_COLON: -- cgit v1.2.3