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 268338

Summary: False positive LESS CSS parsing error hints
Product: web Reporter: void15
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED FIXED    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 8.1 x64   
Issue Type: DEFECT Exception Reporter:

Description void15 2016-10-04 13:23:07 UTC
Editor indicates false positive LESS CSS parsing error.

Example:
.classname {
   &__@{classname_in_variable} {  /** error here: Unexpected token IDENT found **/
       height:0;
   }
}

This gets compiled correctly but Netbeans complains about the syntax. This also appears using hyphens (or other characters) instead of underscores after the & operator (resulting in 'Unexpected token AT_SIGN found').
Comment 1 void15 2016-10-05 08:11:44 UTC
Editor indicates false positive LESS CSS parsing error.

Example:
@classname_in_variable: inner;
.classname {
   &__@{classname_in_variable} {  /** error here: Unexpected token IDENT found **/
       height:0;
   }
}

This gets compiled correctly to:
.classname__inner {
  height: 0;
}

However, Netbeans complains about the syntax. This also appears using hyphens (or other characters) instead of underscores after the & operator (resulting in 'Unexpected token AT_SIGN found').
Comment 2 Milutin Kristofic 2016-11-03 15:33:01 UTC
Yes, Netbeans had a problem with less interpolation in element name. Fixed in dev build:
http://hg.netbeans.org/web-main/rev/e55cb47a3e24
Comment 3 Quality Engineering 2016-11-05 02:58:46 UTC
Integrated into 'main-silver', will be available in build *201611050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e55cb47a3e24
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #268338 - False positive LESS CSS parsing error hint