-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bug in highlighting #2
Comments
Really that's not good highlighting. Thanks for giving the piece of code , I will try to fix it as soon as possible! |
I'm facing the same issue.
@bajrangCoder Thanks! Have you identified more about the bug? Could you link us if you share more info about it at https://github.com/tree-sitter-grammars/tree-sitter-scss/issues ? |
@xpe sure |
I have one project where we (for historical reasons) has been using SASS syntax instead of SCSS. Feature wise both are exactly the same, but SASS syntax is a bit more brief. So I wonder whether Sorry for derailing |
@bajrangCoder Thanks for posting the issue! For the record it is : tree-sitter-grammars/tree-sitter-scss#4 |
@jodaka and @bajrangCoder To clear some things up as to correct Sass/SCSS syntax:
References:
|
@xpe Initially, I was confused because I had never encountered this before. I mistakenly thought it might be a new feature of SCSS. However, upon reflection, I realized that my confusion stemmed from not having worked with SCSS for several months. My apologies for the oversight. 😑 |
@bajrangCoder No worries. In any case, there still is a syntax highlighting problem: nested |
Check the syntax tree for more information (open it from zed command palette), seems this is also not parsed correctly Currently, I'm away from my PC; otherwise, I would investigate further. Perhaps I'll check back in an hour. |
At the project I'm supporting at the moment postcss-mixins is used instead of pure scss (basically there are multiple postcss plugins that allow using scss without scss compiler). https://github.com/postcss/postcss-mixins/ @xpe, honestly I haven't realised that postcss-mixins syntax is different from original scss until I read your comment. Sorry for confusion. vscode seem to handle that syntax just fine, so maybe it still worth the effort to support it in zed |
@jodaka Makes sense, but I'm not quite following this part:
This might be obvious, but I just want to make sure we're on the same page: the Zed SCSS extension should support only SCSS, right? (PostCSS is an altogether different project with different syntax and different semantics.) |
That's not really a question for me, but rather for extension author. As a user of both zed and SCSS I would love one extension that could handle all the SCSS related cases (that is SCSS itself, SASS syntax and postcss variation). For the sake of keeping issues clean I think this issue might stay open only for nested @include bug. Everything else should be in separate issues. |
I just want to make sure we're on the same page:
My point (sorry if this is obvious): if an extension is called "Zed-SCSS" or "zed-scss" it would be confusing to support both SCSS and PostCSS. Better to create a separate extension for PostCSS. |
Below is an piece of SCSS and screenshot of how it looks in Zed
selector colors are inconsistent and rules inside of body selectors seems to be completely off
The text was updated successfully, but these errors were encountered: