diff options
author | flyingleafe <flyingleafe@gmail.com> | 2014-08-25 03:42:30 +0600 |
---|---|---|
committer | Dave Mayo <pobocks@gmail.com> | 2014-08-24 19:00:56 -0400 |
commit | 73ab96f2a76e23566d410425ba716234d94f8858 (patch) | |
tree | eac33167845e96baadec88a160fe5cde5273136c /emmet-mode.el | |
parent | 8a6a20a28d0805d37676fc548bef32891cbb5431 (diff) | |
download | emmet-mode-73ab96f2a76e23566d410425ba716234d94f8858.tar.lz emmet-mode-73ab96f2a76e23566d410425ba716234d94f8858.tar.xz emmet-mode-73ab96f2a76e23566d410425ba716234d94f8858.zip |
Fixed single quotes in style attr
Diffstat (limited to 'emmet-mode.el')
-rw-r--r-- | emmet-mode.el | 8 |
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)) |