mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
simplifying scanDocumentationComment()
This commit is contained in:
parent
cda2532de6
commit
3b16ffa8ab
@ -184,9 +184,8 @@ Token::Value Scanner::scanDocumentationComment()
|
||||
advance(); //consume the last '/'
|
||||
while (!isSourcePastEndOfInput() && !IsLineTerminator(m_char))
|
||||
{
|
||||
char c = m_char;
|
||||
addCommentLiteralChar(m_char);
|
||||
advance();
|
||||
addCommentLiteralChar(c);
|
||||
}
|
||||
literal.Complete();
|
||||
return Token::COMMENT_LITERAL;
|
||||
|
Loading…
Reference in New Issue
Block a user