PageRenderTime 638ms CodeModel.GetById 631ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/rview.xml

#
XML | 215 lines | 174 code | 14 blank | 27 comment | 0 complexity | 0923f1837c07e6867559347671accaa8 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!--
  6  Relational View (rview) mode by Will Sargent <wsargent@atg.com>
  7-->
  8<MODE>
  9	<PROPS>
 10                <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 11		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 12		<PROPERTY NAME="commentStart" VALUE="/*" />
 13		<PROPERTY NAME="commentEnd" VALUE="*/" />
 14                <PROPERTY NAME="lineComment" VALUE="//" />
 15	</PROPS>
 16
 17        <!--
 18          Unicode escapes are allowed in identifiers.
 19          Ignoring case is bad.
 20          Digits may be returned from functions.
 21        -->
 22	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 23                <SEQ TYPE="COMMENT1">/**/</SEQ>
 24
 25		<!-- Javadoc comment -->
 26		<SPAN TYPE="COMMENT2" DELEGATE="JAVADOC">
 27			<BEGIN>/**</BEGIN>
 28			<END>*/</END>
 29		</SPAN>
 30
 31                <!-- Java comment (C style) -->
 32		<SPAN TYPE="COMMENT1">
 33			<BEGIN>/*</BEGIN>
 34			<END>*/</END>
 35		</SPAN>
 36
 37		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE" DELEGATE="RVIEWSTMT">
 38			<BEGIN>"</BEGIN>
 39			<END>"</END>
 40		</SPAN>
 41
 42                <SEQ TYPE="OPERATOR">}</SEQ>
 43                <SEQ TYPE="OPERATOR">{</SEQ>
 44                <SEQ TYPE="OPERATOR">=</SEQ>
 45
 46                <!-- Function calls -->
 47                <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 48
 49                <EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
 50
 51                <KEYWORDS>
 52
 53                        <!--
 54                          Keywords (WAY more than I thought there were, please
 55                          e-mail me if I've left one out).
 56                        -->
 57                        <KEYWORD1>unique</KEYWORD1>
 58                        <KEYWORD1>relationalview</KEYWORD1>
 59                        <KEYWORD1>class</KEYWORD1>
 60
 61                        <KEYWORD1>rowmap</KEYWORD1>
 62                        <KEYWORD1>table</KEYWORD1>
 63                        <KEYWORD1>function</KEYWORD1>
 64                        <KEYWORD1>subview</KEYWORD1>
 65                        <KEYWORD1>query</KEYWORD1>
 66
 67                        <KEYWORD1>join</KEYWORD1>
 68                        <KEYWORD1>jointype</KEYWORD1>
 69                        <KEYWORD1>leftouter</KEYWORD1>
 70                        <KEYWORD1>rightouter</KEYWORD1>
 71
 72                        <KEYWORD1>switch</KEYWORD1>
 73                        <KEYWORD1>case</KEYWORD1>
 74
 75                        <KEYWORD1>sql</KEYWORD1>
 76                        <KEYWORD1>constraints</KEYWORD1>
 77                        <KEYWORD1>where</KEYWORD1>
 78                        <KEYWORD1>orderby</KEYWORD1>
 79                        <KEYWORD1>return</KEYWORD1>
 80                        <KEYWORD1>distinct</KEYWORD1>
 81
 82                        <!--
 83                          Allow parameters...
 84                        -->
 85                        <KEYWORD1>allow</KEYWORD1>
 86                        <KEYWORD1>delete</KEYWORD1>
 87                        <!-- also used in update function -->
 88                        <KEYWORD1>update</KEYWORD1>
 89                        <KEYWORD1>select</KEYWORD1>
 90                        <KEYWORD1>insert</KEYWORD1>
 91
 92                        <!-- We're allowed to return primitive types -->
 93                        <KEYWORD3>boolean</KEYWORD3>
 94                        <KEYWORD3>byte</KEYWORD3>
 95                        <KEYWORD3>char</KEYWORD3>
 96                        <KEYWORD3>double</KEYWORD3>
 97                        <KEYWORD3>float</KEYWORD3>
 98                        <KEYWORD3>int</KEYWORD3>
 99                        <KEYWORD3>long</KEYWORD3>
100                        <KEYWORD3>short</KEYWORD3>
101
102                        <KEYWORD1>useCallableStatement</KEYWORD1>
103
104                        <!--
105                          JDBC mapping statements (must be UPPERCASE)
106                        -->
107                        <KEYWORD3>CHAR</KEYWORD3>
108                        <KEYWORD3>VARCHAR</KEYWORD3>
109                        <KEYWORD3>LONGVARCHAR</KEYWORD3>
110                        <KEYWORD3>NUMERIC</KEYWORD3>
111                        <KEYWORD3>DECIMAL</KEYWORD3>
112                        <KEYWORD3>BIT</KEYWORD3>
113                        <KEYWORD3>TINYINT</KEYWORD3>
114                        <KEYWORD3>SMALLINT</KEYWORD3>
115                        <KEYWORD3>INTEGER</KEYWORD3>
116                        <KEYWORD3>BIGINT</KEYWORD3>
117                        <KEYWORD3>REAL</KEYWORD3>
118                        <KEYWORD3>FLOAT</KEYWORD3>
119                        <KEYWORD3>DOUBLE</KEYWORD3>
120                        <KEYWORD3>BINARY</KEYWORD3>
121                        <KEYWORD3>VARBINARY</KEYWORD3>
122                        <KEYWORD3>LONGVARBINARY</KEYWORD3>
123                        <KEYWORD3>DATE</KEYWORD3>
124                        <KEYWORD3>TIME</KEYWORD3>
125                        <KEYWORD3>TIMESTAMP</KEYWORD3>
126                </KEYWORDS>
127        </RULES>
128
129        <!--
130          Everything that happens in between quotes happens here.
131        -->
132        <RULES SET="RVIEWSTMT" ESCAPE="\" DEFAULT="LITERAL1"
133		HIGHLIGHT_DIGITS="TRUE" IGNORE_CASE="TRUE">
134                <!-- Allow quoting for characters. -->
135                <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
136                        <BEGIN>'</BEGIN>
137                        <END>'</END>
138                </SPAN>
139
140                <!--
141                  Standard arithmetic
142                -->
143                <SEQ TYPE="OPERATOR">+</SEQ>
144                <SEQ TYPE="OPERATOR">-</SEQ>
145                <SEQ TYPE="OPERATOR">/</SEQ>
146                <SEQ TYPE="OPERATOR">*</SEQ>
147                <SEQ TYPE="OPERATOR">=</SEQ>
148
149                <!--
150                  Standard logic
151                -->
152                <SEQ TYPE="OPERATOR">&gt;=</SEQ>
153                <SEQ TYPE="OPERATOR">&lt;=</SEQ>
154                <SEQ TYPE="OPERATOR">&gt;</SEQ>
155                <SEQ TYPE="OPERATOR">&lt;</SEQ>
156
157                <!--
158                  For callable statements, { } must be used.
159                -->
160                <SEQ TYPE="OPERATOR">}</SEQ>
161                <SEQ TYPE="OPERATOR">{</SEQ>
162
163                <!--
164                  Escape colons for full tables
165                -->
166                <SEQ TYPE="NULL">::</SEQ>
167
168                <!-- Mark most colons as a label indicator -->
169                <MARK_FOLLOWING TYPE="LABEL">:</MARK_FOLLOWING>
170
171                <!-- Function calls (these can happen even inside quotes) -->
172                <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
173
174                <KEYWORDS>
175                        <KEYWORD1>SELECT</KEYWORD1>
176                        <KEYWORD1>FROM</KEYWORD1>
177                        <KEYWORD1>WHERE</KEYWORD1>
178                        <KEYWORD1>AND</KEYWORD1>
179                        <KEYWORD1>NOT</KEYWORD1>
180                        <KEYWORD1>IN</KEYWORD1>
181                        <KEYWORD1>BETWEEN</KEYWORD1>
182                        <KEYWORD1>UPDATE</KEYWORD1>
183                        <KEYWORD1>SET</KEYWORD1>
184
185                        <KEYWORD1>call</KEYWORD1>
186                        <KEYWORD1>desc</KEYWORD1>
187
188                        <!--
189                          It's possible to do casting to a particular SQL
190                          type, so include the JDBC types here
191                        -->
192                        <KEYWORD3>CHAR</KEYWORD3>
193                        <KEYWORD3>VARCHAR</KEYWORD3>
194                        <KEYWORD3>LONGVARCHAR</KEYWORD3>
195                        <KEYWORD3>NUMERIC</KEYWORD3>
196                        <KEYWORD3>DECIMAL</KEYWORD3>
197                        <KEYWORD3>BIT</KEYWORD3>
198                        <KEYWORD3>TINYINT</KEYWORD3>
199                        <KEYWORD3>SMALLINT</KEYWORD3>
200                        <KEYWORD3>INTEGER</KEYWORD3>
201                        <KEYWORD3>BIGINT</KEYWORD3>
202                        <KEYWORD3>REAL</KEYWORD3>
203                        <KEYWORD3>FLOAT</KEYWORD3>
204                        <KEYWORD3>DOUBLE</KEYWORD3>
205                        <KEYWORD3>BINARY</KEYWORD3>
206                        <KEYWORD3>VARBINARY</KEYWORD3>
207                        <KEYWORD3>LONGVARBINARY</KEYWORD3>
208                        <KEYWORD3>DATE</KEYWORD3>
209                        <KEYWORD3>TIME</KEYWORD3>
210                        <KEYWORD3>TIMESTAMP</KEYWORD3>
211                </KEYWORDS>
212        </RULES>
213
214
215</MODE>