mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
0688205940
keywords). Original patch by vrana@php.net.
19 lines
548 B
PHP
19 lines
548 B
PHP
--TEST--
|
|
Bug #26703 (Certain characters inside strings incorrectly treated as keywords)
|
|
--INI--
|
|
highlight.string=#DD0000
|
|
highlight.comment=#FF9900
|
|
highlight.keyword=#007700
|
|
highlight.bg=#FFFFFF
|
|
highlight.default=#0000BB
|
|
highlight.html=#000000
|
|
--FILE--
|
|
<?php
|
|
highlight_string('<?php echo "foo[] $a \n"; ?>');
|
|
?>
|
|
--EXPECT--
|
|
<code><font color="#000000">
|
|
<font color="#0000BB"><?php </font><font color="#007700">echo </font><font color="#DD0000">"foo[] $a \n"</font><font color="#007700">; </font><font color="#0000BB">?></font>
|
|
</font>
|
|
</code>
|