This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 146125 - [65cat] [core] CSS syntax highlighting for comments is inconsistent
Summary: [65cat] [core] CSS syntax highlighting for comments is inconsistent
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jan Stola
Depends on:
Reported: 2008-09-04 05:42 UTC by esmithbss
Modified: 2014-10-06 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Incorrectly hghlighted CSS file. (139.36 KB, text/plain)
2008-09-04 05:43 UTC, esmithbss
Annotated Screenshot (80.35 KB, image/png)
2008-10-20 22:19 UTC, esmithbss

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-09-04 05:42:47 UTC
[ BUILD # : 200809031401 ]
[ JDK VERSION : 1.6.0_07 ]

Syntax Highlighting for comments within CSS files is incorrect if the
comments trailing / is in contact with a character other than the
preceeding *.

As an example, check out the Yahoo API's reset-fonts-grids.css file
with the Aloha color scheme in the attached screen capture.  

The top block comment is properly colored gray.

the comment on line 7 is incorrectly colored orange.

the comment on line 8 is incorrectly colored orange.

the comment on line 11 is incorrectly colored white.
Comment 1 esmithbss 2008-09-04 05:43:29 UTC
Created attachment 69008 [details]
Incorrectly hghlighted CSS file.
Comment 2 Marek Fukala 2008-09-04 08:59:12 UTC
reproducible, simple usecase: 

/* */X {}

if a whitespace is inserted between */ and the X the lexing is ok.
Comment 3 esmithbss 2008-10-20 22:19:45 UTC
Created attachment 72316 [details]
Annotated Screenshot
Comment 4 esmithbss 2008-10-21 05:16:40 UTC
Ignore screencapture from Mon Oct 20.  It belongs to a different report.