aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-10 09:53:07 +0000
committerAleksey Kladov <[email protected]>2018-02-10 09:53:07 +0000
commitdd6e5371ebddeaeecb3d1e2d3d6c8b3c9050bb05 (patch)
tree6e68e8242bbc181e5a846754466d4109783b6a2f /src/parser
parent2ef16a4121ad497e7fb290445ffe644b6b8ceae6 (diff)
G: where clause
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/grammar/type_params.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser/grammar/type_params.rs b/src/parser/grammar/type_params.rs
index 73c3cf8b8..8f62a471c 100644
--- a/src/parser/grammar/type_params.rs
+++ b/src/parser/grammar/type_params.rs
@@ -70,9 +70,11 @@ pub(super) fn list(p: &mut Parser) {
70 70
71pub(super) fn where_clause(p: &mut Parser) { 71pub(super) fn where_clause(p: &mut Parser) {
72 if p.at(WHERE_KW) { 72 if p.at(WHERE_KW) {
73 let m = p.start();
73 p.bump(); 74 p.bump();
74 p.expect(IDENT); 75 p.expect(IDENT);
75 p.expect(COLON); 76 p.expect(COLON);
76 p.expect(IDENT); 77 p.expect(IDENT);
78 m.complete(p, WHERE_CLAUSE);
77 } 79 }
78} 80}