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

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

Open
JessicaSachs opened this issue Oct 24, 2022 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first upstream

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first upstream
Projects
None yet
Development

No branches or pull requests

2 participants