From 6577e0e68740b60f768bda3d47fb0efd05944ebb Mon Sep 17 00:00:00 2001 From: mattn Date: Sun, 16 Mar 2014 00:05:57 +0900 Subject: [PATCH] Guard attributes --- autoload/emmet/lang/html.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 07883ce..de6eef7 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -34,7 +34,11 @@ function! emmet#lang#html#findTokens(str) endif let pos = stridx(str, token, pos) + len(token) endwhile - return a:str[last_pos :-1] + let str = a:str[last_pos :-1] + if str =~ '^\w\+="[^"]*$' + return '' + endif + return str endfunction function! emmet#lang#html#parseIntoTree(abbr, type)