Vetur: Slm syntax highliting breaks at nested quotes

Created on 5 Mar 2019  路  1Comment  路  Source: vuejs/vetur

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

Info

  • Platform: macOS
  • Vetur version: 0.16.2
  • VS Code version: 1.31.1

Problem

I wrote v-if attribute with nested double quotes and single quotes in Slm template.
Slm syntax highliting breaks at nested quotes.

sc


Reproducible Case

Reproduction code.

<template lang="slm">
  div v-if="state === 'initialized'"
    slot
</template>
<script>
export default {
  data: {
    state: "foobar"
  }
};
</script>
<style>
</style>

bug grammar

Most helpful comment

This is because I used text.pug.slm for embedded SLM, but it should be text.jade.slm with https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-slm.

>All comments

This is because I used text.pug.slm for embedded SLM, but it should be text.jade.slm with https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-slm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

muhajirdev picture muhajirdev  路  3Comments

yoyoys picture yoyoys  路  3Comments

octref picture octref  路  3Comments

thibautguedou3 picture thibautguedou3  路  3Comments

octref picture octref  路  3Comments