PageRenderTime 92ms CodeModel.GetById 87ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/modes/csharp.xml

#
XML | 182 lines | 180 code | 2 blank | 0 comment | 0 complexity | 9729f3b6c1d8565ec65e5017bc8c5d7c MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="commentStart" VALUE="/*" />
  8		<PROPERTY NAME="commentEnd" VALUE="*/" />
  9		<PROPERTY NAME="lineComment" VALUE="//" />
 10		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 11		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 12		<PROPERTY NAME="indentPrevLine"
 13			VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
 14		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 15	</PROPS>
 16	<RULES ESCAPE="\"
 17		IGNORE_CASE="FALSE"
 18		HIGHLIGHT_DIGITS="TRUE"
 19		DIGIT_RE="(0x)?[[:xdigit:]]+[lLdDfF]?">
 20
 21		<SPAN TYPE="COMMENT1">
 22			<BEGIN>/*</BEGIN>
 23			<END>*/</END>
 24		</SPAN>
 25
 26		<!-- DocComments may have XML in them -->
 27		<EOL_SPAN TYPE="COMMENT2" DELEGATE="DOC_COMMENT">///</EOL_SPAN>
 28
 29		<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
 30
 31		<!-- verbatim strings -->
 32		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
 33			<BEGIN>@"</BEGIN>
 34			<END>"</END>
 35		</SPAN>
 36
 37		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 38			<BEGIN>"</BEGIN>
 39			<END>"</END>
 40		</SPAN>
 41
 42		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 43			<BEGIN>'</BEGIN>
 44			<END>'</END>
 45		</SPAN>
 46
 47		<EOL_SPAN TYPE="KEYWORD2">#if</EOL_SPAN>
 48		<EOL_SPAN TYPE="KEYWORD2">#else</EOL_SPAN>
 49		<EOL_SPAN TYPE="KEYWORD2">#elif</EOL_SPAN>
 50		<EOL_SPAN TYPE="KEYWORD2">#endif</EOL_SPAN>
 51		<EOL_SPAN TYPE="KEYWORD2">#define</EOL_SPAN>
 52		<EOL_SPAN TYPE="KEYWORD2">#undef</EOL_SPAN>
 53		<EOL_SPAN TYPE="KEYWORD2">#warning</EOL_SPAN>
 54		<EOL_SPAN TYPE="KEYWORD2">#error</EOL_SPAN>
 55		<EOL_SPAN TYPE="KEYWORD2">#line</EOL_SPAN>
 56		<EOL_SPAN TYPE="KEYWORD2">#region</EOL_SPAN>
 57		<EOL_SPAN TYPE="KEYWORD2">#endregion</EOL_SPAN>
 58
 59		<SEQ TYPE="OPERATOR">~</SEQ>
 60		<SEQ TYPE="OPERATOR">!</SEQ>
 61		<SEQ TYPE="OPERATOR">:</SEQ>
 62		<SEQ TYPE="OPERATOR">;</SEQ>
 63		<SEQ TYPE="OPERATOR">{</SEQ>
 64		<SEQ TYPE="OPERATOR">}</SEQ>
 65		<SEQ TYPE="OPERATOR">,</SEQ>
 66		<SEQ TYPE="OPERATOR">.</SEQ>
 67		<SEQ TYPE="OPERATOR">!</SEQ>
 68		<SEQ TYPE="OPERATOR">[</SEQ>
 69		<SEQ TYPE="OPERATOR">]</SEQ>
 70		<SEQ TYPE="OPERATOR">+</SEQ>
 71		<SEQ TYPE="OPERATOR">-</SEQ>
 72		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 73		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 74		<SEQ TYPE="OPERATOR">=</SEQ>
 75		<SEQ TYPE="OPERATOR">*</SEQ>
 76		<SEQ TYPE="OPERATOR">/</SEQ>
 77		<SEQ TYPE="OPERATOR">\</SEQ>
 78		<SEQ TYPE="OPERATOR">^</SEQ>
 79		<SEQ TYPE="OPERATOR">|</SEQ>
 80		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 81		<SEQ TYPE="OPERATOR">%</SEQ>
 82		<SEQ TYPE="OPERATOR">?</SEQ>
 83
 84		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 85
 86		<KEYWORDS>
 87			<KEYWORD1>abstract</KEYWORD1>
 88			<KEYWORD1>as</KEYWORD1>
 89			<KEYWORD1>base</KEYWORD1>
 90			<KEYWORD1>break</KEYWORD1>
 91			<KEYWORD1>case</KEYWORD1>
 92			<KEYWORD1>catch</KEYWORD1>
 93			<KEYWORD1>checked</KEYWORD1>
 94			<KEYWORD1>const</KEYWORD1>
 95			<KEYWORD1>continue</KEYWORD1>
 96			<KEYWORD1>decimal</KEYWORD1>
 97			<KEYWORD1>default</KEYWORD1>
 98			<KEYWORD1>delegate</KEYWORD1>
 99			<KEYWORD1>do</KEYWORD1>
