Show proper error for misusing the custom natspec tag

This commit is contained in:
Alex Beregszaszi
2021-03-25 12:45:37 +00:00
parent 7a7ff7af2f
commit e071884bbf
2 changed files with 9 additions and 3 deletions
@@ -14,6 +14,6 @@ contract C {
// ----
// DocstringParsingError 6546: (0-14): Documentation tag @a&b not valid for contracts.
// DocstringParsingError 2968: (28-49): Invalid character in custom tag @custom:x^y. Only lowercase letters and "-" are permitted.
// DocstringParsingError 6546: (80-92): Documentation tag @custom: not valid for functions.
// DocstringParsingError 6564: (80-92): Custom documentation tag must contain a chosen name, i.e. @custom:mytag.
// DocstringParsingError 2968: (123-141): Invalid character in custom tag @custom:abcDEF. Only lowercase letters and "-" are permitted.
// DocstringParsingError 6546: (222-233): Documentation tag @custom not valid for functions.
// DocstringParsingError 6564: (222-233): Custom documentation tag must contain a chosen name, i.e. @custom:mytag.