Preprocessor: fix problem with "%" sign inside string in native statements

time-shift
Sébastien Villemot 2011-02-21 11:20:18 +01:00
parent aafa328362
commit 412e8a7da0
2 changed files with 5 additions and 1 deletions

View File

@ -580,7 +580,9 @@ string eofbuff;
/* Add the native statement */
<NATIVE>{
[^/%*\n\.]* |
[^/%*\n\.\'\"]* |
\'[^\'\n]*\' |
\"[^\"\n]*\" |
\.{1,2} |
"*" |
"/" { yymore(); eofbuff = string(yytext); }

View File

@ -28,6 +28,8 @@ fff = [ 1 delta 4 ; ... /* COMMENT
1 0 4 ; ... // comment */
phi 9 4 ] % comment
disp(' %% This is not a comment %% ')
model;
c*theta*h^(1+psi)=(1-alpha)*y;
k = beta*(((exp(b)*c)/(exp(b(+1))*c(+1)))