Skip to content

Commit

Permalink
Allow white space in yymore and yyreject checks
Browse files Browse the repository at this point in the history
AC_PROG_LEX puts a space between yymore and its ()s causing the yymore
check to fail and thus break configure.
  • Loading branch information
taniwha authored and westes committed Apr 23, 2024
1 parent b577780 commit d5770a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scan.l
Original file line number Diff line number Diff line change
Expand Up @@ -922,11 +922,11 @@ nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */
ACTION_ECHO;
CHECK_REJECT(yytext);
}
"yyreject()" {
"yyreject"{OPTWS}"("{OPTWS}")" {
add_action("]""]M4_HOOK_REJECT[""[");
CHECK_YYREJECT(yytext);
}
"yymore()" {
"yymore"{OPTWS}"("{OPTWS}")" {
yymore_used = true;
if (ctrl.rewrite)
context_call(yytext);
Expand Down

0 comments on commit d5770a0

Please sign in to comment.