diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-30 18:54:39 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-30 18:54:39 +0000 |
commit | c9b4b05b3544b434730eb218e848a1a441d5ffb2 (patch) | |
tree | c1550ddf398d2030ed25ee98e8342fcb41ac1c87 /runtime/indent/css.vim | |
parent | aa35dd1667c5903cdcc32ebe10f27bc6683c68a1 (diff) | |
download | vim-git-c9b4b05b3544b434730eb218e848a1a441d5ffb2.tar.gz |
updated for version 7.0gv7.0g
Diffstat (limited to 'runtime/indent/css.vim')
-rw-r--r-- | runtime/indent/css.vim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/runtime/indent/css.vim b/runtime/indent/css.vim index 8c6f114fb..be1c4d73e 100644 --- a/runtime/indent/css.vim +++ b/runtime/indent/css.vim @@ -22,12 +22,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 +45,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) |