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 258158

Summary: SCSS/Sass syntax checker: False positive when concatenating strings with quotes
Product: editor Reporter: ThomasLandauer
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description ThomasLandauer 2016-02-26 16:08:50 UTC
Netbeans gives a syntax error on the @return-line here:

@function foo($bar)
{
    @return url('a' + $bar + 'b')
}

Although in effect it does work perfectly fine: This:

.text { background:foo('pic'); }

...gets compiled into this, as expected:

.text {background: url("apicb"); }
Comment 1 Milutin Kristofic 2016-02-29 12:53:08 UTC
You are right, netbeans is not parsing URL right. There is already bug report in Bug #238988, where are collected many errors in this. This need a quite big rewrite of CSS parser, so it can takes awhile, but it is really important to find solution.

*** This bug has been marked as a duplicate of bug 238988 ***