Skip to content

Commit

Permalink
Fix generic syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Jan 26, 2025
1 parent 4b89421 commit 34481d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/php/lang/ast/Tokens.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ public function iterator($language) {
} else if ('<' === $token) {
$t= $next(self::DELIMITERS);
if ('<' === $t) {
$t= $next(self::DELIMITERS);
if ('<' === $t) {
$n= $next(self::DELIMITERS);
if ('<' === $n) {
$label= $next("\r\n");
$end= trim($label, '"\'');
$string= "<<<{$label}";
Expand All @@ -196,8 +196,9 @@ public function iterator($language) {
$offset--;
continue;
}
$offset-= strlen($n);
}
$offset-= 2;
$offset-= strlen($t);
}

// Handle combined operators. First, ensure we have enough bytes in our buffer
Expand Down

0 comments on commit 34481d6

Please sign in to comment.