PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Highlighter » Bug #5512

wrong highlight with comments in css code

Details

Submitted2005-09-24 22:00 UTC
Fromtobias at meshed dot de
StatusBogus
PackageText_Highlighter
PHP Version5.0.4
OSMac OS X (MAMP)
Roadmaps(Not assigned)

Comments

[2005-09-24 22:00 UTC] tobias at meshed dot de

Description:
------------
CSS Comments won't highlight correct

Test script:
---------------
require_once 'Text/Highlighter.php';

$highlighter =& Text_Highlighter::factory('css');

// more info: http://www.sitepoint.com/print/highlight-source-code-php

$some_source_code =
'// example
body.content = { color: black; }

';

echo $highlighter->highlight($some_source_code);

Actual result:
--------------
// example
body.content = { color: black; }

[2005-10-01 02:53 UTC] blindman at php dot net

Thank you for taking the time to write to us, but this is not
a bug.

This code is not valid CSS.

See http://www.w3.org/TR/REC-CSS2/syndata.html