Skip to content

[Bug] The keyword type should not be used as a keyword for parsing #3562

@Siykt

Description

@Siykt

In the <template> section, the keyword type should not be used as a keyword for parsing, as it can cause code styling issues in the vscode editor.

like this

image

A minimal reproduction:

<script setup lang="ts">
import { ref } from 'vue'

const types = ref(['a', 'b', 'c'])
</script>

<template>
  <div>
    <select>
      <option v-for="type in types" :key="type" :value="type">
        {{ type }}
      </option>
    </select>
  </div>
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions