annotate runtime/ftplugin/sql.vim @ 100:1f3902f3eb5c v7.0038

updated for version 7.0038
author vimboss
date Fri, 14 Jan 2005 21:53:12 +0000
parents 3fc0f57ecb91
children c93c9cad9618
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Version: 0.02
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: David Fishburn <fishburn@ianywhere.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: Tue May 27 2003 09:33:31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " This file should only contain values that are common to all SQL languages
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Oracle, Microsoft SQL Server, Sybase ASA/ASE, MySQL, and so on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " If additional features are required create:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " vimfiles/after/ftplugin/sql.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " to override and add any of your own settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Define patterns for the matchit macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 if !exists("b:match_words")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " SQL is generally case insensitive
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let b:match_ignorecase = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 let b:match_words =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 \ '\<begin\>:\<end\>\(;\)\?$,'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 \ '\<if\>:\<elsif\>:\<elseif\>:\<else\>:'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 \ '\%(\<end\s\+\)\@<!' . '\<if\>:\<end\s\+if\>,'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 \ '\<loop\>:\<break\>:\<continue\>:'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \ '\%(\<end\s\+\)\@<!' . '\<loop\>:\<end\s\+loop\>,'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 \ '\<for\>:\<break\>:\<continue\>:'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \ '\%(\<end\s\+\)\@<!' . '\<for\>:\<end\s\+for\>,'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \ '\<case\>:\<when\>:\<default\>:'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 \ '\%(\<end\s\+\)\@<!' . '\<case\>:\<end\s\+case\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 endif