diff options
author | Aleksey Kladov <[email protected]> | 2020-07-12 01:23:41 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-12 01:23:41 +0100 |
commit | f48ab3ebebdac053e65f4b58309911e092c9b4b8 (patch) | |
tree | 0429e96749c558368ac742398709c0906b19e5fb /crates/ra_syntax | |
parent | d9fd7ca6a553e18c215540cab2ddc2962c08cddd (diff) |
Comment decorations
closes #4461
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/parsing/text_tree_sink.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/parsing/text_tree_sink.rs b/crates/ra_syntax/src/parsing/text_tree_sink.rs index 22aed1db1..c6b30a02a 100644 --- a/crates/ra_syntax/src/parsing/text_tree_sink.rs +++ b/crates/ra_syntax/src/parsing/text_tree_sink.rs | |||
@@ -160,7 +160,10 @@ fn n_attached_trivias<'a>( | |||
160 | if let Some((peek_kind, peek_text)) = | 160 | if let Some((peek_kind, peek_text)) = |
161 | trivias.peek().map(|(_, pair)| pair) | 161 | trivias.peek().map(|(_, pair)| pair) |
162 | { | 162 | { |
163 | if *peek_kind == COMMENT && peek_text.starts_with("///") { | 163 | if *peek_kind == COMMENT |
164 | && peek_text.starts_with("///") | ||
165 | && !peek_text.starts_with("////") | ||
166 | { | ||
164 | continue; | 167 | continue; |
165 | } | 168 | } |
166 | } | 169 | } |