diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-02-09 17:07:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-02-09 17:07:58 +0100 |
commit | d58e929fa283459957b0eab635fdaa9dcd61819c (patch) | |
tree | 92c871586e91c3c33b0a7447f12cc9a6d7184c30 /runtime/indent/css.vim | |
parent | 95474ca34c542d58d3f08703b7d96ad21b05beea (diff) |
Updated runtime files and translations.
Diffstat (limited to 'runtime/indent/css.vim')
-rw-r--r-- | runtime/indent/css.vim | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/runtime/indent/css.vim b/runtime/indent/css.vim index d13c1ad48c..2a09566e1a 100644 --- a/runtime/indent/css.vim +++ b/runtime/indent/css.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: CSS " Maintainer: Nikolai Weibull <now@bitwi.se> -" Latest Revision: 2006-12-20 +" Latest Revision: 2010-12-22 if exists("b:did_indent") finish @@ -64,8 +64,6 @@ function GetCSSIndent() let line = getline(v:lnum) if line =~ '^\s*\*' return cindent(v:lnum) - elseif line =~ '^\s*}' - return indent(v:lnum) - &sw endif let pnum = s:prevnonblanknoncomment(v:lnum - 1) @@ -73,12 +71,6 @@ function GetCSSIndent() return 0 endif - let ind = indent(pnum) + s:count_braces(pnum, 1) * &sw - - let pline = getline(pnum) - if pline =~ '}\s*$' - let ind -= (s:count_braces(pnum, 0) - (pline =~ '^\s*}' ? 1 : 0)) * &sw - endif - - return ind + return indent(pnum) + s:count_braces(pnum, 1) * &sw + \ - s:count_braces(v:lnum, 0) * &sw endfunction |