mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
478acfd8b4
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt) . Optimized interpolated strings to use one less opcode. (Matt)
26 lines
744 B
PHP
26 lines
744 B
PHP
--TEST--
|
|
Highlighting empty nowdoc
|
|
--INI--
|
|
highlight.string = #DD0000
|
|
highlight.comment = #FF8000
|
|
highlight.keyword = #007700
|
|
highlight.bg = #FFFFFF
|
|
highlight.default = #0000BB
|
|
highlight.html = #000000
|
|
--FILE--
|
|
<?php
|
|
$code = <<<'EOF'
|
|
<?php
|
|
$x = <<<'EOT'
|
|
EOT
|
|
$y = 2;
|
|
?>
|
|
EOF;
|
|
highlight_string($code);
|
|
?>
|
|
--EXPECT--
|
|
<code><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php<br /> $x </span><span style="color: #007700">= <<<'EOT'<br />EOT<br /> </span><span style="color: #0000BB">$y </span><span style="color: #007700">= </span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
|
</span>
|
|
</code>
|