summaryrefslogtreecommitdiffstats
path: root/runtime/indent
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-05-10 18:19:11 +0000
committerBram Moolenaar <Bram@vim.org>2007-05-10 18:19:11 +0000
commit2c7a763832663d5878ff37a58c81fbe95527084a (patch)
treede001b1fcec1cf19bd23211eaa6dde7a0701c13b /runtime/indent
parent720c710091ba23dcbfca46766d87b4bb57dbc892 (diff)
updated for version 7.1b
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/tcl.vim15
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/indent/tcl.vim b/runtime/indent/tcl.vim
index 5a5aa1db6e..a92f57d67d 100644
--- a/runtime/indent/tcl.vim
+++ b/runtime/indent/tcl.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: Tcl
" 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=GetTclIndent()
setlocal indentkeys=0{,0},!^F,o,O,0]
+setlocal nosmartindent
if exists("*GetTclIndent")
finish
@@ -36,13 +37,13 @@ function s:count_braces(lnum, count_open)
while i != -1
if synIDattr(synID(a:lnum, i + 1, 0), 'name') !~ 'tcl\%(Comment\|String\)'
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)