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.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mode-def.el b/src/mode-def.el
index 0181baa..2bba6ec 100644
--- a/src/mode-def.el
+++ b/src/mode-def.el
@@ -19,12 +19,14 @@
"Find the left bound of an emmet expr"
(save-excursion (save-match-data
(let ((char (char-before))
- (in-style-attr (looking-back "style=[\"'][^\"']*")))
+ (in-style-attr (looking-back "style=[\"'][^\"']*"))
+ (syn-tab (make-syntax-table)))
+ (modify-syntax-entry ?\\ "\\")
(while char
(cond ((and in-style-attr (member char '(?\" ?\')))
(setq char nil))
((member char '(?\} ?\] ?\)))
- (with-syntax-table (standard-syntax-table)
+ (with-syntax-table syn-tab
(backward-sexp) (setq char (char-before))))
((eq char ?\>)
(if (looking-back "<[^>]+>" (line-beginning-position))