From 32c9eaf0c6c7bcc1e868e2238869fd8d096ab78f Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 10 Jun 2013 19:36:17 +0900 Subject: [PATCH] Don't use workaround. remove last ; correctly. Fixes #124 --- autoload/zencoding/lang/sass.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/zencoding/lang/sass.vim b/autoload/zencoding/lang/sass.vim index 6b89b89..ef637d0 100644 --- a/autoload/zencoding/lang/sass.vim +++ b/autoload/zencoding/lang/sass.vim @@ -57,8 +57,7 @@ function! zencoding#lang#sass#toString(settings, current, type, inline, filters, let str .= indent . inner else let text = zencoding#lang#css#toString(settings, current, type, inline, filters, itemno, indent) - let text = substitute(text, '\${cursor}', '', 'g') - let text = substitute(text, '\s*;$', '', '') + let text = substitute(text, '\s*;\ze\(\${[^}]\+}\)\?\(\n\|$\)', '', 'g') return text endif return str