diff options
Diffstat (limited to 'lib/AST/CommentLexer.cpp')
-rw-r--r-- | lib/AST/CommentLexer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/CommentLexer.cpp b/lib/AST/CommentLexer.cpp index 0b76050ff0..c3a801d924 100644 --- a/lib/AST/CommentLexer.cpp +++ b/lib/AST/CommentLexer.cpp @@ -357,6 +357,11 @@ void Lexer::lexCommentText(Token &T) { setupAndLexHTMLOpenTag(T); else if (C == '/') lexHTMLCloseTag(T); + else { + StringRef Text(BufferPtr, TokenPtr - BufferPtr); + formTokenWithChars(T, TokenPtr, tok::text); + T.setText(Text); + } return; } |