Skip to content

Commit da4d77c

Browse files
committed
Fix #510 : the interpolation is a placeholder
1 parent 4f992fc commit da4d77c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Parser.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,14 +2430,17 @@ protected function placeholder(&$placeholder)
24302430
{
24312431
if ($this->match(
24322432
$this->utf8
2433-
? '([\pL\w\-_]+|#[{][$][\pL\w\-_]+[}])'
2434-
: '([\w\-_]+|#[{][$][\w\-_]+[}])',
2433+
? '([\pL\w\-_]+)'
2434+
: '([\w\-_]+)',
24352435
$m
24362436
)) {
24372437
$placeholder = $m[1];
24382438

24392439
return true;
24402440
}
2441+
if ($this->interpolation($placeholder)) {
2442+
return true;
2443+
}
24412444

24422445
return false;
24432446
}

0 commit comments

Comments
 (0)