rust-analyzer/crates
bors[bot] 734a43e95a
Merge #1793
1793: Fix outer doc-comments of `macro_rules` r=matklad a=uHOOCCOOHu

Document comments of `macro_rules!` is currently parsed outside the `MACRO_CALL` node,
which makes `DocCommentsOwner::doc_comments()` always empty.

For the input:
```rust
/// Some docs
macro_rules! foo {
    () => {};
}
```

Current parsing tree is:
```
SOURCE_FILE
  COMMENT    // <- This should be children of MACRO_CALL
  WHITESPACE
  MACRO_CALL
    PATH
<...omitted...>
```

It should be:
```
SOURCE_FILE
  MACRO_CALL
    COMMENT
    WHITESPACE
    PATH
<...omitted...>
```


Co-authored-by: uHOOCCOOHu <hooccooh1896@gmail.com>
2019-09-09 08:45:00 +00:00
..
ra_arena cleanup 2019-08-06 10:57:16 +02:00
ra_assists Minor typo fix for ra_assists code doc 2019-09-08 02:10:53 -07:00
ra_batch add option to disable notify 2019-09-06 17:21:29 +03:00
ra_cli make source_root API more abstract 2019-09-06 14:21:11 +03:00
ra_db make source_root API more abstract 2019-09-06 14:21:11 +03:00
ra_fmt fix hir for new block syntax 2019-09-02 21:23:19 +03:00
ra_hir Fix test 2019-09-09 01:34:53 +08:00
ra_ide_api simplify 2019-09-06 21:57:11 +03:00
ra_lsp_server don't deadlock on shutdown 2019-09-06 20:58:21 +03:00
ra_mbe fix assists 2019-09-02 21:52:06 +03:00
ra_parser better error recovery for use trees 2019-09-05 19:53:07 +03:00
ra_prof ⬆️ once_cell 2019-09-01 23:18:15 +03:00
ra_project_model close #1763 2019-09-05 22:04:56 +08:00
ra_syntax Fix outer doc-comments of macro_rules 2019-09-09 11:13:14 +08:00
ra_text_edit allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_tools disable clap's features 2019-08-22 15:57:48 +03:00
ra_tt allow rustfmt to reorder imports 2019-07-04 23:09:09 +03:00
ra_vfs_glob add option to disable notify 2019-09-06 17:21:29 +03:00
test_utils translate \n -> \r\n on the way out 2019-08-20 19:53:05 +03:00