aboutsummaryrefslogtreecommitdiffstats
path: root/zencoding-mode.el
diff options
context:
space:
mode:
authorRon Panduwana <panduwana@gmail.com>2011-02-07 21:38:48 +0700
committerRon Panduwana <panduwana@gmail.com>2011-02-07 21:38:48 +0700
commitb87a14723ffa8f94c095ec70647d8222c9957004 (patch)
treec7f319d9088453f1dc1ca337642e145b518f632b /zencoding-mode.el
parentfe6eb52fb2e5a18c9409b4e1e7e23f49a637f807 (diff)
downloademmet-mode-b87a14723ffa8f94c095ec70647d8222c9957004.tar.lz
emmet-mode-b87a14723ffa8f94c095ec70647d8222c9957004.tar.xz
emmet-mode-b87a14723ffa8f94c095ec70647d8222c9957004.zip
Allowed empty prop
Diffstat (limited to 'zencoding-mode.el')
-rw-r--r--zencoding-mode.el18
1 files changed, 13 insertions, 5 deletions
diff --git a/zencoding-mode.el b/zencoding-mode.el
index 0ea5b64..b2338d7 100644
--- a/zencoding-mode.el
+++ b/zencoding-mode.el
@@ -177,11 +177,19 @@
(zencoding-run
zencoding-name
(let ((name (cdr expr)))
- (zencoding-parse "=\\([^\\,\\+\\>\\ )]*\\)" 2
- "=property value"
- (let ((value (elt it 1))
- (input (elt it 2)))
- `((,(read name) ,value) . ,input)))))))
+ (zencoding-pif (zencoding-prop-value name input)
+ it
+ `((,(read name) "") . ,input))))))
+
+
+
+(defun zencoding-prop-value (name input)
+ (zencoding-parse "=\\([^\\,\\+\\>\\ )]*\\)" 2
+ "=property value"
+ (let ((value (elt it 1))
+ (input (elt it 2)))
+ (message value)
+ `((,(read name) ,value) . ,input))))
(defun zencoding-tag-classes (tag input)
(zencoding-run zencoding-classes