-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Update CSS Language Syntax #115480
Comments
We get our css grammar from https://github.com/octref/language-css, so changes to https://github.com/atom/language-css would need to pulled into there. @octref is https://github.com/octref/language-css being maintained? |
Ah! I'm not crazy. I first started looking into the bad highlighting in SASS a long time ago and gave up when I couldn't figure it out, and only started digging into it again recently. When I first looked into it, it was derived directly from atom's version of the language: e62554e#diff-41108266fb098e0fb5d4f0fbdab607f29ffc0143e1c4914c83fbdc28da29ab6fL7 I neglected to check that line to notice it had changed. I made a PR on the octoref version. Could we please leave this issue open until it's confirmed that it's either merged or won't be merged for some reason? |
@alexr00 - how long do we wait for a response? Does this issue only move forward with octref's help? Their blog says they're not even at Microsoft anymore. I don't want to bother them. It seems strange that it got moved away from Atom's grammar as reference anyway, for exactly this reason: Atom isn't going to stop being maintained anytime soon. |
Many of our grammars are maintained by non-Microsoft developers, so this is very normal. However, since this isn't the only css grammar related issue that hasn't gotten a response, I'm happy to change grammars to the one that is maintained (atom/language-css). Here are the bugs/missing features that we would be accepting by changing to atom/language-css. This may not be a complete list, but based on the diffs this is what I see: |
I'm just a bit confused by the second part; are there parts that are in octref's repo that aren't in Atom's? Do you need a hand comparing octo's to Atom's and/or making PRs to Atom's for discrepancies? |
Yes.
I already hand compared (which is how I came up with the list of bugs/missing features). We try not to be in the business of writing grammars since there are many languages and we aren't experts in many of them. This is why we get our grammars from OSS. If a member of the community wanted to take a close look at my list here and make PRs for bugs and missing features in the atom/language-css grammar (or verify that the issue doesn't exist in the atom grammar), then I would have no reason not to use that grammar 😉. That said, I'm inclined to adopt atom/language-css even if no one from the community wants to do that. A maintained grammar should be better on average. |
Cool! I've just about had it up to here with language grammars for a while, but I don't mind circling back in a month or two to take a deeper look at those changes and making PRs against atom if necessary. Thanks, Alex 😃 |
As an update, I did some homework and made PRs for the things that made sense to.
|
I've moved to March to give the folks over in atom/language-css time to look at @cssinate's PRs. |
It doesn't seem like those PRs are getting any attention. However, since the grammar is well maintained I will try switching over to it anyway. If there aren't any big concerns after switching, then I'll keep the change in. |
Ok. I'll keep an eye on the Atom PRs and open and mention you in a new
issue when they get merged.
…On Thu., Mar. 11, 2021, 8:05 a.m. Alex Ross, ***@***.***> wrote:
It doesn't seem like those PRs are getting any attention. However, since
the grammar is well maintained I will try switching over to it anyway. If
there aren't any big concerns after switching, then I'll keep the change in.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#115480 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGAOZVDYBX6SOUA4LDGJW5DTDC5ZRANCNFSM4W23RQQA>
.
|
This can be verified by seeing that the integration tests pass (specifically the colorizer integration tests). |
Steps to Reproduce:
vscode/extensions/css/syntaxes/css.tmLanguage.json
Line 1817 in 81ae94a
Does this issue occur when all extensions are disabled?: Yes
There was a fix some time ago for this issue: atom/language-sass#226 where in SCSS, property names that shared a name with a tag name were colored incorrectly. That fix has not been ported over to VSCode. As per
vscode/extensions/css/syntaxes/css.tmLanguage.json
Line 3 in 81ae94a
The text was updated successfully, but these errors were encountered: