Skip to content

Commit ecdd62b

Browse files
committed
Fix case where <= or >= or <=> inside template argument would be interpreted wrongly
1 parent 578baa7 commit ecdd62b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/scanner.l

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5075,6 +5075,10 @@ NONLopt [^\n]*
50755075
BEGIN(CopyArgPHPString);
50765076
}
50775077
}
5078+
<ReadFuncArgType,ReadTempArgs,CopyArgString,CopyArgPHPString,CopyArgRound,CopyArgSquare,CopyArgSharp>"<="|">="|"<=>" {
5079+
*yyextra->copyArgString+=yytext;
5080+
yyextra->fullArgString+=yytext;
5081+
}
50785082
<ReadFuncArgType,ReadTempArgs,CopyArgString,CopyArgPHPString,CopyArgRound,CopyArgSquare,CopyArgSharp>\n {
50795083
lineCount(yyscanner);
50805084
*yyextra->copyArgString+=*yytext;

0 commit comments

Comments
 (0)