No escape chars in character classes
This commit is contained in:
parent
32f4d6be81
commit
e860a68fc9
|
@ -233,14 +233,6 @@ namespace lxs {
|
||||||
last_char = -1;
|
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
|
else
|
||||||
{
|
{
|
||||||
used_chars.insert(input[idx]);
|
used_chars.insert(input[idx]);
|
||||||
|
|
Loading…
Reference in New Issue