@@ -1242,7 +1242,7 @@ class modifier_token: public regex_token_base {
1242
1242
#line 1900 "regex.h2"
1243
1243
private: std::string mod;
1244
1244
1245
- public: explicit modifier_token (cpp2::in<std::string> mod_);
1245
+ public: explicit modifier_token (cpp2::in<std::string> mod_, cpp2::in<std::string> mod_str );
1246
1246
1247
1247
#line 1907 "regex.h2"
1248
1248
public: auto generate_code (generation_context& ctx) const -> void override ;
@@ -3108,7 +3108,7 @@ template<typename CharT, CharT C, CharT L, CharT U> [[nodiscard]] auto char_toke
3108
3108
3109
3109
static_cast <void >(CPP2_UFCS (next)(ctx));// Skip escape
3110
3110
3111
- if (std::string::npos != CPP2_UFCS (find)(std::string (" afenrt" ), CPP2_UFCS (current)(ctx))) {
3111
+ if (std::string::npos != CPP2_UFCS (find)(std::string (" afenrt\\ " ), CPP2_UFCS (current)(ctx))) {
3112
3112
// Escape of string special char
3113
3113
return CPP2_UFCS_TEMPLATE (cpp2_new<escaped_char_token>)(cpp2::shared, CPP2_UFCS (current)(ctx));
3114
3114
}else {
@@ -3412,7 +3412,7 @@ template<typename CharT, int group> [[nodiscard]] auto group_ref_token_matcher(a
3412
3412
// Only a modifier
3413
3413
CPP2_UFCS (set_modifiers)(ctx, std::move (modifiers_change_to));
3414
3414
3415
- return CPP2_UFCS_TEMPLATE (cpp2_new<modifier_token>)(cpp2::shared, std::move (modifier_change));
3415
+ return CPP2_UFCS_TEMPLATE (cpp2_new<modifier_token>)(cpp2::shared, std::move (modifier_change), std::move (modifiers) );
3416
3416
}
3417
3417
}
3418
3418
@@ -3510,8 +3510,8 @@ template<typename CharT, int group> [[nodiscard]] auto group_ref_token_matcher(a
3510
3510
}
3511
3511
3512
3512
#line 1902 "regex.h2"
3513
- modifier_token::modifier_token (cpp2::in<std::string> mod_)
3514
- : regex_token_base{ (" (?" + cpp2::to_string (mod_ ) + " )" ) }
3513
+ modifier_token::modifier_token (cpp2::in<std::string> mod_, cpp2::in<std::string> mod_str )
3514
+ : regex_token_base{ (" (?" + cpp2::to_string (mod_str ) + " )" ) }
3515
3515
, mod{ mod_ }{
3516
3516
3517
3517
#line 1905 "regex.h2"
0 commit comments