mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SyntaxModel] Highlight /*: ... */, when appearing in playground, as doc comment block. rdar://24234991
This commit is contained in:
@@ -115,7 +115,8 @@ SyntaxModelContext::SyntaxModelContext(SourceFile &SrcFile)
|
||||
if (Tok.getText().startswith("///") ||
|
||||
(IsPlayground && Tok.getText().startswith("//:")))
|
||||
Kind = SyntaxNodeKind::DocCommentLine;
|
||||
else if (Tok.getText().startswith("/**"))
|
||||
else if (Tok.getText().startswith("/**") ||
|
||||
(IsPlayground && Tok.getText().startswith("/*:")))
|
||||
Kind = SyntaxNodeKind::DocCommentBlock;
|
||||
else if (Tok.getText().startswith("//"))
|
||||
Kind = SyntaxNodeKind::CommentLine;
|
||||
|
||||
Reference in New Issue
Block a user