Open Bug 1546063 Opened 7 years ago Updated 3 years ago

Syntax highlighting for SCSS sources

Categories

(DevTools :: Style Editor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: fvsch, Unassigned)

Details

Attachments

(1 file)

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:

Summary: Syntax highlighting for Sass (especially SCSS) sources → Syntax highlighting for SCSS sources
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: