aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-11-21 16:09:39 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-11-21 16:09:39 +0800
commit3b16ffa8aba740f8e67dd38d34a015a8498f615b (patch)
tree00831e395ee16592e41a7eeb577ff195b76fee34 /Scanner.cpp
parentcda2532de6886a1b6735387b807490b5ff4556ae (diff)
downloaddexon-solidity-3b16ffa8aba740f8e67dd38d34a015a8498f615b.tar.gz
dexon-solidity-3b16ffa8aba740f8e67dd38d34a015a8498f615b.tar.zst
dexon-solidity-3b16ffa8aba740f8e67dd38d34a015a8498f615b.zip
simplifying scanDocumentationComment()
Diffstat (limited to 'Scanner.cpp')
-rw-r--r--Scanner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Scanner.cpp b/Scanner.cpp
index d3000099..9382b134 100644
--- a/Scanner.cpp
+++ b/Scanner.cpp
@@ -184,9 +184,8 @@ Token::Value Scanner::scanDocumentationComment()
advance(); //consume the last '/'
while (!isSourcePastEndOfInput() && !IsLineTerminator(m_char))
{
- char c = m_char;
+ addCommentLiteralChar(m_char);
advance();
- addCommentLiteralChar(c);
}
literal.Complete();
return Token::COMMENT_LITERAL;