diff options
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 724fcd75386..1e33e223d82 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -653,6 +653,11 @@ fn parse_lit(&parser p) -> ast::lit { p.bump(); lit = ast::lit_str(p.get_str(s), ast::sk_rc); } + case (token::LPAREN) { + p.bump(); + expect(p, token::RPAREN); + lit = ast::lit_nil; + } case (?t) { unexpected(p, t); } } } |
