diff options
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/ast/tokens.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/tokens.rs b/crates/ra_syntax/src/ast/tokens.rs index 8e04b0bbd..3865729b8 100644 --- a/crates/ra_syntax/src/ast/tokens.rs +++ b/crates/ra_syntax/src/ast/tokens.rs | |||
@@ -58,6 +58,9 @@ const COMMENT_PREFIX_TO_KIND: &[(&str, CommentKind)] = { | |||
58 | }; | 58 | }; |
59 | 59 | ||
60 | fn kind_by_prefix(text: &str) -> CommentKind { | 60 | fn kind_by_prefix(text: &str) -> CommentKind { |
61 | if text == "/**/" { | ||
62 | return CommentKind { shape: CommentShape::Block, doc: None }; | ||
63 | } | ||
61 | for (prefix, kind) in COMMENT_PREFIX_TO_KIND.iter() { | 64 | for (prefix, kind) in COMMENT_PREFIX_TO_KIND.iter() { |
62 | if text.starts_with(prefix) { | 65 | if text.starts_with(prefix) { |
63 | return *kind; | 66 | return *kind; |