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
1bce6ec726
commit
4affc6e412
12
lexor.lex
12
lexor.lex
|
|
@ -517,6 +517,12 @@ S [afpnumkKMGT]
|
|||
<< endl;
|
||||
}
|
||||
|
||||
^{W}?`elsif{W}?.* {
|
||||
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||
": warning: `elsif not supported. Use an external preprocessor."
|
||||
<< endl;
|
||||
}
|
||||
|
||||
^{W}?`endif{W}?.* {
|
||||
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||
": warning: `endif not supported. Use an external preprocessor."
|
||||
|
|
@ -529,6 +535,12 @@ S [afpnumkKMGT]
|
|||
<< endl;
|
||||
}
|
||||
|
||||
^{W}?`ifndef{W}?.* {
|
||||
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||
": warning: `ifndef not supported. Use an external preprocessor."
|
||||
<< endl;
|
||||
}
|
||||
|
||||
^`include{W}?.* {
|
||||
cerr << yylloc.text << ":" << yylloc.first_line <<
|
||||
": warning: `include not supported. Use an external preprocessor."
|
||||
|
|
|
|||
Loading…
Reference in New Issue