Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors accessing hashes in interpolations #2510

Open
jazzzz opened this issue Nov 20, 2019 · 3 comments
Open

Errors accessing hashes in interpolations #2510

jazzzz opened this issue Nov 20, 2019 · 3 comments

Comments

@jazzzz
Copy link
Contributor

jazzzz commented Nov 20, 2019

Stylus:

H = {
    s: ".bar"
}
{H.s}
    color red

Expected:

.bar
   color red

Result:

ParseError: test.css:7:1
   3|     s: ".bar"
   4| }
   5| {H.s}
   6|     color red
   7| 
------^

expected "indent", got "outdent"

whereas

H = {
    s: ".bar"
}
&{H.s}
    color red

works.

@MoussaAdam
Copy link

2019-12-19_14-53
🤷‍♂

@jazzzz
Copy link
Contributor Author

jazzzz commented Dec 30, 2019

2019-12-19_14-53
man_shrugging

It's because stylus-lang.com does not run the latest version of stylus, it runs stylus 0.54.5, and this bug only appears on stylus >= 0.54.6.

@iChenLei
Copy link
Member

2021-08-22 00 33 29

Yes. it's bug. We need found diff between v0.54.5 with v0.54.6 0.54.5...0.54.6

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

No branches or pull requests

3 participants