7
|
1 " Vim syntax file
|
|
2 " Language: ESQL-C
|
|
3 " Maintainer: Jonathan A. George <jageorge@tel.gte.com>
|
|
4 " Last Change: 2001 May 09
|
|
5
|
|
6 " For version 5.x: Clear all syntax items
|
|
7 " For version 6.x: Quit when a syntax file was already loaded
|
|
8 if version < 600
|
|
9 syntax clear
|
|
10 elseif exists("b:current_syntax")
|
|
11 finish
|
|
12 endif
|
|
13
|
|
14 " Read the C++ syntax to start with
|
|
15 if version < 600
|
|
16 source <sfile>:p:h/cpp.vim
|
|
17 else
|
|
18 runtime! syntax/cpp.vim
|
|
19 endif
|
|
20
|
|
21 " ESQL-C extentions
|
|
22
|
|
23 syntax keyword esqlcPreProc EXEC SQL INCLUDE
|
|
24
|
|
25 syntax case ignore
|
|
26
|
|
27 syntax keyword esqlcPreProc begin end declare section database open execute
|
|
28 syntax keyword esqlcPreProc prepare fetch goto continue found sqlerror work
|
|
29
|
|
30 syntax keyword esqlcKeyword access add as asc by check cluster column
|
|
31 syntax keyword esqlcKeyword compress connect current decimal
|
|
32 syntax keyword esqlcKeyword desc exclusive file from group
|
|
33 syntax keyword esqlcKeyword having identified immediate increment index
|
|
34 syntax keyword esqlcKeyword initial into is level maxextents mode modify
|
|
35 syntax keyword esqlcKeyword nocompress nowait of offline on online start
|
|
36 syntax keyword esqlcKeyword successful synonym table then to trigger uid
|
|
37 syntax keyword esqlcKeyword unique user validate values view whenever
|
|
38 syntax keyword esqlcKeyword where with option order pctfree privileges
|
|
39 syntax keyword esqlcKeyword public resource row rowlabel rownum rows
|
|
40 syntax keyword esqlcKeyword session share size smallint
|
|
41
|
|
42 syntax keyword esqlcOperator not and or
|
|
43 syntax keyword esqlcOperator in any some all between exists
|
|
44 syntax keyword esqlcOperator like escape
|
|
45 syntax keyword esqlcOperator intersect minus
|
|
46 syntax keyword esqlcOperator prior distinct
|
|
47 syntax keyword esqlcOperator sysdate
|
|
48
|
|
49 syntax keyword esqlcStatement alter analyze audit comment commit create
|
|
50 syntax keyword esqlcStatement delete drop explain grant insert lock noaudit
|
|
51 syntax keyword esqlcStatement rename revoke rollback savepoint select set
|
|
52 syntax keyword esqlcStatement truncate update
|
|
53
|
|
54 " Define the default highlighting.
|
|
55 " For version 5.7 and earlier: only when not done already
|
|
56 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
57 if version >= 508 || !exists("did_esqlc_syntax_inits")
|
|
58 if version < 508
|
|
59 let did_esqlc_syntax_inits = 1
|
|
60 command -nargs=+ HiLink hi link <args>
|
|
61 else
|
|
62 command -nargs=+ HiLink hi def link <args>
|
|
63 endif
|
|
64
|
|
65 HiLink esqlcOperator Operator
|
|
66 HiLink esqlcStatement Statement
|
|
67 HiLink esqlcKeyword esqlcSpecial
|
|
68 HiLink esqlcSpecial Special
|
|
69 HiLink esqlcPreProc PreProc
|
|
70
|
|
71 delcommand HiLink
|
|
72 endif
|
|
73
|
|
74 let b:current_syntax = "esqlc"
|
|
75
|