Skip to content

Conversation

@serkodev
Copy link

@serkodev serkodev commented Oct 29, 2025

Since defaults to the HTML language, I excluded <* lang="html"> from matching <template>.
This fixes the issue where <template lang="html"> wasn’t highlighted correctly.

Because in the original design the end in patterns can’t access the parent’s end tag, it can’t pass the parent’s arbitrary end tag name down to child patterns for end checks. So I added text.html.derivative to everything under lang="html" (including the > of the opening tag). This only affects non-template tags (which should be edge cases?).

Screenshot

Related

Fix #1756
Fix johnsoncodehk/volar-starter#9

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 29, 2025

Open in StackBlitz

vue-component-meta

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-meta@5728

vue-component-type-helpers

npm i https://pkg.pr.new/vuejs/language-tools/vue-component-type-helpers@5728

@vue/language-core

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-core@5728

@vue/language-plugin-pug

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-plugin-pug@5728

@vue/language-server

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-server@5728

@vue/language-service

npm i https://pkg.pr.new/vuejs/language-tools/@vue/language-service@5728

vue-tsc

npm i https://pkg.pr.new/vuejs/language-tools/vue-tsc@5728

@vue/typescript-plugin

npm i https://pkg.pr.new/vuejs/language-tools/@vue/typescript-plugin@5728

commit: f4c8387

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.

syntax highlight not work in template with lang="html" BUG: Closing tag linting issue in VS Studio

1 participant