diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 10:32:53 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 10:32:53 +0100 |
commit | ff71cb1f6de07479610fb0f45e740b249e8a01c6 (patch) | |
tree | 29df6315075f7e0339e8687a78a5bfcef776f900 /src/parser/grammar/mod.rs | |
parent | c244dd10343ff96a73879c593bd9253c4073cb90 (diff) |
Introduce param & arg list
Diffstat (limited to 'src/parser/grammar/mod.rs')
-rw-r--r-- | src/parser/grammar/mod.rs | 2 |
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: ()) {} |
100 | fn fn_value_parameters(p: &mut Parser) { | 100 | fn 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(); |