aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorflyingleafe <flyingleafe@gmail.com>2014-08-23 01:56:00 +0600
committerflyingleafe <flyingleafe@gmail.com>2014-08-23 01:56:00 +0600
commitcb29171c9a2e26f3119230cc75fcb1531e5e754f (patch)
tree4286dcfe8f76e3e2e5c2889c5db0343dc4fd34a6 /src
parent2265ce69c30e01fe57f8700d83931d769d73dd40 (diff)
downloademmet-mode-cb29171c9a2e26f3119230cc75fcb1531e5e754f.tar.lz
emmet-mode-cb29171c9a2e26f3119230cc75fcb1531e5e754f.tar.xz
emmet-mode-cb29171c9a2e26f3119230cc75fcb1531e5e754f.zip
Added Sass abbrs proper cursor positioning
Diffstat (limited to 'src')
-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)