aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/ok/0060_as_range.rs
diff options
context:
space:
mode:
authorGeoffry Song <[email protected]>2019-11-15 08:08:43 +0000
committerGeoffry Song <[email protected]>2019-11-15 08:18:28 +0000
commit989cebc99c02acd427f01724c4fa77d81691e886 (patch)
tree89c2ed0185257de734b60eb3db01be2f5270b7c3 /crates/ra_syntax/test_data/parser/ok/0060_as_range.rs
parent3ad11973ac7596323f085a9fcb9530e47f021c41 (diff)
Fix parsing of "postfix" range expressions.
Right now they are handled in `postfix_dot_expr`, but that doesn't allow it to correctly handle precedence. Integrate it more tightly with the Pratt parser instead. Also includes a drive-by fix for parsing `match .. {}`. Fixes #2242.
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0060_as_range.rs')
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0060_as_range.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0060_as_range.rs b/crates/ra_syntax/test_data/parser/ok/0060_as_range.rs
new file mode 100644
index 000000000..f063ffadb
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/ok/0060_as_range.rs
@@ -0,0 +1,4 @@
1fn main() {
2 0 as usize ..;
3 1 + 2 as usize ..;
4}