If it's not a recognised directive the scanner now emits MODULO and then rescans what follows, and if the parser then gives a syntax error we report it as an unknown directive. This means that `a%b` is now allowed in an expression, and that things like `%std::vector<std::string>` now give an error rather than being quietly ignored. Fixes #300 Fixes #368
7 lines
202 B
OpenEdge ABL
7 lines
202 B
OpenEdge ABL
%module xxx
|
|
|
|
/* This used to give the rather cryptic "Syntax error in input(1)." prior to
|
|
* SWIG 3.0.4. This testcase checks that the improved message is actually
|
|
* issued.
|
|
*/
|
|
%remane("typo") tyop;
|