Mercurial > vim
annotate runtime/syntax/sql.vim @ 21642:5ae89c8633ae v8.2.1371
patch 8.2.1371: Vim9: no error for missing white space around operator
Commit: https://github.com/vim/vim/commit/3c1c9fd94bc80871119a8519f3b881595082a6c0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 5 12:32:38 2020 +0200
patch 8.2.1371: Vim9: no error for missing white space around operator
Problem: Vim9: no error for missing white space around operator.
Solution: Check for white space around && and ||.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Aug 2020 12:45:03 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
720 | 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 | |
7 | 6 |
720 | 7 " Description: Checks for a: |
856 | 8 " buffer local variable, |
9 " global variable, | |
720 | 10 " If the above exist, it will source the type specified. |
11 " If none exist, it will source the default sql.vim file. | |
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 | 15 finish |
7 | 16 endif |
17 | |
720 | 18 " Default to the standard Vim distribution file |
19 let filename = 'sqloracle' | |
7 | 20 |
720 | 21 " Check for overrides. Buffer variables have the highest priority. |
22 if exists("b:sql_type_override") | |
23 " Check the runtimepath to see if the file exists | |
24 if globpath(&runtimepath, 'syntax/'.b:sql_type_override.'.vim') != '' | |
25 let filename = b:sql_type_override | |
26 endif | |
27 elseif exists("g:sql_type_default") | |
28 if globpath(&runtimepath, 'syntax/'.g:sql_type_default.'.vim') != '' | |
29 let filename = g:sql_type_default | |
30 endif | |
7 | 31 endif |
32 | |
720 | 33 " Source the appropriate file |
34 exec 'runtime syntax/'.filename.'.vim' | |
7 | 35 |
1624 | 36 " vim:sw=4: |