mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-12 17:39:32 +01:00
Escape characters bug patch(v2.9.2)
This commit is contained in:
committed by
Martin Hořeňovský
parent
3beccfb429
commit
2bcff9dd35
@@ -22,6 +22,7 @@ namespace Catch {
|
||||
class TestSpecParser {
|
||||
enum Mode{ None, Name, QuotedName, Tag, EscapedName };
|
||||
Mode m_mode = None;
|
||||
Mode lastMode = None;
|
||||
bool m_exclusion = false;
|
||||
std::size_t m_pos = 0;
|
||||
std::string m_arg;
|
||||
@@ -47,7 +48,9 @@ namespace Catch {
|
||||
void endMode();
|
||||
void escape();
|
||||
bool isControlChar( char c ) const;
|
||||
|
||||
void saveLastMode();
|
||||
void revertBackToLastMode();
|
||||
|
||||
template<typename T>
|
||||
void addPattern() {
|
||||
std::string token = m_patternName;
|
||||
@@ -80,4 +83,4 @@ namespace Catch {
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_TEST_SPEC_PARSER_HPP_INCLUDED
|
||||
#endif // TWOBLUECUBES_CATCH_TEST_SPEC_PARSER_HPP_INCLUDED
|
||||
Reference in New Issue
Block a user