diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-21 12:42:05 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-21 12:42:05 +0100 |
commit | e4810a302b4badb024d22da50cfa4aae64184493 (patch) | |
tree | 8734d9ff3bc11208169b49f8f3845035b8e4556a /crates/ra_fmt/src | |
parent | f9d060bf442edeba0b3f3f28dbe1e6cb19e6303e (diff) | |
parent | 24d50ebcd1fabedc8d0c468f8785b0aeb1fb176f (diff) |
Merge #2039
2039: Guess macro braces from docs r=matklad a=oxalica
Instead of hard-code `vec` to have snippet with bracket `vec![]`,
we try to find the "most common used brace kind" from documentation of the macro,
which usually contains some example code.
It also works better with extern macros.
We can suggest braces for `thread_local! {}` now.
Co-authored-by: oxalica <[email protected]>
Diffstat (limited to 'crates/ra_fmt/src')
0 files changed, 0 insertions, 0 deletions