annotate runtime/syntax/stp.vim @ 19738:0208534b8a84 v8.2.0425

patch 8.2.0425: code for modeless selection not sufficiently tested Commit: https://github.com/vim/vim/commit/515545e11f523d14343b1e588dc0b9bd3d362bc2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 22 14:08:59 2020 +0100 patch 8.2.0425: code for modeless selection not sufficiently tested Problem: Code for modeless selection not sufficiently tested. Solution: Add tests. Move mouse code functionality to a common script file. (Yegappan Lakshmanan, closes #5821)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Mar 2020 14:15:04 +0100
parents 46763b01cd9a
children
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: Stored Procedures (STP)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Jeff Lanzarotta (jefflanzarotta@yahoo.com)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://lanzarotta.tripod.com/vim/syntax/stp.vim.zip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: March 05, 2002
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
7 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
8 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Specials.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword stpSpecial null
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Keywords.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword stpKeyword begin break call case create deallocate dynamic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword stpKeyword execute from function go grant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword stpKeyword index insert into leave max min on output procedure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword stpKeyword public result return returns scroll table to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword stpKeyword when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match stpKeyword "\<end\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Conditional.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword stpConditional if else elseif then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match stpConditional "\<end\s\+if\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Repeats.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword stpRepeat for while loop
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match stpRepeat "\<end\s\+loop\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Operators.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword stpOperator asc not and or desc group having in is any some all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword stpOperator between exists like escape with union intersect minus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword stpOperator out prior distinct sysdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Statements.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword stpStatement alter analyze as audit avg by close clustered comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword stpStatement commit continue count create cursor declare delete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword stpStatement drop exec execute explain fetch from index insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword stpStatement into lock max min next noaudit nonclustered open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword stpStatement order output print raiserror recompile rename revoke
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword stpStatement rollback savepoint select set sum transaction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword stpStatement truncate unique update values where
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Functions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword stpFunction abs acos ascii asin atan atn2 avg ceiling charindex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword stpFunction charlength convert col_name col_length cos cot count
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword stpFunction curunreservedpgs datapgs datalength dateadd datediff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword stpFunction datename datepart db_id db_name degree difference
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword stpFunction exp floor getdate hextoint host_id host_name index_col
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword stpFunction inttohex isnull lct_admin log log10 lower ltrim max
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword stpFunction min now object_id object_name patindex pi pos power
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword stpFunction proc_role radians rand replace replicate reserved_pgs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword stpFunction reverse right rtrim rowcnt round show_role sign sin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword stpFunction soundex space sqrt str stuff substr substring sum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword stpFunction suser_id suser_name tan tsequal upper used_pgs user
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword stpFunction user_id user_name valid_name valid_user message
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Types.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword stpType binary bit char datetime decimal double float image
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword stpType int integer long money nchar numeric precision real
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword stpType smalldatetime smallint smallmoney text time tinyint
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword stpType timestamp varbinary varchar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " Globals.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match stpGlobals '@@char_convert'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match stpGlobals '@@cient_csname'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match stpGlobals '@@client_csid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn match stpGlobals '@@connections'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn match stpGlobals '@@cpu_busy'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn match stpGlobals '@@error'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match stpGlobals '@@identity'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match stpGlobals '@@idle'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn match stpGlobals '@@io_busy'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match stpGlobals '@@isolation'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match stpGlobals '@@langid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match stpGlobals '@@language'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match stpGlobals '@@max_connections'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match stpGlobals '@@maxcharlen'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn match stpGlobals '@@ncharsize'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match stpGlobals '@@nestlevel'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match stpGlobals '@@pack_received'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match stpGlobals '@@pack_sent'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match stpGlobals '@@packet_errors'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match stpGlobals '@@procid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match stpGlobals '@@rowcount'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match stpGlobals '@@servername'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn match stpGlobals '@@spid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn match stpGlobals '@@sqlstatus'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn match stpGlobals '@@testts'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn match stpGlobals '@@textcolid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match stpGlobals '@@textdbid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn match stpGlobals '@@textobjid'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn match stpGlobals '@@textptr'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn match stpGlobals '@@textsize'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn match stpGlobals '@@thresh_hysteresis'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn match stpGlobals '@@timeticks'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn match stpGlobals '@@total_error'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn match stpGlobals '@@total_read'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn match stpGlobals '@@total_write'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match stpGlobals '@@tranchained'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syn match stpGlobals '@@trancount'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match stpGlobals '@@transtate'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match stpGlobals '@@version'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " Todos.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword stpTodo TODO FIXME XXX DEBUG NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 " Strings and characters.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match stpStringError "'.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn match stpString "'\([^']\|''\)*'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 " Numbers.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn match stpNumber "-\=\<\d*\.\=[0-9_]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 " Comments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn region stpComment start="/\*" end="\*/" contains=stpTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn match stpComment "--.*" contains=stpTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn sync ccomment stpComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 " Parens.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn region stpParen transparent start='(' end=')' contains=ALLBUT,stpParenError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn match stpParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 " Syntax Synchronizing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn sync minlines=10 maxlines=100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
131 " Only when and item doesn't have highlighting yet.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
133 hi def link stpConditional Conditional
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
134 hi def link stpComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
135 hi def link stpKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
136 hi def link stpNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
137 hi def link stpOperator Operator
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
138 hi def link stpSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
139 hi def link stpStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
140 hi def link stpString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
141 hi def link stpStringError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
142 hi def link stpType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
143 hi def link stpTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
144 hi def link stpFunction Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
145 hi def link stpGlobals Macro
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
146 hi def link stpParen Normal
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
147 hi def link stpParenError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
148 hi def link stpSQLKeyword Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
149 hi def link stpRepeat Repeat
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 let b:current_syntax = "stp"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 " vim ts=8 sw=2