PageRenderTime 55ms CodeModel.GetById 50ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 79 lines | 74 code | 4 blank | 1 comment | 0 complexity | 3f881ae3233e2696a1afaf4ba6d67fff MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<!DOCTYPE MODE SYSTEM "xmode.dtd">
 4
 5<!-- Smalltalk mode, by Marcio Marchini mqm@magma.ca -->
 6
 7<MODE>
 8	<PROPS>
 9		<PROPERTY NAME="commentStart" VALUE="&quot;" />
10		<PROPERTY NAME="commentEnd" VALUE="&quot;" />
11		<PROPERTY NAME="indentOpenBrackets" VALUE="[" />
12		<PROPERTY NAME="indentCloseBrackets" VALUE="]" />
13		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
14
15	</PROPS>
16	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
17		<!-- Standard literals -->
18		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
19			<BEGIN>'</BEGIN>
20			<END>'</END>
21		</SPAN>
22
23		<SPAN TYPE="COMMENT1">
24			<BEGIN>"</BEGIN>
25			<END>"</END>
26		</SPAN>
27
28		<SEQ TYPE="OPERATOR">:=</SEQ>
29		<SEQ TYPE="OPERATOR">_</SEQ>
30		<SEQ TYPE="OPERATOR">=</SEQ>
31		<SEQ TYPE="OPERATOR">==</SEQ>
32		<SEQ TYPE="OPERATOR">&gt;</SEQ>
33		<SEQ TYPE="OPERATOR">&lt;</SEQ>
34		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
35		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
36		<SEQ TYPE="OPERATOR">+</SEQ>
37		<SEQ TYPE="OPERATOR">-</SEQ>
38		<SEQ TYPE="OPERATOR">/</SEQ>
39		<SEQ TYPE="OPERATOR">*</SEQ>
40
41		<MARK_PREVIOUS TYPE="KEYWORD3" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
42		<MARK_FOLLOWING TYPE="LABEL" EXCLUDE_MATCH="TRUE">#</MARK_FOLLOWING>
43		<MARK_FOLLOWING TYPE="LITERAL1" EXCLUDE_MATCH="TRUE">$</MARK_FOLLOWING>
44
45
46		<KEYWORDS>
47			<!-- Constants -->
48			<KEYWORD1>true</KEYWORD1>
49			<KEYWORD1>false</KEYWORD1>
50			<KEYWORD1>nil</KEYWORD1>
51
52			<!-- Reserved identifiers -->
53			<KEYWORD2>self</KEYWORD2>
54			<KEYWORD2>super</KEYWORD2>
55
56			<!-- not really keywords, but a different color works well-->
57			<KEYWORD3>isNil</KEYWORD3>
58			<KEYWORD3>not</KEYWORD3>
59			
60			<!-- not really -->
61			<LITERAL2>Smalltalk</LITERAL2>
62			<LITERAL2>Transcript</LITERAL2>
63			
64			<!-- base classes -->
65			<LITERAL2>Date</LITERAL2>
66			<LITERAL2>Time</LITERAL2>
67			<LITERAL2>Boolean</LITERAL2>
68			<LITERAL2>True</LITERAL2>
69			<LITERAL2>False</LITERAL2>
70			<LITERAL2>Character</LITERAL2>
71			<LITERAL2>String</LITERAL2>
72			<LITERAL2>Array</LITERAL2>
73			<LITERAL2>Symbol</LITERAL2>
74			<LITERAL2>Integer</LITERAL2>
75			<LITERAL2>Object</LITERAL2>
76
77		</KEYWORDS>
78	</RULES>
79</MODE>