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 - False positive LESS CSS parsing error hints
Summary: False positive LESS CSS parsing error hints
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.2
Hardware: PC Windows 8.1 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-04 13:23 UTC by void15
Modified: 2016-11-05 02:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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