From e860a68fc9860a124ef977dac24d159f54662cf9 Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Tue, 10 May 2016 16:08:51 +0200 Subject: [PATCH] No escape chars in character classes --- src/re.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/re.cpp b/src/re.cpp index 86757fe..550f7f3 100644 --- a/src/re.cpp +++ b/src/re.cpp @@ -233,14 +233,6 @@ namespace lxs { last_char = -1; } } - else if (input[idx] == '\\') - { - idx++; - if (idx >= input.size()) - throw SyntaxError("Unclosed character classe"); - last_char = parseEscapeChar(input[idx]); - used_chars.insert(last_char); - } else { used_chars.insert(input[idx]);