diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-18 01:53:18 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-18 22:03:45 +0800 |
commit | 734a609d6981c308df32542fa3a68fe893bfe667 (patch) | |
tree | a3c9e0a68b7a26c4a7b84f847004f0bbaf746db9 | |
parent | f4cdc4a9fa7afac2b693d97fbbdb3a03d2e5e34f (diff) | |
download | dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.tar dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.tar.gz dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.tar.bz2 dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.tar.lz dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.tar.xz dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.tar.zst dexon-solidity-734a609d6981c308df32542fa3a68fe893bfe667.zip |
Work in progress for /** ... */ natspec comments
- Work in progress on the scanner for recognizing the second
type of doxygen comments for Natspec.
-rw-r--r-- | solidityScanner.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/solidityScanner.cpp b/solidityScanner.cpp index 573affe6..2b8c7c45 100644 --- a/solidityScanner.cpp +++ b/solidityScanner.cpp @@ -160,6 +160,13 @@ BOOST_AUTO_TEST_CASE(documentation_comments_parsed_begin) BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), " Send $(value / 1000) chocolates to the user"); } +BOOST_AUTO_TEST_CASE(multiline_documentation_comments_parsed_begin) +{ + Scanner scanner(CharStream("/** Send $(value / 1000) chocolates to the user*/")); + BOOST_CHECK_EQUAL(scanner.getCurrentToken(), Token::EOS); + BOOST_CHECK_EQUAL(scanner.getCurrentCommentLiteral(), " Send $(value / 1000) chocolates to the user"); +} + BOOST_AUTO_TEST_CASE(documentation_comments_parsed) { Scanner scanner(CharStream("some other tokens /// Send $(value / 1000) chocolates to the user")); |