annotate runtime/indent/sql.vim @ 1312:b4b1b5324380 v7.1.026

updated for version 7.1-026
author vimboss
date Tue, 10 Jul 2007 12:03:33 +0000
parents 8cd729851562
children b9740fb41986
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
718
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
1 " Vim indent file loader
856
8cd729851562 updated for version 7.0g
vimboss
parents: 718
diff changeset
2 " Language: SQL
718
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
3 " Maintainer: David Fishburn <fishburn at ianywhere dot com>
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
4 " Last Change: Thu Sep 15 2005 10:27:51 AM
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
5 " Version: 1.0
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
6 " Download: http://vim.sourceforge.net/script.php?script_id=495
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
7
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
8 " Description: Checks for a:
856
8cd729851562 updated for version 7.0g
vimboss
parents: 718
diff changeset
9 " buffer local variable,
8cd729851562 updated for version 7.0g
vimboss
parents: 718
diff changeset
10 " global variable,
718
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
11 " If the above exist, it will source the type specified.
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
12 " If none exist, it will source the default sqlanywhere.vim file.
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
13
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
14
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
15 " Only load this indent file when no other was loaded.
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
16 if exists("b:did_indent")
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
17 finish
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
18 endif
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
19
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
20 " Default to the standard Vim distribution file
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
21 let filename = 'sqlanywhere'
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
22
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
23 " Check for overrides. Buffer variables have the highest priority.
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
24 if exists("b:sql_type_override")
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
25 " Check the runtimepath to see if the file exists
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
26 if globpath(&runtimepath, 'indent/'.b:sql_type_override.'.vim') != ''
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
27 let filename = b:sql_type_override
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
28 endif
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
29 elseif exists("g:sql_type_default")
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
30 if globpath(&runtimepath, 'indent/'.g:sql_type_default.'.vim') != ''
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
31 let filename = g:sql_type_default
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
32 endif
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
33 endif
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
34
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
35 " Source the appropriate file
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
36 exec 'runtime indent/'.filename.'.vim'
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
37
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
38
7b21554be7a1 updated for version 7.0219
vimboss
parents:
diff changeset
39 " vim:sw=4:ff=unix: