annotate runtime/syntax/sqloracle.vim @ 5869:373204662d82 v7.4.277

updated for version 7.4.277 Problem: Using ":sign unplace *" may leave the cursor in the wrong position (Christian Brabandt) Solution: Update the cursor position when removing all signs.
author Bram Moolenaar <bram@vim.org>
date Wed, 07 May 2014 16:35:08 +0200
parents e180933b876a
children 17333ebd2bbd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
720
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
1 " Vim syntax file
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
2 " Language: SQL, PL/SQL (Oracle 8i)
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
3 " Maintainer: Paul Moore <pf_moore AT yahoo.co.uk>
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
4 " Last Change: 2005 Dec 23
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
5
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
8 if version < 600
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
9 syntax clear
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
11 finish
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
12 endif
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
13
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
14 syn case ignore
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
15
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
16 " The SQL reserved words, defined as keywords.
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
17
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
18 syn keyword sqlSpecial false null true
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
19
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
20 syn keyword sqlKeyword access add as asc begin by check cluster column
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
21 syn keyword sqlKeyword compress connect current cursor decimal default desc
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
22 syn keyword sqlKeyword else elsif end exception exclusive file for from
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
23 syn keyword sqlKeyword function group having identified if immediate increment
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
24 syn keyword sqlKeyword index initial into is level loop maxextents mode modify
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
25 syn keyword sqlKeyword nocompress nowait of offline on online start
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
26 syn keyword sqlKeyword successful synonym table then to trigger uid
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
27 syn keyword sqlKeyword unique user validate values view whenever
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
28 syn keyword sqlKeyword where with option order pctfree privileges procedure
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
29 syn keyword sqlKeyword public resource return row rowlabel rownum rows
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
30 syn keyword sqlKeyword session share size smallint type using
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
31
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
32 syn keyword sqlOperator not and or
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
33 syn keyword sqlOperator in any some all between exists
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
34 syn keyword sqlOperator like escape
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
35 syn keyword sqlOperator union intersect minus
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
36 syn keyword sqlOperator prior distinct
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
37 syn keyword sqlOperator sysdate out
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
38
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
39 syn keyword sqlStatement alter analyze audit comment commit create
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
40 syn keyword sqlStatement delete drop execute explain grant insert lock noaudit
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
41 syn keyword sqlStatement rename revoke rollback savepoint select set
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
42 syn keyword sqlStatement truncate update
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
43
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
44 syn keyword sqlType boolean char character date float integer long
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
45 syn keyword sqlType mlslabel number raw rowid varchar varchar2 varray
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
46
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
47 " Strings and characters:
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
48 syn region sqlString start=+"+ skip=+\\\\\|\\"+ end=+"+
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
49 syn region sqlString start=+'+ skip=+\\\\\|\\'+ end=+'+
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
50
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
51 " Numbers:
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
52 syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>"
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
53
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
54 " Comments:
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
55 syn region sqlComment start="/\*" end="\*/" contains=sqlTodo
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
56 syn match sqlComment "--.*$" contains=sqlTodo
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
57
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
58 syn sync ccomment sqlComment
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
59
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
60 " Todo.
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
61 syn keyword sqlTodo contained TODO FIXME XXX DEBUG NOTE
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
62
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
63 " Define the default highlighting.
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
64 " For version 5.7 and earlier: only when not done already
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
65 " For version 5.8 and later: only when an item doesn't have highlighting yet
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
66 if version >= 508 || !exists("did_sql_syn_inits")
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
67 if version < 508
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
68 let did_sql_syn_inits = 1
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
69 command -nargs=+ HiLink hi link <args>
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
70 else
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
71 command -nargs=+ HiLink hi def link <args>
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
72 endif
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
73
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
74 HiLink sqlComment Comment
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
75 HiLink sqlKeyword sqlSpecial
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
76 HiLink sqlNumber Number
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
77 HiLink sqlOperator sqlStatement
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
78 HiLink sqlSpecial Special
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
79 HiLink sqlStatement Statement
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
80 HiLink sqlString String
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
81 HiLink sqlType Type
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
82 HiLink sqlTodo Todo
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
83
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
84 delcommand HiLink
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
85 endif
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
86
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
87 let b:current_syntax = "sql"
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
88
e180933b876a updated for version 7.0219
vimboss
parents:
diff changeset
89 " vim: ts=8