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

feat(vscode): add empty pattern to codeblock attributes scope #4590

Merged

Conversation

KermanX
Copy link
Collaborator

@KermanX KermanX commented Jul 17, 2024

Motivation: slidevjs/slidev#1743 needs to inject to fenced_code.block.language.attributes.markdown to support highlighting special code block attributes like

Due to microsoft/vscode#221682, grammar can't be injected into scopes without patterns and begin/end. However, only code blocks defined in VSCode's Markdown grammar file can be overridden by injecting the same code block rules with the desired patterns: [] into text.html.markdown (which has been done in this commit), so it seems that the only way to support Vue's code block is adding patterns: [] to Vue's grammar file.

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

Successfully merging this pull request may close these issues.

2 participants