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