diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-24 09:16:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 09:16:27 +0800 |
commit | 258ae8927e21cddc18935e26b4184a833c85bda8 (patch) | |
tree | 2567bbdd09ea0b9d00e3c2e33e30c2300d4734c8 | |
parent | e685f9f59ecf13210eb7a32156d556a4cdd8ff58 (diff) | |
parent | b74566e4eafaa455068289cd589af48e87c70cf1 (diff) | |
download | dexon-solidity-258ae8927e21cddc18935e26b4184a833c85bda8.tar.gz dexon-solidity-258ae8927e21cddc18935e26b4184a833c85bda8.tar.zst dexon-solidity-258ae8927e21cddc18935e26b4184a833c85bda8.zip |
Merge pull request #3970 from elopio/test/docstring-tag-end
docstring: add missing space
-rw-r--r-- | libsolidity/parsing/DocStringParser.cpp | 2 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/natspec/docstring_empty_description.sol (renamed from test/libsolidity/syntaxTests/docstring_empty_description.sol) | 0 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/natspec/docstring_empty_tag.sol | 6 |
3 files changed, 7 insertions, 1 deletions
diff --git a/libsolidity/parsing/DocStringParser.cpp b/libsolidity/parsing/DocStringParser.cpp index d058d556..d9588e5c 100644 --- a/libsolidity/parsing/DocStringParser.cpp +++ b/libsolidity/parsing/DocStringParser.cpp @@ -72,7 +72,7 @@ bool DocStringParser::parse(string const& _docString, ErrorReporter& _errorRepor auto tagNameEndPos = firstWhitespaceOrNewline(tagPos, end); if (tagNameEndPos == end) { - appendError("End of tag " + string(tagPos, tagNameEndPos) + "not found"); + appendError("End of tag " + string(tagPos, tagNameEndPos) + " not found"); break; } diff --git a/test/libsolidity/syntaxTests/docstring_empty_description.sol b/test/libsolidity/syntaxTests/natspec/docstring_empty_description.sol index 0caa1b23..0caa1b23 100644 --- a/test/libsolidity/syntaxTests/docstring_empty_description.sol +++ b/test/libsolidity/syntaxTests/natspec/docstring_empty_description.sol diff --git a/test/libsolidity/syntaxTests/natspec/docstring_empty_tag.sol b/test/libsolidity/syntaxTests/natspec/docstring_empty_tag.sol new file mode 100644 index 00000000..9a28143a --- /dev/null +++ b/test/libsolidity/syntaxTests/natspec/docstring_empty_tag.sol @@ -0,0 +1,6 @@ +contract C { + /// @param + function vote(uint id) public; +} +// ---- +// DocstringParsingError: End of tag @param not found |