PageRenderTime 179ms CodeModel.GetById 170ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/csharp.xml

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