Repository navigation
Closed
Description
Issue Type: Bug
I have this pug markup and it isn't being highlighted correctly
each markup, type in demoMarkup
if type === 'js'
.grid__cell(class=type)
each js, jsType in markup
if (jsType === 'es5')
details.o-demo__details.o-demo__es5
summary ES5 Syntax
.o-demo__markup
pre
code(class=type)= js
else
.o-demo__markup.o-demo__segment.js(class=jsType)
pre
code(class=type)= js
else if (type === 'html' && spec.showHTML || type !== 'html')
- markup = type === 'html' ? html : markup;
.grid__cell.o-demo__markup.o-demo__segment(class=type)
pre
code(class=type)= markupThis is how it is being highlighted:
VS Code version: Code 1.26.1 (493869e, 2018-08-16T18:38:57.434Z)
OS version: Windows_NT x64 10.0.17134
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 x 3998) |
| GPU Status | 2d_canvas: enabled checker_imaging: disabled_off flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software rasterization: enabled video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled |
| Memory (System) | 15.94GB (8.67GB free) |
| Process Argv | C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe |
| Screen Reader | no |
| VM | 0% |
Extensions (26)
| Extension | Author (truncated) | Version |
|---|---|---|
| Bookmarks | ale | 9.0.3 |
| vscode-twig-pack | baj | 1.0.0 |
| npm-intellisense | chr | 1.3.0 |
| path-intellisense | chr | 1.4.2 |
| bracket-pair-colorizer | Coe | 1.0.59 |
| vscode-svgviewer | css | 1.4.4 |
| gitlens | eam | 8.5.6 |
| auto-close-tag | for | 0.5.6 |
| auto-rename-tag | for | 0.0.15 |
| code-runner | for | 0.9.4 |
| beautify | Hoo | 1.3.2 |
| RelativePath | jak | 1.4.0 |
| vscode-phpfmt | kok | 1.0.30 |
| vscode-regexp-preivew | le0 | 0.0.3 |
| VS-code-drupal | mar | 0.0.12 |
| vscode-scss | mrm | 0.6.2 |
| debugger-for-chrome | msj | 4.8.2 |
| autotrim | Nat | 1.0.6 |
| format-html-in-php | rif | 1.3.4 |
| code-settings-sync | Sha | 3.0.0 |
| code-spell-checker | str | 1.6.10 |
| tom | 0.3.0 | |
| quokka-vscode | Wal | 1.0.141 |
| vscode-import-cost | wix | 2.8.0 |
| html2jade | wma | 0.2.0 |
| markdown-all-in-one | yzh | 1.6.0 |
(4 theme extensions excluded)
Metadata
Metadata
Assignees
Labels
No labels

Activity
lzlptk commentedon Sep 2, 2018
Using a filter in a tag breaks the syntax highlighting inside it.
script :uglify-js WebFont.load({ google: { "families": ["Poppins:300,400,500,600,700", "Roboto:300,400,500,600,700"] }, active: function() { sessionStorage.fonts = true; } });Without a filter it looks good.

VS Code version: Code 1.26.1 (493869e, 2018-08-16T18:34:20.517Z)
OS version: Linux x64 4.15.0-33-generic
System Info
checker_imaging: disabled_off
flash_3d: unavailable_software
flash_stage3d: unavailable_software
flash_stage3d_baseline: unavailable_software
gpu_compositing: unavailable_software
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_software
video_decode: unavailable_software
video_encode: unavailable_software
webgl: enabled_readback
webgl2: unavailable_off
Extensions (2)
(1 theme extensions excluded)
aeschli commentedon Sep 3, 2018
This issue was moved to davidrios/pug-tmbundle#25