|
From: | Simen Heggestøyl |
Subject: | bug#44214: 28.0.50; css-mode: no completion in declaration with newline after |
Date: | Mon, 26 Oct 2020 10:24:30 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
This seems sufficient to me. Would you like to test it out? diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 0d1eeed561..748a561bab 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -1357,7 +1357,9 @@ css--property-values (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
[Prev in Thread] | Current Thread | [Next in Thread] |