Small cleanup
This commit is contained in:
parent
0406aed0ec
commit
7403357b71
|
@ -52,7 +52,6 @@ namespace lxs {
|
||||||
|
|
||||||
string MultiRE::toRe()
|
string MultiRE::toRe()
|
||||||
{
|
{
|
||||||
//FIXME: this does not consider characters that need escaping
|
|
||||||
return "[" + string(chars.begin(), chars.end()) + "]";
|
return "[" + string(chars.begin(), chars.end()) + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +219,6 @@ namespace lxs {
|
||||||
std::shared_ptr<RE> parseRE(RegexLexer& lex, bool& exit_by_closed_paren, bool inside_parens=false)
|
std::shared_ptr<RE> parseRE(RegexLexer& lex, bool& exit_by_closed_paren, bool inside_parens=false)
|
||||||
{
|
{
|
||||||
stack<std::shared_ptr<RE> > stk;
|
stack<std::shared_ptr<RE> > stk;
|
||||||
//TODO: report location in regex on error
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Reference in New Issue