bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21898: scss-mode font-lock face for variables


From: Jackson Hamilton
Subject: bug#21898: scss-mode font-lock face for variables
Date: Thu, 12 Nov 2015 22:37:57 -0800

I'd like to propose the following change to the scss-mode on master: Use font-lock-constant-face for SCSS variables.

This may not seem intuitive from a naming perspective, but font-lock-variable-name-face is already used for CSS properties. That makes it harder to distinguish between properties and variables.

AFAIK, Sass doesn't even have constants, so I don't see much harm in using this face. It'd be a less dramatic change for those who have grown used to variable coloring for CSS properties.

I guess the alternative would be to inherit the property face from something else, to free up the face for real variables. But then what do we use for properties? (Inheriting from nothing doesn't look good IMO.)

Attached is the proposed patch.

Attachment: 0001-Use-font-lock-constant-face-for-scss-variables.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]