Vetur: '#' mess up highlight after it in js template string

Created on 9 Apr 2019  路  2Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Win
  • Vetur version: 0.18.1
  • VS Code version: 1.31.1

Problem

when use "#" in Template strings(`) in <template></template> tag, highlight went wrong after this character, but things goes well in 0.17.0, maybe there is a bug in new release after 0.18.*?

code in 0.18.1
image

and code in 0.17.0
image

Reproducible Case

<template>
    <router-link :to="{path: `/my/path#hash=${hash}`}">click me</router-link>
</template>

<script>
export default {
    data () {
        return {

        }
    }
}
</script>

bug grammar

All 2 comments

@Patcher56 FYI

Was this page helpful?
0 / 5 - 0 ratings