diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-21 10:04:00 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-21 10:04:00 +0000 |
commit | 463e5af3f2ff54b74e4aeb73e75047c00b6339be (patch) | |
tree | 00b56f7f72ceee1a6ebc11ff3a4cfae54782eaf7 /crates/ra_syntax/src/syntax_kinds | |
parent | 4f7ec0170353e61c148909d2716c915578392a7b (diff) | |
parent | 9beee92500bfb5953717a67c18217722ea82be49 (diff) |
Merge #306
306: Finish weird exprs r=DJMcNab a=DJMcNab
Fix #290.
Note that I'm not certain my use of `p.nth(1) == Ident` is entirely consistent with `libsyntax` - in the original, [`is_union_item`](https://github.com/rust-lang/rust/blob/9622f9dc4745eb59fd229477f453ae83e8044db9/src/libsyntax/parse/parser.rs#L4593-L4596) uses `t.is_ident() && !t.is_reserved_ident()`, whereas we effectively only do `is_ident`. However, I cannot find the definition of `is_reserved_ident` (even searching the rust repository only gives uses, no definitions), so this will have to do unless someone else can find it :|.
Co-authored-by: DJMcNab <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds')
0 files changed, 0 insertions, 0 deletions