mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 10:57:34 +00:00
* lisp/textmodes/css-mode.el: Handle variable interpolation
Fixes: debbugs:19751 * lisp/textmodes/css-mode.el (css-fill-paragraph): Fix filling in presence of variable interpolation.
This commit is contained in:
parent
6aa04a5570
commit
8c80eb4817
2 changed files with 12 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2015-02-05 Simen Heggestøyl <simenheg@gmail.com> (tiny change)
|
||||
|
||||
* textmodes/css-mode.el (css-fill-paragraph): Fix filling in presence
|
||||
of variable interpolation (bug#19751).
|
||||
|
||||
2015-02-05 Era Eriksson <era+emacs@iki.fi>
|
||||
|
||||
* json.el (json-end-of-file): New error (bug#19768).
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
;;; css-mode.el --- Major mode to edit CSS files -*- lexical-binding: t -*-
|
||||
;;; css-mode.el --- Major mode to edit CSS files -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (C) 2006-2015 Free Software Foundation, Inc.
|
||||
|
||||
|
|
@ -401,11 +401,16 @@
|
|||
(cond
|
||||
;; This is a false positive inside a string or comment.
|
||||
((nth 8 (syntax-ppss)) nil)
|
||||
;; This is a false positive when encountering an
|
||||
;; interpolated variable (bug#19751).
|
||||
((eq (char-before (- (point) 1)) ?#) nil)
|
||||
((eq (char-before) ?\})
|
||||
(save-excursion
|
||||
(forward-char -1)
|
||||
(skip-chars-backward " \t")
|
||||
(unless (bolp) (newline))))
|
||||
(when (and (not (bolp))
|
||||
(scss-smie--not-interpolation-p))
|
||||
(newline))))
|
||||
(t
|
||||
(while
|
||||
(progn
|
||||
|
|
|
|||
Loading…
Reference in a new issue