From 3d4c9de975da913fefd2d6f4e5f276ea9e03ed26 Mon Sep 17 00:00:00 2001 From: smihica Date: Sat, 6 Apr 2013 00:16:38 +0900 Subject: Supported a missing pattern like 'prop:${default}'. --- src/css-abbrev.el | 2 +- src/test.el | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/css-abbrev.el b/src/css-abbrev.el index 72021ad..7deb427 100644 --- a/src/css-abbrev.el +++ b/src/css-abbrev.el @@ -106,7 +106,7 @@ (let ((rt '(concat)) (idx-max 0)) (loop for i from 0 to 255 do (zencoding-aif - (string-match "\\(?:|\\|${\\([0-9]\\)\\(?::\\(.+?\\)\\|\\)}\\)" str) + (string-match "\\(?:|\\|${\\(?:\\([0-9]\\):\\|\\)\\(?:\\(.+?\\)\\|\\)}\\)" str) (destructuring-bind (mat idx def) (mapcar (lambda (ref) (match-string ref str)) '(0 1 2)) (setf rt diff --git a/src/test.el b/src/test.el index f7b7889..3dae692 100644 --- a/src/test.el +++ b/src/test.el @@ -474,7 +474,8 @@ "padding:0px 1% 2em 3ex;") "p!+m10e!+f" ("padding: !important;" "margin:10em !important;" - "font:;")) + "font:;") + "fs" ("font-style:italic;")) ;; start (zencoding-test-cases) \ No newline at end of file -- cgit v1.2.3