Restored tag parsing when checking for reserved tags

- had been accidentally deleted in an earlier refactoring.
A bit worrying that this didn't get spotted sooner!
This commit is contained in:
Phil Nash 2015-03-04 19:01:25 +00:00
parent 090c74c420
commit 0ae7578028

View File

@ -30,7 +30,7 @@ namespace Catch {
return TestCaseInfo::None; return TestCaseInfo::None;
} }
inline bool isReservedTag( std::string const& tag ) { inline bool isReservedTag( std::string const& tag ) {
return TestCaseInfo::None && tag.size() > 0 && !isalnum( tag[0] ); return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !isalnum( tag[0] );
} }
inline void enforceNotReservedTag( std::string const& tag, SourceLineInfo const& _lineInfo ) { inline void enforceNotReservedTag( std::string const& tag, SourceLineInfo const& _lineInfo ) {
if( isReservedTag( tag ) ) { if( isReservedTag( tag ) ) {