aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-18 23:48:25 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-18 23:48:25 +0800
commite6e5d5ea24a495caeae4a3b18fab18248b47841d (patch)
treeea4e007ee0e96b1cafe5411d964338ccb1698e09 /Scanner.cpp
parentd97bdba471cf3da5bc292c0252a062bc7e273b72 (diff)
downloaddexon-solidity-e6e5d5ea24a495caeae4a3b18fab18248b47841d.tar.gz
dexon-solidity-e6e5d5ea24a495caeae4a3b18fab18248b47841d.tar.zst
dexon-solidity-e6e5d5ea24a495caeae4a3b18fab18248b47841d.zip
More multiline natspec tests and small issue fix
Diffstat (limited to 'Scanner.cpp')
-rw-r--r--Scanner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Scanner.cpp b/Scanner.cpp
index 90a3b454..124c88d9 100644
--- a/Scanner.cpp
+++ b/Scanner.cpp
@@ -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');
}