aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/grammar/mod.rs')
-rw-r--r--src/parser/grammar/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser/grammar/mod.rs b/src/parser/grammar/mod.rs
index 63ad2782e..c2da775a2 100644
--- a/src/parser/grammar/mod.rs
+++ b/src/parser/grammar/mod.rs
@@ -99,6 +99,7 @@ fn abi(p: &mut Parser) {
99// fn d(x: i32, y: ()) {} 99// fn d(x: i32, y: ()) {}
100fn fn_value_parameters(p: &mut Parser) { 100fn fn_value_parameters(p: &mut Parser) {
101 assert!(p.at(L_PAREN)); 101 assert!(p.at(L_PAREN));
102 let m = p.start();
102 p.bump(); 103 p.bump();
103 while !p.at(EOF) && !p.at(R_PAREN) { 104 while !p.at(EOF) && !p.at(R_PAREN) {
104 value_parameter(p); 105 value_parameter(p);
@@ -107,6 +108,7 @@ fn fn_value_parameters(p: &mut Parser) {
107 } 108 }
108 } 109 }
109 p.expect(R_PAREN); 110 p.expect(R_PAREN);
111 m.complete(p, PARAM_LIST);
110 112
111 fn value_parameter(p: &mut Parser) { 113 fn value_parameter(p: &mut Parser) {
112 let m = p.start(); 114 let m = p.start();