100			<KEYWORD1>else</KEYWORD1>
101			<KEYWORD1>explicit</KEYWORD1>
102			<KEYWORD1>extern</KEYWORD1>
103			<KEYWORD1>finally</KEYWORD1>
104			<KEYWORD1>fixed</KEYWORD1>
105			<KEYWORD1>for</KEYWORD1>
106			<KEYWORD1>foreach</KEYWORD1>
107			<KEYWORD1>goto</KEYWORD1>
108			<KEYWORD1>if</KEYWORD1>
109			<KEYWORD1>implicit</KEYWORD1>
110			<KEYWORD1>in</KEYWORD1>
111			<KEYWORD1>internal</KEYWORD1>
112			<KEYWORD1>is</KEYWORD1>
113			<KEYWORD1>lock</KEYWORD1>
114			<KEYWORD1>new</KEYWORD1>
115			<KEYWORD1>operator</KEYWORD1>
116			<KEYWORD1>out</KEYWORD1>
117			<KEYWORD1>override</KEYWORD1>
118			<KEYWORD1>params</KEYWORD1>
119			<KEYWORD1>private</KEYWORD1>
120			<KEYWORD1>protected</KEYWORD1>
121			<KEYWORD1>public</KEYWORD1>
122			<KEYWORD1>readonly</KEYWORD1>
123			<KEYWORD1>ref</KEYWORD1>
124			<KEYWORD1>return</KEYWORD1>
125			<KEYWORD1>sealed</KEYWORD1>
126			<KEYWORD1>sizeof</KEYWORD1>
127			<KEYWORD1>stackalloc</KEYWORD1>
128			<KEYWORD1>static</KEYWORD1>
129			<KEYWORD1>switch</KEYWORD1>
130			<KEYWORD1>throw</KEYWORD1>
131			<KEYWORD1>try</KEYWORD1>
132			<KEYWORD1>typeof</KEYWORD1>
133			<KEYWORD1>unchecked</KEYWORD1>
134			<KEYWORD1>unsafe</KEYWORD1>
135			<KEYWORD1>virtual</KEYWORD1>
136			<KEYWORD1>while</KEYWORD1>
137
138			<KEYWORD2>using</KEYWORD2>
139			<KEYWORD2>namespace</KEYWORD2>
140
141			<KEYWORD3>bool</KEYWORD3>
142			<KEYWORD3>byte</KEYWORD3>
143			<KEYWORD3>char</KEYWORD3>
144			<KEYWORD3>class</KEYWORD3>
145			<KEYWORD3>double</KEYWORD3>
146			<KEYWORD3>enum</KEYWORD3>
147			<KEYWORD3>event</KEYWORD3>
148			<KEYWORD3>float</KEYWORD3>
149			<KEYWORD3>int</KEYWORD3>
150			<KEYWORD3>interface</KEYWORD3>
151			<KEYWORD3>long</KEYWORD3>
152			<KEYWORD3>object</KEYWORD3>
153			<KEYWORD3>sbyte</KEYWORD3>
154			<KEYWORD3>short</KEYWORD3>
155			<KEYWORD3>string</KEYWORD3>
156			<KEYWORD3>struct</KEYWORD3>
157			<KEYWORD3>uint</KEYWORD3>
158			<KEYWORD3>ulong</KEYWORD3>
159			<KEYWORD3>ushort</KEYWORD3>
160			<KEYWORD3>void</KEYWORD3>
161
162			<LITERAL2>false</LITERAL2>
163			<LITERAL2>null</LITERAL2>
164			<LITERAL2>this</LITERAL2>
165			<LITERAL2>true</LITERAL2>
166		</KEYWORDS>
167	</RULES>
168
169	<RULES SET="DOC_COMMENT" DEFAULT="COMMENT2" IGNORE_CASE="TRUE">
170		<!-- XML comments -->
171		<SPAN TYPE="COMMENT1">
172			<BEGIN>&lt;--</BEGIN>
173			<END>--&gt;</END>
174		</SPAN>
175		<!-- XML tags -->
176		<SPAN TYPE="MARKUP" DELEGATE="xml::TAGS">
177			<BEGIN>&lt;</BEGIN>
178			<END>&gt;</END>
179		</SPAN>
180	</RULES>
181</MODE>
182