No escape chars in character classes

This commit is contained in:
Robin Jadoul 2016-05-10 16:08:51 +02:00
parent 32f4d6be81
commit e860a68fc9
1 changed files with 0 additions and 8 deletions

View File

@ -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]);