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 - Ctrl+Click navigation does not work for LESS with class names combined via '&'
Summary: Ctrl+Click navigation does not work for LESS with class names combined via '&'
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.0
Hardware: PC Windows 7 x64
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-26 16:13 UTC by NukemBy
Modified: 2014-10-06 13:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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