annotate runtime/syntax/sql.vim @ 9836:bc591685594a v7.4.2193

commit https://github.com/vim/vim/commit/717e196060d946fe20bb0f0307f417dc4d0e9b17 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 10 21:28:44 2016 +0200 patch 7.4.2193 Problem: With Gnome when the GUI can't start test_startup hangs. Solution: Call gui_mch_early_init_check(). (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Wed, 10 Aug 2016 21:30:07 +0200
parents 18ee39301b82
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
1 " Vim syntax file loader
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
2 " Language: SQL
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
3 " Maintainer: David Fishburn <fishburn at ianywhere dot com>
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
4 " Last Change: Thu Sep 15 2005 10:30:02 AM
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
5 " Version: 1.0
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
7 " Description: Checks for a:
856
8cd729851562 updated for version 7.0g
vimboss
parents: 720
diff changeset
8 " buffer local variable,
8cd729851562 updated for version 7.0g
vimboss
parents: 720
diff changeset
9 " global variable,
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
10 " If the above exist, it will source the type specified.
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
11 " If none exist, it will source the default sql.vim file.
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
12 "
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 if version < 600
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
16 syntax clear
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 elseif exists("b:current_syntax")
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
18 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
21 " Default to the standard Vim distribution file
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
22 let filename = 'sqloracle'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
24 " Check for overrides. Buffer variables have the highest priority.
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
25 if exists("b:sql_type_override")
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
26 " Check the runtimepath to see if the file exists
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
27 if globpath(&runtimepath, 'syntax/'.b:sql_type_override.'.vim') != ''
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
28 let filename = b:sql_type_override
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
29 endif
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
30 elseif exists("g:sql_type_default")
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
31 if globpath(&runtimepath, 'syntax/'.g:sql_type_default.'.vim') != ''
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
32 let filename = g:sql_type_default
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
33 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
36 " Source the appropriate file
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
37 exec 'runtime syntax/'.filename.'.vim'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 856
diff changeset
39 " vim:sw=4: