Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Incorrect highlighting for nth-child selectors #246

Open
1 task done
adamreisnz opened this issue Feb 5, 2018 · 1 comment
Open
1 task done

Incorrect highlighting for nth-child selectors #246

adamreisnz opened this issue Feb 5, 2018 · 1 comment
Labels

Comments

@adamreisnz
Copy link

Prerequisites

Description

image

Blue nth-child scope:

image

Orange nth-child scope:

image

Red ampersand scope:

image

Grey ampersand scope:

image

Steps to Reproduce

.SomeClass {
  &:nth-child(1), &:nth-child(2) {
    color: $colorRed;
  }
  &:nth-child(3) {
    color: $colorYellow;
  }
  &:nth-child(4), &:nth-child(5) {
    color: $colorGreen;
  }
}

Expected behavior: [What you expect to happen]
Consistent scoping

Actual behavior: [What actually happens]
Inconsistent scoping, see screenshot

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Versions

Atom : 1.23.0-dev-9097c9ac2
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0

apm 1.18.10
npm 3.10.10
node 6.9.5 x64
atom 1.23.0-dev-9097c9ac2
python 2.7.12
git 2.14.1

OS X

@50Wliu 50Wliu added the bug label Feb 5, 2018
@adamreisnz
Copy link
Author

There seem to be some more cases involving ampersand usage where selectors are no longer properly recognised:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants