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 243296

Summary: Ctrl+Click navigation does not work for LESS with class names combined via '&'
Product: web Reporter: NukemBy
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:

Description NukemBy 2014-03-26 16:13:24 UTC
LESS syntax allows 'short' writing of the CSS class names like following

    .myCtrl {
        color: green;

        &_child1 {
            color: red;
        }

        &_child2 {
            color: blue;
        }
    }

When compiled, this looks like following in CSS

    .myCtrl {
      color: green;
    }
    .myCtrl_child1 {
      color: red;
    }
    .myCtrl_child2 {
      color: blue;
    }

When I'm writing my HTML, CTRL+Click navigation works for 'myCtrl' and does not work for "myCtrl_child1" and "myCtrl_child2" in following sample:

    <div class="myCtrl">
        <div class="myCtrl_child1"/>
        <div class="myCtrl_child2"/>
    </div>
Comment 1 Vladimir Riha 2014-03-31 05:53:07 UTC
It's about navigation from HTML to Less file, right? Reproducible, but I think this is enhancement.


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 2 NukemBy 2014-03-31 10:44:33 UTC
Exactly, this is about "navigation from HTML to Less file".