Since string freeze is still not in effect,

...commiting a little change in the parser messages:
This commit is contained in:
Philippe Plantier 2005-03-28 13:36:07 +00:00
parent f6cc29a092
commit 260899f5eb

View File

@ -214,12 +214,10 @@ void parser::parse_variable()
break; break;
case ',': case ',':
if(variables.back().empty()) { if(variables.back().empty()) {
// FIXME: this error message is not really error(_("Empty variable name"));
// appropriate, although a proper one should } else {
// wait after string freeze. variables.push_back("");
error(_("Unexpected characters after variable name (expected , or =)"));
} }
variables.push_back("");
break; break;
default: default:
error(_("Unexpected characters after variable name (expected , or =)")); error(_("Unexpected characters after variable name (expected , or =)"));
@ -227,6 +225,8 @@ void parser::parse_variable()
} }
tok_.next_token(); tok_.next_token();
} }
if(variables.back().empty())
error(_("Empty variable name"));
std::vector<std::string>::const_iterator curvar = variables.begin(); std::vector<std::string>::const_iterator curvar = variables.begin();