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.
When I put a css /* ... */ commentary at the end of file, it is displayed black and red-underlined so it looks like the editor parser don't know what it is. When another line is entered below, it is displayed correctly, grey-colored.
known issue, you found the workaround already ;-)
*** This bug has been marked as a duplicate of bug 129526 ***