Commit a479cc1e authored by michel's avatar michel
Browse files

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-bf33cf982152
parent d000e3ae
......@@ -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);}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment