More multiline natspec tests and small issue fix

This commit is contained in:
Lefteris Karapetsas 2014-12-18 16:48:25 +01:00
parent d97bdba471
commit e6e5d5ea24

View File

@ -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');
} }