From fb0959e7137a4725148a0c48a002519492f864bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simen=20Heggest=C3=B8yl?= Date: Mon, 29 Feb 2016 17:06:26 +1100 Subject: [PATCH] Declare $ as an expression prefix in SCSS * lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an expression prefix (bug#22841). --- 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 40643743b95..93a8dceec18 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -547,6 +547,8 @@ pseudo-classes, and at-rules." (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.39.2