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

syntax highlighting breaks in jsx with template literal containing dash and .svg #91

Open
martypenner opened this issue Aug 4, 2021 · 0 comments

Comments

@martypenner
Copy link

Issue Type: Bug

  1. Create a very basic file with JSX and a template literal within the JSX that contains a dash (-) and ends in .svg, e.g.:
import React from 'react';

const cdnUrl = 'https://cdn.somewhere.com';

export default function Test() {
  return <img src={`${cdnUrl}/photo/cocker-spaniel-960_720.svg`} alt="" />;
}
  1. Enable lit-html
  2. Notice the syntax highlighting changes after the last dash (-) in the template literal

Extension version: 1.11.1
VS Code version: Code 1.58.2 (Universal) (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:09:06.581Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz (8 x 2300)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 65, 46, 31
Memory (System) 16.00GB (2.04GB free)
Process Argv --crash-reporter-id ab049fd2-bee3-44eb-a2ec-f0bcf4641e72
Screen Reader no
VM 0%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant