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