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

[SCSS]: fail to parse variable declaration when var name starts with $-- #296

Open
xuzicn opened this issue Apr 24, 2019 · 6 comments
Open

Comments

@xuzicn
Copy link

xuzicn commented Apr 24, 2019

Version: 4.2.4

Node Version: 8.11.3

Source Code
$--bg-color: #fff;

Error Message:
Please check validity of the block starting from line [#1]

@xuzicn
Copy link
Author

xuzicn commented Apr 24, 2019

Node-sass can compile variable name which starts with two hyphens but Sass-lint report fatal error.

@jdalton
Copy link
Contributor

jdalton commented Apr 24, 2019

Thanks @xuzicn!

I'll dig into this.

@zhuowenli
Copy link

Is there anything progress?

@jdalton
Copy link
Contributor

jdalton commented May 29, 2019

@zhuowenli Not yet! But if you want to take creating a PR a try please feel free to.

@xuzicn
Copy link
Author

xuzicn commented Jun 11, 2019

Is there anything progress?

I forked and do a temporary fix on v4.2.3 but I cannot guarantee that it's the proper solution.

https://github.com/xuzicn/gonzales-pe/tree/v4.2.3-var-name-with-double-hyphens

You need to compile source code by yourself.

@fernandohenriques
Copy link

@xuzicn Try send a PR with your fix.

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

4 participants