https://github.com/dannymcgee/vscode-scss-grammar-extended
Adds some additional token and pattern recognitions to VS Code's default SCSS grammar.
https://github.com/dannymcgee/vscode-scss-grammar-extended
Last synced: about 2 months ago
JSON representation
Adds some additional token and pattern recognitions to VS Code's default SCSS grammar.
- Host: GitHub
- URL: https://github.com/dannymcgee/vscode-scss-grammar-extended
- Owner: dannymcgee
- Created: 2019-08-11T21:54:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-11T22:30:34.000Z (over 5 years ago)
- Last Synced: 2025-03-06T06:51:53.243Z (2 months ago)
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SCSS Grammar Extended
This extension adds some additional features and fixes some bugs in VS Code's default SCSS grammar.
**Features:**
* BEM-style `__element` and `--modifier` fragments tokenized as class names (for use with the ampersand, interpolation, etc.)
* `null` and boolean values tokenized as language constants
* Added recognition for Angular-specific pseudo-selectors `:host-context` and `::ng-deep`**Fixes:**
* Fixed `content` and `cursor` property names being tokenized as tag selectors
* Fixed `background` being tokenized as an invalid/deprecated keyword in certain contexts
* Fixed `color` being tokenized as a property value keyword instead of a property name in certain contexts**Known issues:**
* CSS3 variable definitions are now erroneously tokenized as class names/BEM modifiers. This is a relatively minor issue in my opinion, since for most use cases Sass variables are preferred over CSS variables.