PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre3/modes/rview.xml

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