Syntax highlighting for SCSS sources
Categories
(DevTools :: Style Editor, defect, P3)
Tracking
(Not tracked)
People
(Reporter: fvsch, Unassigned)
Details
Attachments
(1 file)
|
128.46 KB,
image/png
|
Details |
When a sourcemap includes an original SCSS source, it's highlighted using CSS rules, which doesn't work well for Sass-specific features such as line comments.
CodeMirror does seem to have SCSS and Less modes:
https://codemirror.net/mode/css/scss.html
https://codemirror.net/mode/css/less.html
I would not support the indent-based Sass syntax since it's fell out of fashion, unless it's a quick win with virtually no maintenance burden?
https://codemirror.net/mode/sass/index.html
And if we could get the correct syntax highlighting in both Style Editor and Debugger (where SCSS sources may show up in Sources as part of some webpack builds, in my experience), that would be great!
Looked for existing DevTools bugs for SCSS and Sass, but found nothing related to syntax highlighting:
| Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•3 years ago
|
Description
•