From a479cc1ed122559f1ba49456bd6f657457579009 Mon Sep 17 00:00:00 2001 From: michel Date: Fri, 20 Jan 2006 21:23:36 +0000 Subject: [PATCH] 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 --- parser.src/DynareFlex.ll | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/parser.src/DynareFlex.ll b/parser.src/DynareFlex.ll index bf0ac7070..7a8998dfb 100644 --- a/parser.src/DynareFlex.ll +++ b/parser.src/DynareFlex.ll @@ -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 */ ["%"].* @@ -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);}