vuejs/vue-syntax-highlight

New script setup allow "dot" custom component import and name tag

KaliaJS opened this issue · 3 comments

The new SFC <script setup> allow to import all customs components and use dot notation on the template.

// Example
<script setup>
import * as Ui from '@plugins/vue-ui'
</script>

<template>
  <Ui.Content></Ui.Content>
</template>

The problem is that everything after the dot is "Tag attribute" and not "Tag name" (sublime text 4). Can something be done with vue-syntax-highlight ?

image

rchl commented

I don't see that behavior here.

Screenshot 2021-09-09 at 22 00 55

rchl commented

Actually it seems like it was fixed recently for ST4 (through #209)

@rchl You're right thank you