rust-analyzer/crates/ra_parser/src/grammar
bors[bot] d9338dfa98
Merge #1951
1951: Lower the precedence of the `as` operator. r=matklad a=goffrie

Previously, the `as` operator was being parsed like a postfix expression, and
therefore being given the highest possible precedence. That caused it to bind
more tightly than prefix operators, which it should not. Instead, parse it
somewhat like a normal binary expression with some special-casing.

Fixes #1851.

Co-authored-by: Geoffry Song <goffrie@gmail.com>
2019-10-08 08:44:26 +00:00
..
expressions Fix parsing of block expressions in "forbid_structs" contexts. 2019-10-03 00:39:52 -07:00
items Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
attributes.rs Merge branch 'master' into feature/issue/1856 2019-09-30 12:07:26 +03:00
expressions.rs Merge #1951 2019-10-08 08:44:26 +00:00
items.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
params.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
paths.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
patterns.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
type_args.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
type_params.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00
types.rs Added test for check doc strings in crates. 2019-09-30 11:58:53 +03:00