From 7a7ff7af2fccfb42ced3d3cff23649b320af5728 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 25 Mar 2021 12:24:18 +0000 Subject: [PATCH] Add one more test for invalid custom tag --- test/libsolidity/syntaxTests/natspec/invalid/invalid_tag.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/libsolidity/syntaxTests/natspec/invalid/invalid_tag.sol b/test/libsolidity/syntaxTests/natspec/invalid/invalid_tag.sol index 073ac5cdd..1b0ecd5e5 100644 --- a/test/libsolidity/syntaxTests/natspec/invalid/invalid_tag.sol +++ b/test/libsolidity/syntaxTests/natspec/invalid/invalid_tag.sol @@ -8,9 +8,12 @@ contract C { function h() public pure {} /// @custom:abc-def function i() public pure {} + /// @custom + function j() public pure {} } // ---- // 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 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.