summaryrefslogtreecommitdiff
path: root/src/parse
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-12 10:34:29 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-12 10:34:29 +0800
commit314edf07074ca2b211463ccf6b0e79ef051ffaa2 (patch)
treeb0236674d408e384dceba0c1b16e6266d2333cca /src/parse
parent19d4cd58c3ba07dd4bce84dc7c94eafb20b6a2ff (diff)
downloadmrust-314edf07074ca2b211463ccf6b0e79ef051ffaa2.tar.gz
Parse - Fix against newer compiler tests
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/expr.cpp b/src/parse/expr.cpp
index b07567a7..10a49dd8 100644
--- a/src/parse/expr.cpp
+++ b/src/parse/expr.cpp
@@ -76,6 +76,8 @@ ExprNodeP Parse_ExprBlockNode(TokenStream& lex)
GET_CHECK_TOK(tok, lex, TOK_SQUARE_CLOSE);
break;
// Items:
+ case TOK_RWORD_PUB:
+ GET_TOK(tok, lex);
case TOK_RWORD_TYPE:
case TOK_RWORD_USE:
case TOK_RWORD_EXTERN: