Subject: bug#22841: [PATCH] Declare $ as an expression prefix in SCSS mode

From: Simen Heggestøyl <[email-masked]>
Date: Sun, 28 Feb 2016 20:56:43 +0100

Variable names are prefixed by $ in SCSS. The following patch declares $
as an expression prefix in SCSS mode.

>From 61b4e502dd52dcbfeb529b4d042b210708c22c8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <[email-masked]>
Date: Tue, 23 Feb 2016 22:02:13 +0100
Subject: [PATCH] Declare $ as an expression prefix in SCSS mode

* lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an
expression prefix.
---
 lisp/textmodes/css-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el
index 4064374..93a8dce 100644
--- a/lisp/textmodes/css-mode.el
+++ b/lisp/textmodes/css-mode.el
@@ -547,6 +547,8 @@ scss-mode-syntax-table
   (let ((st (make-syntax-table css-mode-syntax-table)))
     (modify-syntax-entry ?/ ". 124" st)
     (modify-syntax-entry ?\n ">" st)
+    ;; Variable names are prefixed by $.
+    (modify-syntax-entry ?$ "'" st)
     st))

 (defvar scss-font-lock-keywords
--
2.7.0