Improve error message for extraneous '%}'.
This commit is contained in:
parent
19961d7135
commit
51487c1acc
3 changed files with 7 additions and 1 deletions
|
|
@ -5,6 +5,9 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 3.0.4 (in progress)
|
||||
===========================
|
||||
|
||||
2015-01-08: olly
|
||||
Improve error message for extraneous '%}'.
|
||||
|
||||
2015-01-08: olly
|
||||
Improve error message when an unknown SWIG directive is used - this
|
||||
previously gave the cryptic "Error: Syntax error in input(1).", but
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
c_extra_rblock.i:5: Error: Syntax error in input(1).
|
||||
c_extra_rblock.i:5: Error: Syntax error. Extraneous '%}'
|
||||
|
|
|
|||
|
|
@ -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