diff --git a/DynareFlex.ll b/DynareFlex.ll index 9281f22a..7cf77768 100644 --- a/DynareFlex.ll +++ b/DynareFlex.ll @@ -84,7 +84,7 @@ int sigma_e = 0; BEGIN(line_caller); } - /* spaces, tabs and EOL are ignored */ + /* spaces, tabs and carriage returns are ignored */ <*>[ \t\r\f]+ { yylloc->step(); } <*>[\n]+ { yylloc->lines(yyleng); yylloc->step(); } @@ -93,9 +93,8 @@ int sigma_e = 0; ["/"]["/"].* "/*" {comment_caller = YY_START; BEGIN COMMENT;} -[^*\n]* -"*"+[^/\n] -"*"+"/" {BEGIN comment_caller;} +"*/" {BEGIN comment_caller;} +. /* Begin of a Dynare statement */ var {BEGIN DYNARE_STATEMENT; return token::VAR;}