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.
Product Version = NetBeans IDE Dev (Build 201306122301) Operating System = Linux version 3.8.0-25-generic running on amd64 Java; VM; Vendor = 1.7.0_21 Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01 In one of the projects I've found a css file, marked as invalid with this error: 'Unexpected token OR found' #fonts-com-setup-form .or { font-weight: bold; padding-left: 1.5em; }
Created attachment 135784 [details] IDE log
caused by using a keywords as class name. There's much more cases like this, needs a complex solution.
*** Bug 209068 has been marked as a duplicate of this bug. ***
Bug 209068 complains about "ONLY" token. The same problem happens for all the defined fixed text tokens.
Another case: https://netbeans.org/bugzilla/show_bug.cgi?id=227510#c0 - case#7 dimensione token (.3dtransform) needs to act as a mixin name. The problem is in the current css parser implementation which mixes plain css/sass/less into one grammar. Then some of the keywords of one language may play different roles in the others.
Issue 234840 - Use of the identifier "when" seems to cause issues in the editor: >In a SASS file, the line "li.when {}" is underlined and marked with "Unexpected >token LESS_WHEN found.
*** Bug 234840 has been marked as a duplicate of this bug. ***
Once fixed, will it also resolve issues when HTML element has class with value "when" or "only" which is now being marked as error? <div class="only">TODO write content</div>
(In reply to Vladimir Riha from comment #8) > Once fixed, will it also resolve issues when HTML element has class with > value "when" or "only" which is now being marked as error? > > <div class="only">TODO write content</div> yes
*** Bug 237166 has been marked as a duplicate of this bug. ***
*** Bug 237420 has been marked as a duplicate of this bug. ***
*** Bug 237725 has been marked as a duplicate of this bug. ***
*** Bug 237829 has been marked as a duplicate of this bug. ***
*** Bug 237837 has been marked as a duplicate of this bug. ***
*** Bug 238431 has been marked as a duplicate of this bug. ***
*** Bug 244994 has been marked as a duplicate of this bug. ***
*** Bug 246091 has been marked as a duplicate of this bug. ***
This bug is still present in 8.x (which I only mention because we're past the target milestone).
Hi, I can also confirm this is still a problem in V8.0.2 In my case, a CSS file has a class declaration using the 'or' keyword which should be fine. i.e. .caption .or{ display:block; color:#fff; font-size:22px; padding-top:19px} Please can I nudge this one back onto the radar :)
I'm having this issue also in NetBeans 8.0.2 with a css class named 'or' in Magento's codebase.
This was fixed in dev build in Bug #248270 .