mjbvz / vscode-lit-html

Adds syntax highlighting for html inside of JavaScript and TypeScript tagged template strings
https://marketplace.visualstudio.com/items?itemName=bierner.lit-html
MIT License
318 stars 75 forks source link

Breaks JS Template Literals if Ending in `.svg` in React Props #85

Open its-kyle-yo opened 3 years ago

its-kyle-yo commented 3 years ago

Issue Type: Bug

Enable lit-html Create React funcitonal component When using component add a prop as "someProp={whatever.svg}" see "whatever.svg" is viewed as a tagged template literal in token inspector

Extension version: 1.11.1 VS Code version: Code 1.54.2 (fd6f3bce6709b121a895d042d343d71f317d74e7, 2021-03-11T00:56:09.783Z) OS version: Darwin x64 20.3.0

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|6, 4, 3| |Memory (System)|32.00GB (0.75GB free)| |Process Argv|. --crash-reporter-id f97d0bf5-0157-44d9-ab79-324780da5564| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vstry244:30256636 pythonvsdeb440:30248342 pythonvsded773:30248341 vstes627:30244334 pythonvspyt875:30259475 dockersubset:30270708 pythontbcf:30265426 vspre833:30267464 ```