TheRealSyler / vscode-sass-indented

Sass indented syntax support for VSCode
https://marketplace.visualstudio.com/items?itemName=Syler.sass-indented
Other
43 stars 9 forks source link

Add an option to disable the distinct highlighting of units #76

Closed aradalvand closed 3 years ago

aradalvand commented 3 years ago

Hi. I prefer Sass's indented syntax over SCSS, and I tried many times to use this plugin, but one thing that annoys me very much is the fact that units are colored differently than the number preceding them.

I propose this would either be disabled entirely (maybe it's just me but I think it's just unnecessary clutter) or at least an option would be available that lets us disable it. This would make the syntax highlighting more similar to VS Code's native SCSS and CSS code syntax highlighting (and also virtually every other IDE/Code editor that supports CSS), which makes migration easier.

Thank you in advance.

aradalvand commented 3 years ago

I would also be willing to create a PR for this.

TheRealSyler commented 3 years ago

i like that the units have a different color, that why i added it, i don't think that its possible to add an option, if there is a way to add an option i would not be against adding one.

you can change it by creating a new extension that only handles the syntax highlighting and tell vscode to not use this extension for syntax highlighting, you can get the grammar file without my changes from here.

you can copy this extension an just remove everything that has nothing to do with the syntax highlighting or you can create a new extension from scratch here is a link to get you started with creating a vscode extension: https://code.visualstudio.com/api/get-started/your-first-extension