jacobcassidy/vscode-css-nesting-syntax-highlighting

`@supports` query breaks highlighting

Closed this issue · 1 comments

Video for reference:

CleanShot.2025-01-02.at.08.37.06.mp4

Minimal code-block to reproduce:

:root {
	--supports-red: false;
	@supports (color: red) {
		--supports-red: true;
	}
	--x: 1;
}

Specs:

  • macOS Sonoma 14.7.1
  • VS Code 1.96.2
  • CSS Nesting Syntax Highlighting: latest (0.1.1 at time of writing)

I've tried disabling all other CSS extensions to ensure no conflicts but can't ID any other culprit 🤔

@chaance Thanks for posting the issue. I merged #5, which should fix it.

Make sure to update to version 0.2.0 of the CSS Nesting Syntax Highlighting extension and then restart VSCode.

Let me know if you run into any other issues.