ports/lang/smlnj/files/do-patch-base_compiler_Parse_lex_ml.lex

11 lines
465 B
Text

--- base/compiler/Parse/lex/ml.lex.orig 2024-10-25 16:47:18 UTC
+++ base/compiler/Parse/lex/ml.lex
@@ -66,7 +66,7 @@ hexnum={xdigit}+;
real=(~?)(({num}{frac}?{exp})|({num}{frac}{exp}?));
xdigit=[0-9a-fA-F];
hexnum={xdigit}+;
-bad_escape="\\"[\000-\008\011\012\014-\031 !#$%&'()*+,\-./:;<=>?@A-Z\[\]_`c-eg-mo-qsuw-z{}|~\127];
+bad_escape=\\(]|[-\000-\008\011\012\014-\031 !#$%&'()*+,./:;<=>?@A-Z\[_`c-eg-mo-qsuw-z{}|~\127]);
%%
<INITIAL>{ws} => (continue());