2008-02-12 17:28:30 +08:00
|
|
|
--TEST--
|
|
|
|
Test whitespace following end of nowdoc
|
|
|
|
--INI--
|
|
|
|
highlight.string = #DD0000
|
|
|
|
highlight.comment = #FF8000
|
|
|
|
highlight.keyword = #007700
|
|
|
|
highlight.default = #0000BB
|
|
|
|
highlight.html = #000000
|
2020-01-10 23:54:12 +08:00
|
|
|
--WHITESPACE_SENSITIVE--
|
2008-02-12 17:28:30 +08:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$code = <<<'EOF'
|
|
|
|
<?php
|
|
|
|
$x = <<<'EOT'
|
|
|
|
some string
|
|
|
|
EOT
|
|
|
|
$y = 2;
|
|
|
|
?>
|
|
|
|
EOF;
|
|
|
|
highlight_string($code);
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
<code><span style="color: #000000">
|
2008-07-26 23:31:38 +08:00
|
|
|
<span style="color: #0000BB"><?php<br /> $x </span><span style="color: #007700">= <<<'EOT'<br /></span><span style="color: #DD0000">some string <br /></span><span style="color: #007700">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>
|
2008-02-12 17:28:30 +08:00
|
|
|
</span>
|
|
|
|
</code>
|