diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-11-21 16:09:39 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-11-21 16:09:39 +0800 |
commit | 3b16ffa8aba740f8e67dd38d34a015a8498f615b (patch) | |
tree | 00831e395ee16592e41a7eeb577ff195b76fee34 /Scanner.cpp | |
parent | cda2532de6886a1b6735387b807490b5ff4556ae (diff) | |
download | dexon-solidity-3b16ffa8aba740f8e67dd38d34a015a8498f615b.tar.gz dexon-solidity-3b16ffa8aba740f8e67dd38d34a015a8498f615b.tar.zst dexon-solidity-3b16ffa8aba740f8e67dd38d34a015a8498f615b.zip |
simplifying scanDocumentationComment()
Diffstat (limited to 'Scanner.cpp')
-rw-r--r-- | Scanner.cpp | 3 |
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; |