annotate runtime/syntax/sql.vim @ 19483:0d3dcb4476ba v8.2.0299

patch 8.2.0299: Vim9: ISN_STORE with argument not tested Commit: https://github.com/vim/vim/commit/8ed04587d3cd53e29be20fde9c36e619ea7da4dc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 22 19:07:28 2020 +0100 patch 8.2.0299: Vim9: ISN_STORE with argument not tested Problem: Vim9: ISN_STORE with argument not tested. Some cases in tv2bool() not tested. Solution: Add tests. Add test_unknown() and test_void().
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Feb 2020 19:15:04 +0100
parents 43efa4f5a8ea
children
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 "
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
13 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 1624
diff changeset
14 if exists("b:current_syntax")
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
15 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
18 " Default to the standard Vim distribution file
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
19 let filename = 'sqloracle'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
21 " Check for overrides. Buffer variables have the highest priority.
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
22 if exists("b:sql_type_override")
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
23 " Check the runtimepath to see if the file exists
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
24 if globpath(&runtimepath, 'syntax/'.b:sql_type_override.'.vim') != ''
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
25 let filename = b:sql_type_override
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
26 endif
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
27 elseif exists("g:sql_type_default")
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
28 if globpath(&runtimepath, 'syntax/'.g:sql_type_default.'.vim') != ''
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
29 let filename = g:sql_type_default
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
30 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
720
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
33 " Source the appropriate file
e180933b876a updated for version 7.0219
vimboss
parents: 619
diff changeset
34 exec 'runtime syntax/'.filename.'.vim'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 856
diff changeset
36 " vim:sw=4: