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.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mode-def.el b/src/mode-def.el
index 78c9fa4..7cac58d 100644
--- a/src/mode-def.el
+++ b/src/mode-def.el
@@ -20,9 +20,9 @@
(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)
@@ -81,8 +81,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))