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 248717 - Scss: Function call with minus operation marked as error
Summary: Scss: Function call with minus operation marked as error
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2014-11-18 07:28 UTC by Vladimir Riha
Modified: 2015-04-17 10:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-11-18 07:28:05 UTC
Please try following:

@mixin ui-convex($color: #ddd)
    background: $color; 
    $opacitytop: percentage(1-$opacity-top);
    $opacity-bottom: percentage(1-$opacity-bottom);

=> lines with $opacitytop and $opacity-bottom are marked with errors due to the 


with message about unexpected character $ and unexpected token COLON. I guess the problem is in treating the 1st minus sign as dash and not mathematical operator.

Thank you

Product Version: NetBeans IDE Dev (Build 201411180001)
Java: 1.7.0_72; Java HotSpot(TM) Client VM 24.72-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_72-b14
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Comment 1 Milutin Kristofic 2015-04-17 10:50:01 UTC
The shortest example is $a : 1-$b. The problem is that IDENT can start with minus like  -webkit-transform and Lexer predicts that there is IDENT in -$ and after check it fails. I already spent a lot of time on this. It probably needs a lot of changes in grammar.

1+$b works
if IDENT cannot start with '-' it works.