Preprocessor: fix problem with "%" sign inside string in native statements
parent
aafa328362
commit
412e8a7da0
|
@ -580,7 +580,9 @@ string eofbuff;
|
|||
|
||||
/* Add the native statement */
|
||||
<NATIVE>{
|
||||
[^/%*\n\.]* |
|
||||
[^/%*\n\.\'\"]* |
|
||||
\'[^\'\n]*\' |
|
||||
\"[^\"\n]*\" |
|
||||
\.{1,2} |
|
||||
"*" |
|
||||
"/" { yymore(); eofbuff = string(yytext); }
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue