annotate runtime/syntax/sqlj.vim @ 15042:e95e8b356a65 v8.1.0532

patch 8.1.0532: cannot distinguish between quickfix and location list commit https://github.com/vim/vim/commit/2d67d307ee5dba911e8fbe73193bf596ebf76c1a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 16 18:46:02 2018 +0100 patch 8.1.0532: cannot distinguish between quickfix and location list Problem: Cannot distinguish between quickfix and location list. Solution: Add an explicit type variable. (Yegappan Lakshmanan)
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Nov 2018 19:00:04 +0100
parents 46763b01cd9a
children d46f974fd69e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: sqlj
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Andreas Fischbach <afisch@altavista.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " This file is based on sql.vim && java.vim (thanx)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " with a handful of additional sql words and still
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " a subset of whatever standard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Last change: 31th Dec 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " au BufNewFile,BufRead *.sqlj so $VIM/syntax/sqlj.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
11 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
12 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Read the Java syntax to start with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 source <sfile>:p:h/java.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " SQLJ extentions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " The SQL reserved words, defined as keywords.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword sqljSpecial null
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword sqljKeyword access add as asc by check cluster column
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword sqljKeyword compress connect current decimal default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword sqljKeyword desc else exclusive file for from group
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword sqljKeyword having identified immediate increment index
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword sqljKeyword initial into is level maxextents mode modify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword sqljKeyword nocompress nowait of offline on online start
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword sqljKeyword successful synonym table then to trigger uid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword sqljKeyword unique user validate values view whenever
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword sqljKeyword where with option order pctfree privileges
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword sqljKeyword public resource row rowlabel rownum rows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword sqljKeyword session share size smallint
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword sqljKeyword fetch database context iterator field join
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword sqljKeyword foreign outer inner isolation left right
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword sqljKeyword match primary key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword sqljOperator not and or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword sqljOperator in any some all between exists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword sqljOperator like escape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword sqljOperator union intersect minus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword sqljOperator prior distinct
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword sqljOperator sysdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword sqljOperator max min avg sum count hex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword sqljStatement alter analyze audit comment commit create
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword sqljStatement delete drop explain grant insert lock noaudit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword sqljStatement rename revoke rollback savepoint select set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword sqljStatement truncate update begin work
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword sqljType char character date long raw mlslabel number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword sqljType rowid varchar varchar2 float integer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword sqljType byte text serial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Strings and characters:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn region sqljString start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn region sqljString start=+'+ skip=+\\\\\|\\"+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " Numbers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match sqljNumber "-\=\<\d*\.\=[0-9_]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match sqljPre "#sql"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn region sqljComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match sqlComment "--.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn sync ccomment sqljComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
78 " The default methods for highlighting. Can be overridden later.
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
79 hi def link sqljComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
80 hi def link sqljKeyword sqljSpecial
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link sqljNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
82 hi def link sqljOperator sqljStatement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link sqljSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
84 hi def link sqljStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link sqljString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
86 hi def link sqljType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link sqljPre PreProc
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 7
diff changeset
88
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 let b:current_syntax = "sqlj"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91