diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-16 09:54:13 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-16 09:54:13 +0800 |
commit | 72acbb24c256c8652fd905d2bdb2f0b0953d5b0d (patch) | |
tree | b62007b4dc588f544f4526e1cab1214fd1d00bb8 /src | |
parent | d17242a9d79c4f27aa557c93b2a77447862d6b92 (diff) | |
download | mrust-72acbb24c256c8652fd905d2bdb2f0b0953d5b0d.tar.gz |
Parse Patterns - Allow < and << to start a path in a pattern
Diffstat (limited to 'src')
-rw-r--r-- | src/parse/pattern.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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: |