From a765fe7b82aaa5f4fe0e98564577b6c09e88ac0c Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 25 Oct 2013 22:57:42 +0900 Subject: [PATCH] imageSize for css. related issue #155 --- autoload/emmet/lang/css.vim | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/autoload/emmet/lang/css.vim b/autoload/emmet/lang/css.vim index ceff2a5..ea04fb7 100644 --- a/autoload/emmet/lang/css.vim +++ b/autoload/emmet/lang/css.vim @@ -160,11 +160,33 @@ function! emmet#lang#css#toString(settings, current, type, inline, filters, item endfunction function! emmet#lang#css#imageSize() - "let img_region = emmet#util#searchRegion('url(', ')') - "if !emmet#util#regionIsValid(img_region) || !emmet#util#cursorInRegion(img_region) - " return - "endif - "let content = emmet#util#getContent(img_region) + let img_region = emmet#util#searchRegion('{', '}') + if !emmet#util#regionIsValid(img_region) || !emmet#util#cursorInRegion(img_region) + return + endif + let content = emmet#util#getContent(img_region) + let fn = matchstr(content, '\