diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-05-10 16:50:23 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-05-10 16:50:23 +0000 |
commit | f1dc4965b51903f1235c4d1145c57ada40c517aa (patch) | |
tree | 41fdbebdb77854610049f1835d012e3ced68f326 /runtime/indent/css.vim | |
parent | f711faf099d628a29503e91381294c02dcd9f800 (diff) |
updated for version 7.1b
Diffstat (limited to 'runtime/indent/css.vim')
-rw-r--r-- | runtime/indent/css.vim | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/runtime/indent/css.vim b/runtime/indent/css.vim index be1c4d73ec..d13c1ad48c 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-04-19 +" Latest Revision: 2006-12-20 if exists("b:did_indent") finish @@ -10,6 +10,7 @@ let b:did_indent = 1 setlocal indentexpr=GetCSSIndent() setlocal indentkeys=0{,0},!^F,o,O +setlocal nosmartindent if exists("*GetCSSIndent") finish @@ -22,12 +23,12 @@ function s:prevnonblanknoncomment(lnum) let line = getline(lnum) if line =~ '\*/' while lnum > 1 && line !~ '/\*' - let lnum -= 1 + let lnum -= 1 endwhile if line =~ '^\s*/\*' - let lnum -= 1 + let lnum -= 1 else - break + break endif else break @@ -45,13 +46,13 @@ function s:count_braces(lnum, count_open) while i != -1 if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~ 'css\%(Comment\|StringQ\{1,2}\)' if line[i] == '{' - let n_open += 1 + let n_open += 1 elseif line[i] == '}' - if n_open > 0 - let n_open -= 1 - else - let n_close += 1 - endif + if n_open > 0 + let n_open -= 1 + else + let n_close += 1 + endif endif endif let i = match(line, pattern, i + 1) |