From eb5afb916d7ac0a6178e5f67e84e445dd760ca83 Mon Sep 17 00:00:00 2001 From: Ron Panduwana Date: Tue, 8 Feb 2011 01:24:47 +0700 Subject: Added support for quoted property value (eg: a onclick="alert('ok');"). --- zencoding-mode.el | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'zencoding-mode.el') diff --git a/zencoding-mode.el b/zencoding-mode.el index b2338d7..609d7b8 100644 --- a/zencoding-mode.el +++ b/zencoding-mode.el @@ -181,15 +181,18 @@ 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)))) + (zencoding-pif (zencoding-parse "=\"\\(.*?\\)\"" 2 + "=\"property value\"" + (let ((value (elt it 1)) + (input (elt it 2))) + `((,(read name) ,value) . ,input))) + it + (zencoding-parse "=\\([^\\,\\+\\>\\ )]*\\)" 2 + "=property value" + (let ((value (elt it 1)) + (input (elt it 2))) + `((,(read name) ,value) . ,input))))) (defun zencoding-tag-classes (tag input) (zencoding-run zencoding-classes -- cgit v1.2.3