microsoft / microsoft/vscode-css

Missing ending bracket textmate rule for css highlighting

Open
#27 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27
Forks
25
Avg merge
3d 19h
Merged PRs (30d)
2

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.85.2
  • OS Version: Linux x64 5.15.0-91-generic (Linux mint)

Steps to Reproduce:

  1. Write nested CSS rule
  2. Via command palette enable "Developer: Inspect Editor Tokens and Scopes"
  3. Try to browser the textmate for the closing curly brace.

Expected outcome:
TextMate rule for ending bracket exists (i.e punctuation.section.property-list.end.bracket.curly.css). Ending bracket can be customized.

Actual outcome:
TextMate rule for ending bracket does not exist (i.e punctuation.section.property-list.end.bracket.curly.css). Ending bracket cannot be customized.

Screenshots are attached
example1
example2
example3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in VS Code with the CSS TextMate grammar and Developer: Inspect Editor Tokens and Scopes. Find the grammar entry point in this repository, compare the scopes for opening and closing curly braces, and verify that the closing brace exposes the expected ending-bracket scope and remains customizable.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.