annotate runtime/syntax/sqlforms.vim @ 18424:956a9bc4e25a v8.1.2206

patch 8.1.2206: no test for fixed issue #3893 Commit: https://github.com/vim/vim/commit/28686682e77c0cca963201ae671bd773d86dba31 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 24 15:12:37 2019 +0200 patch 8.1.2206: no test for fixed issue https://github.com/vim/vim/issues/3893 Problem: No test for fixed issue https://github.com/vim/vim/issues/3893. Solution: Add a test. (Christian Brabandt, https://github.com/vim/vim/issues/3893)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Oct 2019 15:15:05 +0200
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: SQL*Forms (Oracle 7), based on sql.vim (vim5.0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Austin Ziegler (austin@halostatue.ca)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 May 11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Prev Change: 19980710
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://www.halostatue.ca/vim/syntax/proc.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " TODO Find a new maintainer who knows SQL*Forms.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
10 " 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
11 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
17 setlocal iskeyword=a-z,A-Z,48-57,_,.,-,>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
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 syntax match sqlTriggers /on-.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syntax match sqlTriggers /key-.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syntax match sqlTriggers /post-.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syntax match sqlTriggers /pre-.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syntax match sqlTriggers /user-.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syntax keyword sqlSpecial null false true
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syntax keyword sqlProcedure abort_query anchor_view bell block_menu break call
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syntax keyword sqlProcedure call_input call_query clear_block clear_eol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syntax keyword sqlProcedure clear_field clear_form clear_record commit_form
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syntax keyword sqlProcedure copy count_query create_record default_value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syntax keyword sqlProcedure delete_record display_error display_field down
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syntax keyword sqlProcedure duplicate_field duplicate_record edit_field
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syntax keyword sqlProcedure enter enter_query erase execute_query
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syntax keyword sqlProcedure execute_trigger exit_form first_Record go_block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syntax keyword sqlProcedure go_field go_record help hide_menu hide_page host
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syntax keyword sqlProcedure last_record list_values lock_record message
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syntax keyword sqlProcedure move_view new_form next_block next_field next_key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syntax keyword sqlProcedure next_record next_set pause post previous_block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syntax keyword sqlProcedure previous_field previous_record print redisplay
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syntax keyword sqlProcedure replace_menu resize_view scroll_down scroll_up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syntax keyword sqlProcedure set_field show_keys show_menu show_page
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syntax keyword sqlProcedure synchronize up user_exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syntax keyword sqlFunction block_characteristic error_code error_text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syntax keyword sqlFunction error_type field_characteristic form_failure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syntax keyword sqlFunction form_fatal form_success name_in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syntax keyword sqlParameters hide no_hide replace no_replace ask_commit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syntax keyword sqlParameters do_commit no_commit no_validate all_records
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syntax keyword sqlParameters for_update no_restrict restrict no_screen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syntax keyword sqlParameters bar full_screen pull_down auto_help auto_skip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syntax keyword sqlParameters fixed_length enterable required echo queryable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syntax keyword sqlParameters updateable update_null upper_case attr_on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syntax keyword sqlParameters attr_off base_table first_field last_field
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syntax keyword sqlParameters datatype displayed display_length field_length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syntax keyword sqlParameters list page primary_key query_length x_pos y_pos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syntax match sqlSystem /system\.block_status/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syntax match sqlSystem /system\.current_block/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syntax match sqlSystem /system\.current_field/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syntax match sqlSystem /system\.current_form/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syntax match sqlSystem /system\.current_value/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syntax match sqlSystem /system\.cursor_block/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syntax match sqlSystem /system\.cursor_field/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syntax match sqlSystem /system\.cursor_record/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syntax match sqlSystem /system\.cursor_value/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syntax match sqlSystem /system\.form_status/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syntax match sqlSystem /system\.last_query/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syntax match sqlSystem /system\.last_record/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syntax match sqlSystem /system\.message_level/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syntax match sqlSystem /system\.record_status/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syntax match sqlSystem /system\.trigger_block/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syntax match sqlSystem /system\.trigger_field/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syntax match sqlSystem /system\.trigger_record/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syntax match sqlSystem /\$\$date\$\$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syntax match sqlSystem /\$\$time\$\$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syntax keyword sqlKeyword accept access add as asc by check cluster column
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syntax keyword sqlKeyword compress connect current decimal default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syntax keyword sqlKeyword desc exclusive file for from group
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syntax keyword sqlKeyword having identified immediate increment index
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syntax keyword sqlKeyword initial into is level maxextents mode modify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syntax keyword sqlKeyword nocompress nowait of offline on online start
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syntax keyword sqlKeyword successful synonym table to trigger uid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syntax keyword sqlKeyword unique user validate values view whenever
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syntax keyword sqlKeyword where with option order pctfree privileges
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syntax keyword sqlKeyword public resource row rowlabel rownum rows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syntax keyword sqlKeyword session share size smallint sql\*forms_version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syntax keyword sqlKeyword terse define form name title procedure begin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syntax keyword sqlKeyword default_menu_application trigger block field
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syntax keyword sqlKeyword enddefine declare exception raise when cursor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syntax keyword sqlKeyword definition base_table pragma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syntax keyword sqlKeyword column_name global trigger_type text description
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syntax match sqlKeyword "<<<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syntax match sqlKeyword ">>>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syntax keyword sqlOperator not and or out to_number to_date message erase
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syntax keyword sqlOperator in any some all between exists substr nvl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syntax keyword sqlOperator exception_init
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syntax keyword sqlOperator like escape trunc lpad rpad sum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syntax keyword sqlOperator union intersect minus to_char greatest
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 syntax keyword sqlOperator prior distinct decode least avg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syntax keyword sqlOperator sysdate true false field_characteristic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syntax keyword sqlOperator display_field call host
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syntax keyword sqlStatement alter analyze audit comment commit create
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syntax keyword sqlStatement delete drop explain grant insert lock noaudit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syntax keyword sqlStatement rename revoke rollback savepoint select set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syntax keyword sqlStatement truncate update if elsif loop then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syntax keyword sqlStatement open fetch close else end
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syntax keyword sqlType char character date long raw mlslabel number rowid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syntax keyword sqlType varchar varchar2 float integer boolean global
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syntax keyword sqlCodes sqlcode no_data_found too_many_rows others
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syntax keyword sqlCodes form_trigger_failure notfound found
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syntax keyword sqlCodes validate no_commit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syntax region sqlComment start="/\*" end="\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syntax match sqlComment "--.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 " Strings and characters:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syntax region sqlString start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syntax region sqlString start=+'+ skip=+\\\\\|\\"+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 " Numbers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syntax match sqlNumber "-\=\<[0-9]*\.\=[0-9_]\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syntax sync ccomment sqlComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
135 hi def link sqlComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
136 hi def link sqlKeyword Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
137 hi def link sqlNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
138 hi def link sqlOperator Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
139 hi def link sqlProcedure Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
140 hi def link sqlFunction Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
141 hi def link sqlSystem Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
142 hi def link sqlSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
143 hi def link sqlStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
144 hi def link sqlString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
145 hi def link sqlType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
146 hi def link sqlCodes Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
147 hi def link sqlTriggers PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 let b:current_syntax = "sqlforms"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 " vim: ts=8 sw=4