PageRenderTime 43ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre14/modes/ssharp.xml

#
XML | 146 lines | 140 code | 4 blank | 2 comment | 0 complexity | ef4e434d8079b46d3f0325f25f11fb31 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- S# mode, by Barry Carr (Ixian Software Components Ltd)
  6     based on Marcio Marchini mqm@magma.ca Smalltalk mode -->
  7
  8<MODE>
  9	<PROPS>
 10        <PROPERTY NAME="lineComment" VALUE="#" />
 11		<PROPERTY NAME="commentStart" VALUE="&quot;" />
 12		<PROPERTY NAME="commentEnd" VALUE="&quot;" />
 13		<PROPERTY NAME="indentOpenBrackets" VALUE="[" />
 14		<PROPERTY NAME="indentCloseBrackets" VALUE="]" />
 15		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 16
 17	</PROPS>
 18	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 19		<!-- Standard literals -->
 20		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
 21			<BEGIN>'</BEGIN>
 22			<END>'</END>
 23		</SPAN>
 24        
 25        <EOL_SPAN TYPE="COMMENT3">#</EOL_SPAN>
 26        <EOL_SPAN TYPE="COMMENT2">""</EOL_SPAN>
 27        
 28		<SPAN TYPE="COMMENT1">
 29			<BEGIN>"</BEGIN>
 30			<END>"</END>
 31		</SPAN>
 32
 33        <SPAN TYPE="LITERAL2" >
 34            <BEGIN>«</BEGIN>
 35            <END>»</END>
 36        </SPAN>
 37        
 38        <SEQ TYPE="OPERATOR">(</SEQ>
 39        <SEQ TYPE="OPERATOR">)</SEQ>
 40        <SEQ TYPE="OPERATOR">{</SEQ>
 41        <SEQ TYPE="OPERATOR">}</SEQ>
 42		<SEQ TYPE="OPERATOR">:=</SEQ>
 43		<SEQ TYPE="OPERATOR">_</SEQ>
 44		<SEQ TYPE="OPERATOR">=</SEQ>
 45		<SEQ TYPE="OPERATOR">==</SEQ>
 46		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 47		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 48		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 49		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 50		<SEQ TYPE="OPERATOR">+</SEQ>
 51		<SEQ TYPE="OPERATOR">-</SEQ>
 52		<SEQ TYPE="OPERATOR">/</SEQ>
 53        <SEQ TYPE="OPERATOR">//</SEQ>
 54        <SEQ TYPE="OPERATOR">\\</SEQ>
 55		<SEQ TYPE="OPERATOR">*</SEQ>
 56        <SEQ TYPE="OPERATOR">**</SEQ>
 57        <SEQ TYPE="OPERATOR">#</SEQ>
 58        <SEQ TYPE="OPERATOR">^</SEQ>
 59        <SEQ TYPE="OPERATOR">^^</SEQ>
 60        <SEQ TYPE="OPERATOR">;</SEQ>
 61        <SEQ TYPE="OPERATOR">.</SEQ>
 62        <SEQ TYPE="OPERATOR">-&gt;</SEQ>
 63        <SEQ TYPE="OPERATOR">&amp;&amp;</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        
 71		<MARK_PREVIOUS TYPE="KEYWORD3" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
 72		<MARK_FOLLOWING TYPE="LABEL" EXCLUDE_MATCH="TRUE">#</MARK_FOLLOWING>
 73		<MARK_FOLLOWING TYPE="LITERAL1" EXCLUDE_MATCH="TRUE">$</MARK_FOLLOWING>
 74
 75		<KEYWORDS>
 76			<!-- Constants -->
 77            <KEYWORD1>disable</KEYWORD1>
 78            <KEYWORD1>enable</KEYWORD1>
 79            <KEYWORD1>no</KEYWORD1>
 80            <KEYWORD1>off</KEYWORD1>
 81            <KEYWORD1>on</KEYWORD1>
 82			<KEYWORD1>yes</KEYWORD1>
 83
 84			<!-- Reserved identifiers -->
 85			<KEYWORD2>self</KEYWORD2>
 86			<KEYWORD2>true</KEYWORD2>
 87            <KEYWORD2>false</KEYWORD2>
 88            <KEYWORD2>nil</KEYWORD2>
 89            <KEYWORD2>super</KEYWORD2>
 90            <KEYWORD2>thread</KEYWORD2>
 91            <KEYWORD2>sender</KEYWORD2>
 92            <KEYWORD2>senderMethod</KEYWORD2>
 93            <KEYWORD2>blockSelf</KEYWORD2>
 94            <KEYWORD2>scheduler</KEYWORD2>
 95            <KEYWORD2>¼</KEYWORD2>
 96            
 97			<!-- not really keywords, but a different color works well-->
 98			<KEYWORD4>isNil</KEYWORD4>
 99			<KEYWORD4>not</KEYWORD4>
100            			
101			<!-- not really -->
102			<LITERAL2>Smalltalk</LITERAL2>
103			<LITERAL2>Transcript</LITERAL2>
104			
105			<!-- base classes -->
106			<LITERAL2>Date</LITERAL2>
107			<LITERAL2>Time</LITERAL2>
108			<LITERAL2>Boolean</LITERAL2>
109			<LITERAL2>True</LITERAL2>
110			<LITERAL2>False</LITERAL2>
111			<LITERAL2>Character</LITERAL2>
112			<LITERAL2>String</LITERAL2>
113			<LITERAL2>Array</LITERAL2>
114			<LITERAL2>Symbol</LITERAL2>
115			<LITERAL2>Integer</LITERAL2>
116			<LITERAL2>Object</LITERAL2>
117            
118            <LITERAL3>Application</LITERAL3>
119            <LITERAL3>Category</LITERAL3>
120            <LITERAL3>Class</LITERAL3>
121            <LITERAL3>Compiler</LITERAL3>
122            <LITERAL3>EntryPoint</LITERAL3>
123            <LITERAL3>Enum</LITERAL3>
124            <LITERAL3>Eval</LITERAL3>
125            <LITERAL3>Exception</LITERAL3>
126            <LITERAL3>Function</LITERAL3>
127            <LITERAL3>IconResource</LITERAL3>
128            <LITERAL3>Interface</LITERAL3>
129            <LITERAL3>Literal</LITERAL3>
130            <LITERAL3>Namespace</LITERAL3>
131            <LITERAL3>Method</LITERAL3>
132            <LITERAL3>Mixin</LITERAL3>
133            <LITERAL3>Module</LITERAL3>
134            <LITERAL3>Project</LITERAL3>
135            <LITERAL3>Reference</LITERAL3>
136            <LITERAL3>Require</LITERAL3>
137            <LITERAL3>Resource</LITERAL3>
138            <LITERAL3>Signal</LITERAL3>
139            <LITERAL3>Struct</LITERAL3>
140            <LITERAL3>Subsystem</LITERAL3>
141            <LITERAL3>Specifications</LITERAL3>
142            <LITERAL3>Warning</LITERAL3>
143
144		</KEYWORDS>
145	</RULES>
146</MODE>