Commit 6b1d7115 authored by Simen Heggestøyl's avatar Simen Heggestøyl Committed by Stefan Monnier

* lisp/textmodes/css-mode.el: Handle hyphenated vars

Fixes: debbugs:19263

* lisp/textmodes/css-mode.el (scss-smie--not-interpolation-p): Vars can be
hyphenated.
parent 8c80eb48
2015-02-05 Simen Heggestøyl <simenheg@gmail.com> (tiny change)
2015-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
* textmodes/css-mode.el (scss-smie--not-interpolation-p): Vars can be
hyphenated (bug#19263).
* textmodes/css-mode.el (css-fill-paragraph): Fix filling in presence
of variable interpolation (bug#19751).
......
......@@ -455,7 +455,7 @@
(defun scss-smie--not-interpolation-p ()
(save-excursion
(forward-char -1)
(or (zerop (skip-chars-backward "[:alnum:]"))
(or (zerop (skip-chars-backward "-[:alnum:]"))
(not (looking-back "#{\\$" (- (point) 3))))))
;;;###autoload (add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment