From: Simen Date: Mon, 29 Feb 2016 06:03:39 +0000 (+1100) Subject: Declare $ as an expression prefix in SCSS X-Git-Tag: emacs-26.0.90~2433 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ffb33264f21e8af60b8055c47baffcf0f6c300df;p=emacs.git Declare $ as an expression prefix in SCSS * lisp/textmodes/css-mode.el (scss-mode-syntax-table): Declare $ as an expression prefix (bug#22841). --- 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