diff options
author | DJMcNab <[email protected]> | 2018-12-17 22:34:18 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-19 20:12:18 +0000 |
commit | 20bbe0127cc6bfac3ced0c7ed1de4f0526f3bbed (patch) | |
tree | 7be28cc0c1f3848a024474fb52cc5663725c2700 /crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs | |
parent | 0bd9d87e87c6435d439de3f682b83bc74d784de3 (diff) |
Fix parsing of inclusive ranges (#214)
I'm not certain that this is correct, so extra eyes would be good
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs b/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs index 03f4ae7b2..f9ff444d4 100644 --- a/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs +++ b/crates/ra_syntax/tests/data/parser/ok/0029_range_forms.rs | |||
@@ -3,4 +3,9 @@ fn foo() { | |||
3 | ..z = 2; | 3 | ..z = 2; |
4 | x = false..1 == 1; | 4 | x = false..1 == 1; |
5 | let x = 1..; | 5 | let x = 1..; |
6 | |||
7 | ..=1 + 1; | ||
8 | ..=z = 2; | ||
9 | x = false..=1 == 1; | ||
10 | let x = 1..; | ||
6 | } | 11 | } |