Skip to content

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

Open
@JessicaSachs

Description

@JessicaSachs

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions