Improve error message for extraneous '%}'.

This commit is contained in:
Olly Betts 2015-01-08 12:47:12 +13:00
commit 51487c1acc
3 changed files with 7 additions and 1 deletions

View file

@ -824,6 +824,9 @@ static int look(Scanner *s) {
state = 7;
} else if (c == '=') {
return SWIG_TOKEN_MODEQUAL;
} else if (c == '}') {
Swig_error(cparse_file, cparse_line, "Syntax error. Extraneous '%%}'\n");
exit(1);
} else {
retract(s, 1);
return SWIG_TOKEN_PERCENT;