Improve error message for extraneous '%}'.
This commit is contained in:
parent
19961d7135
commit
51487c1acc
3 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue