annotate runtime/syntax/sql.vim @ 49:000769ce6c9d default tip

Added tag v7-3-618 for changeset 67300faee616
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:37 +0900
parents e170173ecb68
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file loader
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: SQL
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: David Fishburn <fishburn at ianywhere dot com>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " Last Change: Thu Sep 15 2005 10:30:02 AM
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 " Version: 1.0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 " Description: Checks for a:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 " buffer local variable,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 " global variable,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 " If the above exist, it will source the type specified.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 " If none exist, it will source the default sql.vim file.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 "
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 if version < 600
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 syntax clear
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 elseif exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 " Default to the standard Vim distribution file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 let filename = 'sqloracle'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 " Check for overrides. Buffer variables have the highest priority.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 if exists("b:sql_type_override")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 " Check the runtimepath to see if the file exists
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 if globpath(&runtimepath, 'syntax/'.b:sql_type_override.'.vim') != ''
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 let filename = b:sql_type_override
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 elseif exists("g:sql_type_default")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 if globpath(&runtimepath, 'syntax/'.g:sql_type_default.'.vim') != ''
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 let filename = g:sql_type_default
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 " Source the appropriate file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 exec 'runtime syntax/'.filename.'.vim'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
39 " vim:sw=4: