aboutsummaryrefslogtreecommitdiffstats
path: root/emmet-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'emmet-mode.el')
-rw-r--r--emmet-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/emmet-mode.el b/emmet-mode.el
index 991c68e..2b4ddf7 100644
--- a/emmet-mode.el
+++ b/emmet-mode.el
@@ -3509,9 +3509,9 @@ tbl))
(save-excursion (save-match-data
(let ((char (char-before))
(last-gt (point))
- (in-style-attr (looking-back "style=\"[^\"]*")))
+ (in-style-attr (looking-back "style=[\"'][^\"']*")))
(while char
- (cond ((and in-style-attr (eq char ?\"))
+ (cond ((and in-style-attr (member char '(?\" ?\')))
(setq char nil))
((member char '(?\} ?\] ?\)))
(with-syntax-table (standard-syntax-table)
@@ -3570,8 +3570,8 @@ e. g. without semicolons")
new-pos))))))
(defun emmet-detect-style-tag-and-attr ()
- (let* ((qt "\"")
- (not-qt (format "[^%s]" qt))
+ (let* ((qt "[\"']")
+ (not-qt "[^\"']")
(everything "\\(.\\|\n\\)*"))
(or
(and (looking-at (format "%s*%s" not-qt qt))