1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-05 20:43:08 +00:00

Complete property values in multi-line CSS declarations

* lisp/textmodes/css-mode.el (css--complete-property-value): Complete
property values even when preceded by a newline (bug#44214).
This commit is contained in:
Simen Heggestøyl 2020-10-26 10:01:44 +01:00 committed by Simen Heggestøyl
parent 608c821716
commit d34082671a

View File

@ -1357,7 +1357,9 @@ the string PROPERTY."
(defun css--complete-property-value ()
"Complete property value at point."
(let ((property (and (looking-back "\\([[:alnum:]-]+\\):[^/][^;]*"
(line-beginning-position) t)
(or (ppss-innermost-start (syntax-ppss))
(point-min))
t)
(member (match-string-no-properties 1)
css-property-ids))))
(when property