aboutsummaryrefslogtreecommitdiffstats
path: root/src/test.el
diff options
context:
space:
mode:
authorDave Mayo <dave_mayo@harvard.edu>2015-04-10 10:53:00 -0400
committerDave Mayo <dave_mayo@harvard.edu>2015-04-10 10:53:00 -0400
commit69e97b001744d4e227384e5f3e8078b17ccf744c (patch)
treea91a47c945c568f471fbedf6d77497635467284e /src/test.el
parent9324673829f97baacfd5db156a39c08903910ed5 (diff)
downloademmet-mode-69e97b001744d4e227384e5f3e8078b17ccf744c.tar.lz
emmet-mode-69e97b001744d4e227384e5f3e8078b17ccf744c.tar.xz
emmet-mode-69e97b001744d4e227384e5f3e8078b17ccf744c.zip
Refs #61 - Escape using backslash inside { text }
This fixes half the problem specified in #61. The doc change is technically inaccurate - opening brackets don't actually NEED to be escaped - p{{\}} works as well as p{\{\}}. But they CAN be escaped, so I used the most regular version. The part that is NOT fixed is that a | character, escaped or not, will prevent the expression from being parsed AT ALL.
Diffstat (limited to 'src/test.el')
-rw-r--r--src/test.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test.el b/src/test.el
index 75398af..68e50ab 100644
--- a/src/test.el
+++ b/src/test.el
@@ -670,6 +670,8 @@
#'emmet-regression-54-test
'((("span.whut[thing=\"stuff\"]{Huh?}") . "<div class=\"broken\"><span class=\"whut\" thing=\"stuff\">Huh?</span>")))
+(define-emmet-transform-html-test-case regression-61-bracket-escapes
+ "div{\\}\\}\\}}" ("<div>}}}</div>"))
;; start
(emmet-test-cases)