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 251999 - LESS precompiler does not support Extend using postfix & notation
Summary: LESS precompiler does not support Extend using postfix & notation
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 18:10 UTC by PamTba
Modified: 2015-09-09 01:23 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 PamTba 2015-04-22 18:10:39 UTC
This is an extension to issue 245262 about Extend in Less.

Example less code:

.badge {
  display: inline-block;
  &:after {  /* Prefix notation is supported since issue 245262 */
    display: none;
  }

  a& {  /* Unexpected token LESS_AND found */
    &:hover,
    &:focus {
      text-decoration: none;
    }
  } /* Unexpected token RBRACE found */
}

/*Resulting CSS. See http://less2css.org/

.badge {
  display: inline-block;
}

.badge:after {
  display: none;
}

a.badge:hover,
a.badge:focus {
  text-decoration: none;
}
*/
Comment 1 Milutin Kristofic 2015-04-23 11:44:44 UTC
Reproducible, thank you. Netbeans parser now allows only & without something before it. It will fix it.
Comment 2 Milutin Kristofic 2015-09-08 10:11:45 UTC
Fixed in http://hg.netbeans.org/web-main/rev/1ffdb5b95681
Comment 3 Quality Engineering 2015-09-09 01:23:48 UTC
Integrated into 'main-silver', will be available in build *201509090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1ffdb5b95681
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #251999 - LESS precompiler does not support Extend using postfix & notation