mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 19:10:11 +08:00
feat: add escape sequence of ESC
as an unreleased feature
This commit is contained in:
@@ -327,6 +327,9 @@ inline result<std::string, std::string> parse_escape_sequence(location& loc)
|
||||
case 'n' :{loc.advance(); return ok(std::string("\n"));}
|
||||
case 'f' :{loc.advance(); return ok(std::string("\f"));}
|
||||
case 'r' :{loc.advance(); return ok(std::string("\r"));}
|
||||
#ifdef TOML11_USE_UNRELEASED_TOML_FEATURES
|
||||
case 'e' :{loc.advance(); return ok(std::string("\x1b"));} // ESC
|
||||
#endif
|
||||
case 'u' :
|
||||
{
|
||||
if(const auto token = lex_escape_unicode_short::invoke(loc))
|
||||
|
Reference in New Issue
Block a user