Prohibit `r` suffix after scientific notation (e.g. `1e10`).
As CRuby does.
MODIFY
mrbgems/mruby-compiler/core/parse.y
mrbgems/mruby-compiler/core/parse.y
@@ -5856,6 +5856,10 @@ parser_yylex(parser_state *p)
errno = 0;
}
suffix = number_literal_suffix(p);
+ if (seen_e && (suffix & NUM_SUFFIX_R)) {
+ pushback(p, 'r');
+ suffix &= ~NUM_SUFFIX_R;
+ }
pylval.nd = new_float(p, tok(p), suffix);
return tFLOAT;
#endif

MODIFY
mrbgems/mruby-compiler/core/y.tab.c
mrbgems/mruby-compiler/core/y.tab.c
@@ -11892,6 +11892,10 @@ parser_yylex(parser_state *p)
errno = 0;
}
suffix = number_literal_suffix(p);
+ if (seen_e && (suffix & NUM_SUFFIX_R)) {
+ pushback(p, 'r');
+ suffix &= ~NUM_SUFFIX_R;
+ }
pylval.nd = new_float(p, tok(p), suffix);
return tFLOAT;
#endif

Prohibit `r` suffix after scientific notation (e.g. `1e10`).

As CRuby does.