summaryrefslogtreecommitdiff
path: root/runtime/indent/sqlanywhere.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-01-30 14:18:00 +0100
committerBram Moolenaar <Bram@vim.org>2013-01-30 14:18:00 +0100
commita3e6bc93d1a76e0619c27e462b75d8f94969f47d (patch)
treea6b2e21437e673d0cf850343defb8562990a3a8f /runtime/indent/sqlanywhere.vim
parent52f85b730e379c4519b4a9ef1f008417150713f7 (diff)
downloadvim-git-a3e6bc93d1a76e0619c27e462b75d8f94969f47d.tar.gz
Update runtime files.
Diffstat (limited to 'runtime/indent/sqlanywhere.vim')
-rw-r--r--runtime/indent/sqlanywhere.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/indent/sqlanywhere.vim b/runtime/indent/sqlanywhere.vim
index edc9650ad..d11c54b5a 100644
--- a/runtime/indent/sqlanywhere.vim
+++ b/runtime/indent/sqlanywhere.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: SQL
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
-" Last Change: 2012 Dec 05
+" Last Change: 2012 Dec 06
" Version: 3.0
" Download: http://vim.sourceforge.net/script.php?script_id=495
@@ -36,8 +36,6 @@ if exists("b:did_indent")
endif
let b:did_indent = 1
let b:current_indent = "sqlanywhere"
-let s:keepcpo= &cpo
-set cpo&vim
setlocal indentkeys-=0{
setlocal indentkeys-=0}
@@ -57,6 +55,13 @@ setlocal indentkeys+==~end,=~else,=~elseif,=~elsif,0=~when,0=)
" in the indentkeys is typed
setlocal indentexpr=GetSQLIndent()
+" Only define the functions once.
+if exists("*GetSQLIndent")
+ finish
+endif
+let s:keepcpo= &cpo
+set cpo&vim
+
" List of all the statements that start a new block.
" These are typically words that start a line.
" IS is excluded, since it is difficult to determine when the