Skip to content

Commit d3f4b64

Browse files
committed
toke.c: there is no 'err' operator
The idea behind this check was to exempt code like print (...) err ...; from the "print (...) interpreted as function" warning, but there is no low-precedence err operator. Follow-up to commit b143998.
1 parent 87191dc commit d3f4b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toke.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10066,9 +10066,9 @@ S_checkcomma(pTHX_ const char *s, const char *name, const char *what)
1006610066
++w;
1006710067
/* the list of chars below is for end of statements or
1006810068
* block / parens, boolean operators (&&, ||, //) and branch
10069-
* constructs (or, and, if, until, unless, while, err, for).
10069+
* constructs (or, and, if, until, unless, while, for).
1007010070
* Not a very solid hack... */
10071-
if (!*w || !memCHRs(";&/|})]oaiuwef!=", *w))
10071+
if (!*w || !memCHRs(";&/|})]oaiuwf!=", *w))
1007210072
Perl_warner(aTHX_ packWARN(WARN_SYNTAX),
1007310073
"%s (...) interpreted as function",name);
1007410074
}

0 commit comments

Comments
 (0)