diff --git a/macro/MacroFlex.ll b/macro/MacroFlex.ll index 05a60329..3790d9af 100644 --- a/macro/MacroFlex.ll +++ b/macro/MacroFlex.ll @@ -190,7 +190,7 @@ CONT \\\\ yylloc->step(); } . { for_body_tmp.append(yytext); yylloc->step(); } -<> { driver.error(for_stmt_loc_tmp, "@#for loop not matched by an @#endfor (unexpected end of file)"); } +<> { driver.error(for_stmt_loc_tmp, "@#for loop not matched by an @#endfor or file does not end with a new line (unexpected end of file)"); } ^{SPC}*@#{SPC}*endfor{SPC}*(\/\/.*)?{EOL} { yylloc->lines(1); yylloc->step(); @@ -227,7 +227,7 @@ CONT \\\\ yylloc->step(); } . { then_body_tmp.append(yytext); yylloc->step(); } -<> { driver.error(if_stmt_loc_tmp, "@#if/@#ifdef/@#ifndef not matched by an @#endif (unexpected end of file)"); } +<> { driver.error(if_stmt_loc_tmp, "@#if/@#ifdef/@#ifndef not matched by an @#endif or file does not end with a new line (unexpected end of file)"); } ^{SPC}*@#{SPC}*else{SPC}*(\/\/.*)?{EOL} { yylloc->lines(1); yylloc->step(); @@ -269,7 +269,7 @@ CONT \\\\ yylloc->step(); } . { else_body_tmp.append(yytext); yylloc->step(); } -<> { driver.error(if_stmt_loc_tmp, "@#if/@#ifdef/@#ifndef not matched by an @#endif (unexpected end of file)"); } +<> { driver.error(if_stmt_loc_tmp, "@#if/@#ifdef/@#ifndef not matched by an @#endif or file does not end with a new line (unexpected end of file)"); } ^{SPC}*@#{SPC}*endif{SPC}*(\/\/.*)?{EOL} { yylloc->lines(1);