[SyntaxModel] Highlight /*: ... */, when appearing in playground, as doc comment block. rdar://24234991

This commit is contained in:
Xi Ge
2016-01-21 10:42:24 -08:00
parent 9f95f66f6e
commit 00bff249ff
3 changed files with 17 additions and 1 deletions

View File

@@ -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;