Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No javascript highlighting in template literal pug attributes #1807

Open
3 tasks done
probablykasper opened this issue Mar 25, 2020 · 0 comments
Open
3 tasks done

No javascript highlighting in template literal pug attributes #1807

probablykasper opened this issue Mar 25, 2020 · 0 comments

Comments

@probablykasper
Copy link

probablykasper commented Mar 25, 2020

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.24.0
  • VS Code version: 1.43.1

Problem

As you can see here, JavaScript syntax highlighting does not work for Pug attributes that use template literals:

The syntax highlighting works correctly with single quotes and escaped newlines:

Reproducible Case

Create a Vue file with the following code:

<template lang='pug'>
  .list(
    :options=`[
      {
        name: "Main"
      },
      {
        name: "Crypto"
      },
      {
        name: "Stocks and stuff haha"
      }
    ]`
  )
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants