mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
Undid previous update of SMT2 scanner to support the new SMT2.5 string escaping.
This commit is contained in:
parent
01cb20e098
commit
99d2ab4e8e
|
@ -179,14 +179,6 @@ namespace smt2 {
|
|||
return STRING_TOKEN;
|
||||
}
|
||||
}
|
||||
else if (c == '\\') {
|
||||
next();
|
||||
c = curr();
|
||||
if (c == EOF)
|
||||
throw scanner_exception("unexpected end of string", m_line, m_spos);
|
||||
if (c != '\\' && c != '\"')
|
||||
throw scanner_exception("invalid escape sequence", m_line, m_spos);
|
||||
}
|
||||
m_string.push_back(c);
|
||||
next();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue