From baf93870893be37e4f214963bdb31659d7514af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= Date: Fri, 16 Jun 2017 20:19:56 +0200 Subject: [PATCH] WIP: Make css--complete-property-value less eager --- lisp/textmodes/css-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 0beaaaa32f..3c3c38afc9 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -1292,7 +1292,8 @@ css--complete-property-value (let ((property-end (point))) (skip-chars-backward "-[:alnum:]") (let ((property (buffer-substring (point) property-end))) - (car (member property css-property-ids))))))) + (and (eq (char-after property-end) ?:) + (car (member property css-property-ids)))))))) (when property (let ((end (point))) (save-excursion -- 2.11.0