Skip to content
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

Test tree-sitter support for CSS #244445

Closed
3 tasks done
alexr00 opened this issue Mar 24, 2025 · 1 comment
Closed
3 tasks done

Test tree-sitter support for CSS #244445

alexr00 opened this issue Mar 24, 2025 · 1 comment

Comments

@alexr00
Copy link
Member

alexr00 commented Mar 24, 2025

Refs: #244442

Complexity: 2

Create Issue


Setup

You need to enable tree sitter for CSS:

"editor.experimental.preferTreeSitter.css": true

Known differences in syntax highlighting

The big one is deprecated properties and values. The old CSS textmate grammar hardcoded a bunch deprecated tokens, We aren't going to support that with tree-sitter. So, some things that are deprecated and shown in red with textmate will not have that treatment with tree-sitter.

Testing

The goal of testing here is to identify places where we don't get the color right. When filing issues, please include a copy/pastable code snippet and the theme name. Pick 3-5 CSS files (even better if you pick examples of uncommon CSS) and do the following:

  1. Open the file and see if you think any of syntax highlighting colors look off.
  2. Open VS Code stable and open the same file there, if you see any differences in syntax highlighting, please file an issue, even if the new highlighting is better.
@alexr00
Copy link
Member Author

alexr00 commented Apr 4, 2025

Thank you all for the great bugs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants