diff --git a/src/macro/MacroFlex.ll b/src/macro/MacroFlex.ll index 96905460..b33411c2 100644 --- a/src/macro/MacroFlex.ll +++ b/src/macro/MacroFlex.ll @@ -41,8 +41,6 @@ using token = Macro::parser::token; Unfortunately yyterminate by default returns 0, which is not of token_type. */ #define yyterminate() return Macro::parser::token_type (0); - -int macro_comment_caller; %} %option c++ @@ -51,7 +49,6 @@ int macro_comment_caller; %option case-insensitive noyywrap nounput batch debug never-interactive -%x COMMENT %x STMT %x EXPR %x FOR_BODY @@ -77,9 +74,6 @@ CONT \\\\ // Ignore inline comments %.* { yylloc->step(); ECHO; } \/{2}.* { yylloc->step(); ECHO; } -"/*" { ECHO; macro_comment_caller = YY_START; BEGIN COMMENT; } -"*/" { BEGIN macro_comment_caller; ECHO; } -. { yylloc->step(); ECHO; } ^{SPC}*@#{SPC}*includepath{SPC}+\"([^\"\r\n:;|<>]*){1}(:[^\"\r\n:;|<>]*)*\"{SPC}*{EOL} { yylloc->lines(1);