annotate runtime/syntax/sqr.vim @ 3427:3db4282d5e6b v7.3.479

updated for version 7.3.479 Problem: When 'cursorline' is set the line number highlighting can't be set separately. Solution: Add "CursorLineNr". (Howard Buchholz)
author Bram Moolenaar <bram@vim.org>
date Fri, 23 Mar 2012 16:25:17 +0100
parents 37ecb8ff4560
children 43efa4f5a8ea
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: Structured Query Report Writer (SQR)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Nathan Stratton Treadway (nathanst at ontko dot com)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.ontko.com/sqr/#editor_config_files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Modification History:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " 2002-Apr-12: Updated for SQR v6.x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " 2002-Jul-30: Added { and } to iskeyword definition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " 2003-Oct-15: Allow "." in variable names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " highlight entire open '... literal when it contains
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " "''" inside it (e.g. "'I can''t say" is treated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " as one open string, not one terminated and one open)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " {} variables can occur inside of '...' literals
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Thanks to the previous maintainer of this file, Jeff Lanzarotta:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " http://lanzarotta.tripod.com/vim.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " jefflanzarotta at yahoo dot com
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " For version 5.x, clear all syntax items.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " For version 6.x, quit when a syntax file was already loaded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 setlocal iskeyword=@,48-57,_,-,#,$,{,}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 set iskeyword=@,48-57,_,-,#,$,{,}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " BEGIN GENERATED SECTION ============================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Generated by generate_vim_syntax.sqr at 2002/04/11 13:04
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " (based on the UltraEdit syntax file for SQR 6.1.4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " found at http://www.ontko.com/sqr/#editor_config_files )
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword sqrSection begin-footing begin-heading begin-procedure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword sqrSection begin-program begin-report begin-setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword sqrSection end-footing end-heading end-procedure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword sqrSection end-program end-report end-setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
46 syn keyword sqrParagraph alter-color-map alter-connection
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword sqrParagraph alter-locale alter-printer alter-report
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword sqrParagraph begin-document begin-execute begin-select
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword sqrParagraph begin-sql declare-chart declare-image
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
50 syn keyword sqrParagraph declare-color-map declare-connection
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword sqrParagraph declare-layout declare-printer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword sqrParagraph declare-report declare-procedure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword sqrParagraph declare-toc declare-variable end-declare
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword sqrParagraph end-document end-select exit-select end-sql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword sqrParagraph load-lookup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword sqrReserved #current-column #current-date #current-line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword sqrReserved #end-file #page-count #return-status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword sqrReserved #sql-count #sql-status #sqr-max-columns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword sqrReserved #sqr-max-lines #sqr-pid #sqr-toc-level
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword sqrReserved #sqr-toc-page $sqr-database {sqr-database}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword sqrReserved $sqr-dbcs {sqr-dbcs} $sqr-encoding
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword sqrReserved {sqr-encoding} $sqr-encoding-console
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword sqrReserved {sqr-encoding-console}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword sqrReserved $sqr-encoding-database
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword sqrReserved {sqr-encoding-database}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword sqrReserved $sqr-encoding-file-input
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn keyword sqrReserved {sqr-encoding-file-input}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn keyword sqrReserved $sqr-encoding-file-output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn keyword sqrReserved {sqr-encoding-file-output}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword sqrReserved $sqr-encoding-report-input
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn keyword sqrReserved {sqr-encoding-report-input}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword sqrReserved $sqr-encoding-report-output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword sqrReserved {sqr-encoding-report-output}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword sqrReserved $sqr-encoding-source {sqr-encoding-source}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 syn keyword sqrReserved $sql-error $sqr-hostname {sqr-hostname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn keyword sqrReserved $sqr-locale $sqr-platform {sqr-platform}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn keyword sqrReserved $sqr-program $sqr-report $sqr-toc-text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword sqrReserved $sqr-ver $username
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn keyword sqrPreProc #define #else #end-if #endif #if #ifdef
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword sqrPreProc #ifndef #include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword sqrCommand add array-add array-divide array-multiply
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn keyword sqrCommand array-subtract ask break call clear-array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn keyword sqrCommand close columns commit concat connect
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn keyword sqrCommand create-array create-color-palette date-time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword sqrCommand display divide do dollar-symbol else encode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn keyword sqrCommand end-evaluate end-if end-while evaluate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword sqrCommand execute extract find get get-color goto
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword sqrCommand graphic if input last-page let lookup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword sqrCommand lowercase mbtosbs money-symbol move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 syn keyword sqrCommand multiply new-page new-report next-column
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword sqrCommand next-listing no-formfeed open page-number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword sqrCommand page-size position print print-bar-code
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword sqrCommand print-chart print-direct print-image
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword sqrCommand printer-deinit printer-init put read
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 syn keyword sqrCommand rollback security set-color set-delay-print
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword sqrCommand set-generations set-levels set-members
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword sqrCommand sbtombs show stop string subtract toc-entry
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword sqrCommand unstring uppercase use use-column
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword sqrCommand use-printer-type use-procedure use-report
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword sqrCommand while write
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword sqrParam 3d-effects after after-bold after-page
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn keyword sqrParam after-report after-toc and as at-end before
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword sqrParam background batch-mode beep before-bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword sqrParam before-page before-report before-toc blink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn keyword sqrParam bold border bottom-margin box break by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword sqrParam caption center char char-size char-width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword sqrParam chars-inch chart-size checksum cl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword sqrParam clear-line clear-screen color color-palette
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword sqrParam cs color_ data-array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 syn keyword sqrParam data-array-column-count
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword sqrParam data-array-column-labels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword sqrParam data-array-row-count data-labels date
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 syn keyword sqrParam date-edit-mask date-seperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn keyword sqrParam day-of-week-case day-of-week-full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword sqrParam day-of-week-short decimal decimal-seperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword sqrParam default-numeric delay distinct dot-leader
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 syn keyword sqrParam edit-option-ad edit-option-am
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword sqrParam edit-option-bc edit-option-na
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 syn keyword sqrParam edit-option-pm encoding entry erase-page
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn keyword sqrParam extent field fill fixed fixed_nolf float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword sqrParam font font-style font-type footing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn keyword sqrParam footing-size foreground for-append
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn keyword sqrParam for-reading for-reports for-tocs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword sqrParam for-writing format formfeed from goto-top
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword sqrParam group having heading heading-size height
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 syn keyword sqrParam horz-line image-size in indentation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn keyword sqrParam init-string input-date-edit-mask insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn keyword sqrParam integer into item-color item-size key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword sqrParam layout left-margin legend legend-placement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 syn keyword sqrParam legend-presentation legend-title level
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 syn keyword sqrParam line-height line-size line-width lines-inch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword sqrParam local locale loops max-columns max-lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn keyword sqrParam maxlen money money-edit-mask money-sign
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 syn keyword sqrParam money-sign-location months-case months-full
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn keyword sqrParam months-short name need newline newpage
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn keyword sqrParam no-advance nolf noline noprompt normal not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword sqrParam nowait number number-edit-mask on-break
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn keyword sqrParam on-error or order orientation page-depth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 syn keyword sqrParam paper-size pie-segment-explode
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword sqrParam pie-segment-percent-display
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword sqrParam pie-segment-quantity-display pitch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn keyword sqrParam point-markers point-size printer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword sqrParam printer-type quiet record reset-string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 syn keyword sqrParam return_value reverse right-margin rows save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 syn keyword sqrParam select size skip skiplines sort source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword sqrParam sqr-database sqr-platform startup-file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword sqrParam status stop sub-title symbol-set system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword sqrParam table text thousand-seperator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword sqrParam time-seperator times title to toc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 syn keyword sqrParam top-margin type underline update using
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn keyword sqrParam value vary vert-line wait warn when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword sqrParam when-other where with x-axis-grid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword sqrParam x-axis-label x-axis-major-increment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword sqrParam x-axis-major-tick-marks x-axis-max-value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword sqrParam x-axis-min-value x-axis-minor-increment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn keyword sqrParam x-axis-minor-tick-marks x-axis-rotate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 syn keyword sqrParam x-axis-scale x-axis-tick-mark-placement xor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword sqrParam y-axis-grid y-axis-label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword sqrParam y-axis-major-increment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 syn keyword sqrParam y-axis-major-tick-marks y-axis-max-value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 syn keyword sqrParam y-axis-min-value y-axis-minor-increment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn keyword sqrParam y-axis-minor-tick-marks y-axis-scale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword sqrParam y-axis-tick-mark-placement y2-type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 syn keyword sqrParam y2-data-array y2-data-array-row-count
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 syn keyword sqrParam y2-data-array-column-count
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn keyword sqrParam y2-data-array-column-labels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 syn keyword sqrParam y2-axis-color-palette y2-axis-label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn keyword sqrParam y2-axis-major-increment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn keyword sqrParam y2-axis-major-tick-marks y2-axis-max-value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn keyword sqrParam y2-axis-min-value y2-axis-minor-increment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn keyword sqrParam y2-axis-minor-tick-marks y2-axis-scale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 syn keyword sqrFunction abs acos asin atan array ascii asciic ceil
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 syn keyword sqrFunction cos cosh chr cond deg delete dateadd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn keyword sqrFunction datediff datenow datetostr e10 exp edit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn keyword sqrFunction exists floor getenv instr instrb isblank
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn keyword sqrFunction isnull log log10 length lengthb lengthp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword sqrFunction lengtht lower lpad ltrim mod nvl power rad
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn keyword sqrFunction round range replace roman rpad rtrim rename
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn keyword sqrFunction sign sin sinh sqrt substr substrb substrp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword sqrFunction substrt strtodate tan tanh trunc to_char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 syn keyword sqrFunction to_multi_byte to_number to_single_byte
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 syn keyword sqrFunction transform translate unicode upper wrapdepth
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 " END GENERATED SECTION ==============================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 " Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 syn match sqrVariable /\(\$\|#\|&\)\(\k\|\.\)*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 " Debug compiler directives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn match sqrPreProc /\s*#debug\a\=\(\s\|$\)/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn match sqrSubstVar /{\k*}/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 " Strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 " Note: if an undoubled ! is found, this is not a valid string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 " (SQR will treat the end of the line as a comment)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match sqrString /'\(!!\|[^!']\)*'/ contains=sqrSubstVar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn match sqrStrOpen /'\(!!\|''\|[^!']\)*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 " If we find a ' followed by an unmatched ! before a matching ',
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 " flag the error.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn match sqrError /'\(!!\|[^'!]\)*![^!]/me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match sqrError /'\(!!\|[^'!]\)*!$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 " Numbers:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 syn match sqrNumber /-\=\<\d*\.\=[0-9_]\>/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 " Comments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 " Handle comments that start with "!=" specially; they are only valid
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 " in the first column of the source line. Also, "!!" is only treated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 " as a start-comment if there is only whitespace ahead of it on the line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 syn keyword sqrTodo TODO FIXME XXX DEBUG NOTE ###
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 syn match sqrTodo /???/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 " See also the sqrString section above for handling of ! characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 " inside of strings. (Those patterns override the ones below.)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 syn match sqrComment /!\@<!!\([^!=].*\|$\)/ contains=sqrTodo
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
227 " the ! can't be preceded by another !,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 " and must be followed by at least one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 " character other than ! or =, or immediately
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 " by the end-of-line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 syn match sqrComment /^!=.*/ contains=sqrTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 syn match sqrComment /^!!.*/ contains=sqrTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 syn match sqrError /^\s\+\zs!=.*/
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
234 " it's an error to have "!=" preceded by
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 " just whitespace on the line ("!="
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
236 " preceded by non-whitespace is treated
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 " as neither a comment nor an error, since
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 " it is often correct, i.e.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 " if #count != 7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 syn match sqrError /.\+\zs!!.*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 " a "!!" anywhere but at the beginning of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 " the line is always an error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 else "For versions before 6.0, same idea as above but we are limited
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 "to simple patterns only. Also, the sqrString patterns above
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 "don't seem to take precedence in v5 as they do in v6, so
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 "we split the last rule to ignore comments found inside of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 "string literals.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 syn match sqrComment /!\([^!=].*\|$\)/ contains=sqrTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 syn match sqrComment /^!=.*/ contains=sqrTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 syn match sqrComment /^!!.*/ contains=sqrTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 syn match sqrError /^\s\+!=.*/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 syn match sqrError /^[^'!]\+!!/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 " flag !! on lines that don't have ! or '
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 syn match sqrError /^\([^!']*'[^']*'[^!']*\)\+!!/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 " flag !! found after matched ' ' chars
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 " (that aren't also commented)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 " For version 5.7 and earlier, only when not done already.
3153
37ecb8ff4560 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
262 " For version 5.8 and later, only when an item doesn't have highlighting yet.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 if version >= 508 || !exists("did_sqr_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 let did_sqr_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 HiLink sqrSection Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 HiLink sqrParagraph Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 HiLink sqrReserved Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 HiLink sqrParameter Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 HiLink sqrPreProc PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 HiLink sqrSubstVar PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 HiLink sqrCommand Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 HiLink sqrParam Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 HiLink sqrFunction Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 HiLink sqrString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 HiLink sqrStrOpen Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 HiLink sqrNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 HiLink sqrVariable Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 HiLink sqrComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 HiLink sqrTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 HiLink sqrError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 let b:current_syntax = "sqr"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 " vim: ts=8 sw=2