Skip to content

Syntax highlighting requires new-line or semi-colon between script blocks. #2060

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

Open
JessicaSachs opened this issue Oct 24, 2022 · 0 comments
Labels
good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug upstream: vscode

Comments

@JessicaSachs
Copy link

Issue: script tag syntax highlighting is broken
Screen Shot 2022-10-24 at 7 51 52 PM

Workaround: use semi-colon or add new line.
Screen Shot 2022-10-24 at 7 52 25 PM

Reproduction

<script lang="ts">
export type ButtonType = 'primary' | 'secondary' | 'tertiary'
</script>

<script setup lang="ts">
defineProps<{
  type: ButtonType
}>()
</script>

<template>
  <button>
    <slot />
  </button>
</template>
@johnsoncodehk johnsoncodehk added bug Something isn't working upstream good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Mar 18, 2023
@KazariEX KazariEX removed the bug Something isn't working label Jan 18, 2025
@KazariEX KazariEX marked this as a duplicate of #5353 May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first 🔨 p3-minor-bug upstream: vscode
Projects
None yet
4 participants