-
Notifications
You must be signed in to change notification settings - Fork 54
Color for 'cursor' for sass (SCSS) is wrong #226
Color for 'cursor' for sass (SCSS) is wrong #226
Comments
Also applies to body {
cursor: pointer;
::before {
content: '';
}
filter: blur(5px);
font: 12px/14px sans-serif;
mask: none;
} |
There is any update to this? I still getting the wrong highlight for |
|
Currently |
@gerasimvol - it appears the same, but it isn't. caret-color should be listed in here, but it isn't. https://github.com/atom/language-css/blob/master/grammars/css.cson#L2056 I would guess it's probably because that property is still a recommendation, and not a final draft, but they might accept a PR adding it in. You should try adding it! |
@Aerijo - good catch. Sorry I missed it. I don't think I have the skills to go and fix the problem. But it seems like the logic should be: "If the string is followed by a Edit: This rule could go on the CSS language definition file, couldn't it? Should it? I know it doesn't affect CSS directly, but the problem does spread into SCSS and LESS. It feels like it should be stopped at the root, by more explicitly setting the pattern of a property. |
I attempted a pull request with a fix for this issue, but the tests are failing. I don't know enough about the tests to understand what they're complaining about. It seems like it breaks because it doesn't like the name or the scope that Until that time, anyone on VSCode can use this extension I built: https://marketplace.visualstudio.com/items?itemName=cssinate.scss-language-improvements |
Just bumping to say I noticed these too. As I do SCSS daily it would be nice to have these implemented instead of a separate plugin. As not experienced enough, using cssinate.scss-language-improvements for now, as others. |
Any progress? |
@artuska - yes. Read the last two references from before you posted. |
So here's a quick update. The problem for VSCode should be solved by the end of this month. The thing is, there's been a fix for this in Atom for 3 years: For those that aren't super familiar with Regex, there's a bit in there that says, "a tag name can be followed with a
div {
cursor: url('');
}
EDIT: The fix was committed 3 years ago, but didn't make it into a release of |
Quoting myself after some years.
SCSS language improvements extension is no longer available and this is present again...
|
@ronilaukkarinen - Here's what I've found. The commit above fixed the issue for syntax highlighting. However, according to this: atom/language-css#127 (comment) This change broke auto-completions, so the change was reverted. So either the regex for property names needs to be written to take pseudo-selectors auto-completion into account or auto-completion needs to be modified to be smarter about what should or shouldn't be auto-completed and how. |
Thank you a lot @cssinate for taking a look! This issue definitely needs to be reopened. |
Just FYI, I've improved the original extension by @cssinate and re-published my fork to Visual Studio Marketplace so whoever is also bugged by this issue can use it while waiting for the official fix. |
From @Binaryify on July 18, 2017 7:24
'cursor' had wrong color in SCSS file, but in the css file it had right color
The 'cursor' key had the same scope with html tag in the 'scss' file
Copied from original issue: microsoft/vscode#30907
The text was updated successfully, but these errors were encountered: