From: "thyresias (Thierry Lambert)" Date: 2021-11-08T18:33:06+00:00 Subject: [ruby-core:105972] [Ruby master Bug#18294] error when parsing regexp comment Issue #18294 has been reported by thyresias (Thierry Lambert). ---------------------------------------- Bug #18294: error when parsing regexp comment https://bugs.ruby-lang.org/issues/18294 * Author: thyresias (Thierry Lambert) * Status: Open * Priority: Normal * ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [i386-mingw32] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- The following code generates the error "too short escaped multibyte character" ``` ruby _re = / foo # \M-ca /x ``` Removing the \ or doubling it makes the error disappear. Since this is in comment text, I would expect to be able to type anything there: am I missing something? -- https://bugs.ruby-lang.org/ Unsubscribe: