mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More multiline natspec tests and small issue fix
This commit is contained in:
parent
d97bdba471
commit
e6e5d5ea24
@ -212,7 +212,7 @@ bool Scanner::skipWhitespace()
|
||||
bool Scanner::skipWhitespaceExceptLF()
|
||||
{
|
||||
int const startPosition = getSourcePos();
|
||||
while (m_char == ' ' || m_char == '\t')
|
||||
while (isWhiteSpace(m_char) && !isLineTerminator(m_char))
|
||||
advance();
|
||||
// Return whether or not we skipped any characters.
|
||||
return getSourcePos() != startPosition;
|
||||
@ -305,7 +305,7 @@ Token::Value Scanner::scanMultiLineDocComment()
|
||||
endFound = true;
|
||||
break;
|
||||
}
|
||||
else
|
||||
else if (charsAdded)
|
||||
addCommentLiteralChar('\n');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user