3 " Maintainer: Jonathan A. George <jageorge@tel.gte.com>
4 " Last Change: 2001 May 09
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
14 " Read the C++ syntax to start with
16 source <sfile>:p:h/cpp.vim
18 runtime! syntax/cpp.vim
23 syntax keyword esqlcPreProc EXEC SQL INCLUDE
27 syntax keyword esqlcPreProc begin end declare section database open execute
28 syntax keyword esqlcPreProc prepare fetch goto continue found sqlerror work
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
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
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
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")
59 let did_esqlc_syntax_inits = 1
60 command -nargs=+ HiLink hi link <args>
62 command -nargs=+ HiLink hi def link <args>
65 HiLink esqlcOperator Operator
66 HiLink esqlcStatement Statement
67 HiLink esqlcKeyword esqlcSpecial
68 HiLink esqlcSpecial Special
69 HiLink esqlcPreProc PreProc
74 let b:current_syntax = "esqlc"