From c0175decd3d9f5d5895cf38480754757fb76a0c2 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 6 Aug 2014 15:57:59 +0900 Subject: [PATCH] Fix attribute parse --- autoload/emmet/lang/html.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 7e3962b..0086fa9 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -4,7 +4,7 @@ let s:mx = '\([+>]\|[<^]\+\)\{-}\s*' \ .'\(' \ .'\%(' \ .'\%(#{[{}a-zA-Z0-9_\-\$]\+\|#[a-zA-Z0-9_\-\$]\+\)' -\ .'\|\%(\[\%([a-zA-Z0-9_\-.=]\|"[^"]*"\)\+\]\)' +\ .'\|\%(\[\%("[^"]*"\|[^"\]]*\)\+\]\)' \ .'\|\%(\.{[{}a-zA-Z0-9_\-\$]\+\|\.[a-zA-Z0-9_\-\$]\+\)' \ .'\)*' \ .'\)' @@ -190,8 +190,10 @@ function! emmet#lang#html#parseIntoTree(abbr, type) if len(attributes) let attr = attributes while len(attr) - let item = matchstr(attr, '\(\%(\%(#[{}a-zA-Z0-9_\-\$]\+\)\|\%(\[\%([a-zA-Z0-9_\-.=]\|"[^"]*"\)\+\]\)\|\%(\.[{}a-zA-Z0-9_\-\$]\+\)*\)\)') - echomsg item + let item = matchstr(attr, '\(\%(\%(#[{}a-zA-Z0-9_\-\$]\+\)\|\%(\[\%("[^"]*"\|[^"\]]*\)\+\]\)\|\%(\.[{}a-zA-Z0-9_\-\$]\+\)*\)\)') + if g:emmet_debug > 1 + echomsg "attr=" . item + endif if len(item) == 0 break endif