diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 21:59:08 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 21:59:08 +0100 |
commit | c8e59012757665649125a218416283d416e36547 (patch) | |
tree | 76676abfcbf2c258de173ff168d12b6ece40e4fb /src | |
parent | 5b43010083d029300230e2ea35e9cce6fd5daea3 (diff) |
number field
Diffstat (limited to 'src')
-rw-r--r-- | src/grammar/expressions.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grammar/expressions.rs b/src/grammar/expressions.rs index 00a0ec953..e2be13a77 100644 --- a/src/grammar/expressions.rs +++ b/src/grammar/expressions.rs | |||
@@ -210,7 +210,8 @@ fn method_call_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { | |||
210 | 210 | ||
211 | // test field_expr | 211 | // test field_expr |
212 | // fn foo() { | 212 | // fn foo() { |
213 | // x.foo.bar; | 213 | // x.foo; |
214 | // x.0.bar; | ||
214 | // } | 215 | // } |
215 | fn field_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { | 216 | fn field_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker { |
216 | assert!(p.at(DOT) && (p.nth(1) == IDENT || p.nth(1) == INT_NUMBER)); | 217 | assert!(p.at(DOT) && (p.nth(1) == IDENT || p.nth(1) == INT_NUMBER)); |