-
Notifications
You must be signed in to change notification settings - Fork 528
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
ParseError with comments #229
Comments
Thanks for the report, we'll look into it.. That sort of error is usually generated by our AST so I'll see what I can find out. Thanks. |
Hi @zallek I've done a bit of testing and reported an error with the AST we use, it seems it's something to do with using the word You can see my comment here tonyganch/gonzales-pe#95 to overcome this problem for now you can either change the name of the selector or just have the comment outside of the block. I would suggest for now changing the name of the selector slightly as it may cause issue with something else further down the line. I've provided working examples in the issue I filed if you'd like to see those. |
Hi @DanPurdy and thank you for the quick answer. I replaced the comment line by a block comment and it does the trick for now. But I will stay posted about fixes on the parser you use. I have another similar issue that might (or not) help to solve it. @mixin url_infos {
...
// When there is a title, move over it
.url-infos-with-title .PageRankGauge {
margin-top: -10px;
background: transparent;
}
...
} |
BTW thank you for this great work. That's nice to have this scss linter working with JS instead of Ruby. I mainly setup it on my prod project to avoid releasing code with non breaking spaces (before braces) which aren't correctly managed by |
Thanks @zallek we appreciate it. Would you mind opening a separate issue for your feature request? I fear it may get lost in this issue when we close it otherwise. Thanks! |
I'm experiencing a similar issue. The following code causes a parse error: .foo {
font-family: "Arial", /* comment*/ "Helvetica";
} Removing the comment solves the problem. |
@nene this will be due to the AST we're using. You can test if this is working in the latest version of the parser that we'll be moving to in 1.6 by visiting http://tonyganch.com/gonzales-pe/ and seeing if you get any parse errors on the code you have. For your issue above it's working correctly in the gonzales-pe 3.2.6 so once 1.6 rolls out you should see your issue fixed 👍 |
Thanks for the quick response. Looking forward to 1.6 release. |
Once the AST installs on windows correctly again we'll be releasing. 👍 |
I'm trying to setup
sass-lint
on my project but on some commented line (not all ...), it throws aParseError
. (I'm using the CLI)CLI result
The other ones dont throws Error.
The text was updated successfully, but these errors were encountered: