diff options
author | smihica <smihica@gmail.com> | 2013-04-06 00:16:38 +0900 |
---|---|---|
committer | smihica <smihica@gmail.com> | 2013-04-06 00:17:05 +0900 |
commit | 3d4c9de975da913fefd2d6f4e5f276ea9e03ed26 (patch) | |
tree | 6d533516c1e94313421ba917ccde000b4ffb379d /src | |
parent | a6a5f57bdfa6bcbaa64c5e7088c2882255a5f627 (diff) | |
download | emmet-mode-3d4c9de975da913fefd2d6f4e5f276ea9e03ed26.tar.lz emmet-mode-3d4c9de975da913fefd2d6f4e5f276ea9e03ed26.tar.xz emmet-mode-3d4c9de975da913fefd2d6f4e5f276ea9e03ed26.zip |
Supported a missing pattern like 'prop:${default}'.
Diffstat (limited to 'src')
-rw-r--r-- | src/css-abbrev.el | 2 | ||||
-rw-r--r-- | src/test.el | 3 |
2 files changed, 3 insertions, 2 deletions
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 |