mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 00:58:21 +00:00
Since string freeze is still not in effect,
...commiting a little change in the parser messages:
This commit is contained in:
parent
f6cc29a092
commit
260899f5eb
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user