v4 DynareFlex.ll: corrected handling of end of line (bug with DOS files)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@614 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
d000e3ae0b
commit
a479cc1ed1
|
@ -29,8 +29,8 @@ int sigma_e = 0;
|
|||
%x NATIVE
|
||||
|
||||
%%
|
||||
/* \r is always ignored */
|
||||
<*>\r ;
|
||||
/* spaces, tabs and EOL are ignored */
|
||||
<*>[ \t\n\r\f] ;
|
||||
|
||||
/* Comments */
|
||||
<INITIAL,DYNARE_STATEMENT,DYNARE_BLOCK>["%"].*
|
||||
|
@ -253,10 +253,7 @@ int sigma_e = 0;
|
|||
[\]] {return yytext[0];}
|
||||
[\[] {return yytext[0];}
|
||||
|
||||
/* spaces, tabs and EOL are ignored */
|
||||
<*>[ \t] {;}
|
||||
<*>[\n] {;}
|
||||
<*>[" "\t\n] {;}
|
||||
|
||||
|
||||
/* Any other entry is writen as is */
|
||||
. {_scanner->do_as_is(yytext);}
|
||||
|
|
Loading…
Reference in New Issue