From 2e365c9573e1da5eb4daf978abd190e7c37f28d7 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 13 Dec 2013 20:22:23 +0900 Subject: [PATCH] Fixes #139 --- autoload/emmet/lang/html.vim | 6 +++++- unittest.vim | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index d861cfd..693032d 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -288,7 +288,11 @@ function! emmet#lang#html#parseIntoTree(abbr, type) let cls = [] for c in range(n[1:]) for cc in cl - let cc.basevalue = c + 1 + if cc.multiplier > 1 + let cc.basedirect = c + 1 + else + let cc.basevalue = c + 1 + endif endfor let cls += deepcopy(cl) endfor diff --git a/unittest.vim b/unittest.vim index 3084914..9274b05 100644 --- a/unittest.vim +++ b/unittest.vim @@ -596,6 +596,10 @@ finish 'query': "dl>(dt{$}+dd)*3", 'result': "
\n\t
1
\n\t
\n\t
2
\n\t
\n\t
3
\n\t
\n
\n", }, + { + 'query': "(div[attr=$]*3)*3", + 'result': "
\n
\n
\n
\n
\n
\n
\n
\n
\n", + }, ], }, ],