Make ivl warn that it does not support `ifndef or `elsif
We added support for these two directives some time ago, but ivl was never updated to warn that it did not support them and you needed to use ivlpp.
This commit is contained in:
parent
dfda202f14
commit
3337c9d51a
12
lexor.lex
12
lexor.lex
|
|
@ -517,6 +517,12 @@ S [afpnumkKMGT]
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
^{W}?`elsif{W}?.* {
|
||||||
|
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||||
|
": warning: `elsif not supported. Use an external preprocessor."
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
^{W}?`endif{W}?.* {
|
^{W}?`endif{W}?.* {
|
||||||
cerr << yylloc.text << ":" << yylloc.first_line <<
|
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||||
": warning: `endif not supported. Use an external preprocessor."
|
": warning: `endif not supported. Use an external preprocessor."
|
||||||
|
|
@ -529,6 +535,12 @@ S [afpnumkKMGT]
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
^{W}?`ifndef{W}?.* {
|
||||||
|
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||||
|
": warning: `ifndef not supported. Use an external preprocessor."
|
||||||
|
<< endl;
|
||||||
|
}
|
||||||
|
|
||||||
^`include{W}?.* {
|
^`include{W}?.* {
|
||||||
cerr << yylloc.text << ":" << yylloc.first_line <<
|
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||||
": warning: `include not supported. Use an external preprocessor."
|
": warning: `include not supported. Use an external preprocessor."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue