aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode-def.el
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode-def.el')
-rw-r--r--src/mode-def.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mode-def.el b/src/mode-def.el
index ba8ca54..ecf4af3 100644
--- a/src/mode-def.el
+++ b/src/mode-def.el
@@ -230,8 +230,9 @@ See also `emmet-expand-line'."
(length str)))) ; ok, just go to the end
(defun emmet-css-next-insert-point (str)
- (string-match ": *\\(;\\)$" str)
- (or (match-beginning 1) (length str)))
+ (let ((regexp (if emmet-use-sass-syntax ": *\\($\\)" ": *\\(;\\)$")))
+ (string-match regexp str)
+ (or (match-beginning 1) (length str))))
(defvar emmet-flash-ovl nil)
(make-variable-buffer-local 'emmet-flash-ovl)