Files
rust/crates/ra_syntax/src
bors[bot] 97ade89993 Merge #692
692: [WIP] Correctly parse attributes  r=matklad a=DJMcNab

Reference - https://doc.rust-lang.org/reference/attributes.html
This fixes/investigates inner attributes for:

- [x] `impl` blocks
- [x] `extern` blocks
- [x] `fn`s (fixes #689)
- [x] `mod`s (already supported)
- [x] 'block expressions' (the long text just describes all 'blocks' used as statements)

This also investigates/fixes outer attributes for:

- [ ] 'most statements' (see also: #685, https://doc.rust-lang.org/reference/expressions.html#expression-attributes)
- [x] Enum variants, Struct and Union fields (Fixed in #507)
- [ ] 'Match expression arms' (@matklad can you provide a test case which explains what this means?)
- [ ] 'Generic lifetime or type parameters'
- [ ] 'Elements of array expressions, tuple expressions, call expressions, tuple-style struct and enum variant expressions'
- [ ] 'The tail expression of block expressions'

Co-authored-by: DJMcNab <36049421+djmcnab@users.noreply.github.com>
2019-01-31 07:06:31 +00:00
..
2019-01-08 11:20:15 +03:00
2019-01-31 07:06:31 +00:00
2019-01-31 07:06:31 +00:00
2019-01-23 13:17:41 -05:00
2019-01-25 14:29:56 -05:00
2019-01-27 15:19:42 +01:00
2019-01-27 08:21:04 +00:00
2019-01-31 07:06:31 +00:00
2019-01-23 13:57:17 -05:00
2019-01-23 18:26:02 +03:00
2019-01-04 12:21:47 +08:00
2019-01-24 13:40:36 +03:00
2018-12-27 14:42:46 +03:00
2018-12-08 19:30:35 +03:00
2019-01-19 15:36:58 +03:00
2019-01-08 11:20:15 +03:00