diff options
-rw-r--r-- | emmet-mode.el | 5 | ||||
-rw-r--r-- | src/mode-def.el | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/emmet-mode.el b/emmet-mode.el index 75012cf..193c20f 100644 --- a/emmet-mode.el +++ b/emmet-mode.el @@ -3719,8 +3719,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) 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) |