aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/types.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2018-02-10 09:54:34 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2018-02-10 09:54:34 +0000
commitc3b009b6d24225ad2add62fce8206918fceba3eb (patch)
tree6e68e8242bbc181e5a846754466d4109783b6a2f /src/parser/grammar/types.rs
parent419b9b7e5efd895249934551cb2588b27a956f58 (diff)
parentdd6e5371ebddeaeecb3d1e2d3d6c8b3c9050bb05 (diff)
Merge #45
45: Types r=matklad a=matklad bors r+
Diffstat (limited to 'src/parser/grammar/types.rs')
-rw-r--r--src/parser/grammar/types.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/parser/grammar/types.rs b/src/parser/grammar/types.rs
index 1a3d44a0a..c798edd08 100644
--- a/src/parser/grammar/types.rs
+++ b/src/parser/grammar/types.rs
@@ -1,5 +1,14 @@
1use super::*; 1use super::*;
2 2
3pub(super) fn type_ref(p: &mut Parser) { 3pub(super) fn type_ref(p: &mut Parser) {
4 p.expect(IDENT); 4 match p.current() {
5 IDENT => p.bump(),
6 L_PAREN => {
7 p.bump();
8 p.expect(R_PAREN);
9 }
10 _ => {
11 p.error("expected type");
12 }
13 }
5} 14}