aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmihica <smihica@gmail.com>2015-09-25 13:01:42 +0900
committersmihica <smihica@gmail.com>2015-09-25 13:01:42 +0900
commit6aa5e8f48b33488611a274d3f86a85d9b40ba396 (patch)
tree482044e2867056da63bc778cec45750f57da5255
parent983ad460dede6b3cbcf771321dc2fcf5851f6404 (diff)
downloademmet-mode-6aa5e8f48b33488611a274d3f86a85d9b40ba396.tar.lz
emmet-mode-6aa5e8f48b33488611a274d3f86a85d9b40ba396.tar.xz
emmet-mode-6aa5e8f48b33488611a274d3f86a85d9b40ba396.zip
Fixed bug #65
-rw-r--r--emmet-mode.el20
-rw-r--r--src/html-abbrev.el20
-rw-r--r--src/test.el7
3 files changed, 27 insertions, 20 deletions
diff --git a/emmet-mode.el b/emmet-mode.el
index 33a7b42..36929b8 100644
--- a/emmet-mode.el
+++ b/emmet-mode.el
@@ -3153,16 +3153,16 @@ tbl))
(defun emmet-prop-value (name input)
(emmet-pif (emmet-parse "=\"\\(.*?\\)\"" 2
- "=\"property value\""
- (let ((value (elt it 1))
- (input (elt it 2)))
- `((,(read name) ,value) . ,input)))
- it
- (emmet-parse "=\\([^\\,\\+\\>\\{\\}\\ )]*\\)" 2
- "=property value"
- (let ((value (elt it 1))
- (input (elt it 2)))
- `((,(read name) ,value) . ,input)))))
+ "=\"property value\""
+ (let ((value (elt it 1))
+ (input (elt it 2)))
+ `((,(read name) ,(emmet-split-numbering-expressions value)) . ,input)))
+ it
+ (emmet-parse "=\\([^\\,\\+\\>\\{\\}\\ )]*\\)" 2
+ "=property value"
+ (let ((value (elt it 1))
+ (input (elt it 2)))
+ `((,(read name) ,(emmet-split-numbering-expressions value)) . ,input)))))
(defun emmet-tag-classes (tag input)
(let ((tag-data (cadr tag)))
diff --git a/src/html-abbrev.el b/src/html-abbrev.el
index 961ee16..b51e8d9 100644
--- a/src/html-abbrev.el
+++ b/src/html-abbrev.el
@@ -257,16 +257,16 @@
(defun emmet-prop-value (name input)
(emmet-pif (emmet-parse "=\"\\(.*?\\)\"" 2
- "=\"property value\""
- (let ((value (elt it 1))
- (input (elt it 2)))
- `((,(read name) ,value) . ,input)))
- it
- (emmet-parse "=\\([^\\,\\+\\>\\{\\}\\ )]*\\)" 2
- "=property value"
- (let ((value (elt it 1))
- (input (elt it 2)))
- `((,(read name) ,value) . ,input)))))
+ "=\"property value\""
+ (let ((value (elt it 1))
+ (input (elt it 2)))
+ `((,(read name) ,(emmet-split-numbering-expressions value)) . ,input)))
+ it
+ (emmet-parse "=\\([^\\,\\+\\>\\{\\}\\ )]*\\)" 2
+ "=property value"
+ (let ((value (elt it 1))
+ (input (elt it 2)))
+ `((,(read name) ,(emmet-split-numbering-expressions value)) . ,input)))))
(defun emmet-tag-classes (tag input)
(let ((tag-data (cadr tag)))
diff --git a/src/test.el b/src/test.el
index 68e50ab..4677be4 100644
--- a/src/test.el
+++ b/src/test.el
@@ -267,6 +267,13 @@
" <li class=\"item1\">name: item1 price: 1$</li>"
" <li class=\"item2\">name: item2 price: 2$</li>"
" <li class=\"item3\">name: item3 price: 3$</li>"
+ "</ul>")
+
+ "ul>li[id=\"thing-$\"]*3"
+ ("<ul>"
+ " <li id=\"thing-1\"></li>"
+ " <li id=\"thing-2\"></li>"
+ " <li id=\"thing-3\"></li>"
"</ul>"))
(define-emmet-transform-html-test-case Properties