diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-18 23:48:25 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-18 23:48:25 +0800 |
commit | e6e5d5ea24a495caeae4a3b18fab18248b47841d (patch) | |
tree | ea4e007ee0e96b1cafe5411d964338ccb1698e09 /Scanner.cpp | |
parent | d97bdba471cf3da5bc292c0252a062bc7e273b72 (diff) | |
download | dexon-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.cpp | 4 |
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'); } |