diff options
author | adamrk <[email protected]> | 2020-04-28 09:23:45 +0100 |
---|---|---|
committer | adamrk <[email protected]> | 2020-04-28 09:23:45 +0100 |
commit | b6560e3ebb80a7a96b3c3598ecba232f799fe93f (patch) | |
tree | 2c6cf47429baab34ee4af70ae466f7d378650943 /crates/ra_syntax/src/ast | |
parent | da1f316b0246ce41d7cb8560181e294089f06ef3 (diff) |
Treat comments beginning with four slashes as regular line comments
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/tokens.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/ast/tokens.rs b/crates/ra_syntax/src/ast/tokens.rs index 3865729b8..481813e38 100644 --- a/crates/ra_syntax/src/ast/tokens.rs +++ b/crates/ra_syntax/src/ast/tokens.rs | |||
@@ -48,6 +48,7 @@ pub enum CommentPlacement { | |||
48 | const COMMENT_PREFIX_TO_KIND: &[(&str, CommentKind)] = { | 48 | const COMMENT_PREFIX_TO_KIND: &[(&str, CommentKind)] = { |
49 | use {CommentPlacement::*, CommentShape::*}; | 49 | use {CommentPlacement::*, CommentShape::*}; |
50 | &[ | 50 | &[ |
51 | ("////", CommentKind { shape: Line, doc: None }), | ||
51 | ("///", CommentKind { shape: Line, doc: Some(Outer) }), | 52 | ("///", CommentKind { shape: Line, doc: Some(Outer) }), |
52 | ("//!", CommentKind { shape: Line, doc: Some(Inner) }), | 53 | ("//!", CommentKind { shape: Line, doc: Some(Inner) }), |
53 | ("/**", CommentKind { shape: Block, doc: Some(Outer) }), | 54 | ("/**", CommentKind { shape: Block, doc: Some(Outer) }), |