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()
|
bool Scanner::skipWhitespaceExceptLF()
|
||||||
{
|
{
|
||||||
int const startPosition = getSourcePos();
|
int const startPosition = getSourcePos();
|
||||||
while (m_char == ' ' || m_char == '\t')
|
while (isWhiteSpace(m_char) && !isLineTerminator(m_char))
|
||||||
advance();
|
advance();
|
||||||
// Return whether or not we skipped any characters.
|
// Return whether or not we skipped any characters.
|
||||||
return getSourcePos() != startPosition;
|
return getSourcePos() != startPosition;
|
||||||
@ -305,7 +305,7 @@ Token::Value Scanner::scanMultiLineDocComment()
|
|||||||
endFound = true;
|
endFound = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else if (charsAdded)
|
||||||
addCommentLiteralChar('\n');
|
addCommentLiteralChar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user