void Parser::error(string const & msg)
{
lyxerr << "Line ~" << lineno_ << ": Math parse error: " << msg << endl;
+ //exit(1);
}
}
if (flags & FLAG_BLOCK) {
- if (t.cat() == catAlign || t.cs() == "\\")
+ if (t.cat() == catAlign || t.cs() == "\\" || t.cs() == "right")
return;
if (t.cs() == "end") {
getArg('{', '}');
}
else if (t.cs() == "right") {
- if (!(flags & FLAG_RIGHT))
+ if (!(flags & FLAG_RIGHT)) {
+ lyxerr << "got so far: '" << array << "'\n";
error("Unmatched right delimiter");
+ }
return;
}