PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 78 lines | 73 code | 4 blank | 1 comment | 0 complexity | 8b50a8341c96c0748aaa7abbe98e8f01 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
14	</PROPS>
15	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
16		<!-- Standard literals -->
17		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
18			<BEGIN>'</BEGIN>
19			<END>'</END>
20		</SPAN>
21
22		<SPAN TYPE="COMMENT1">
23			<BEGIN>"</BEGIN>
24			<END>"</END>
25		</SPAN>
26
27		<SEQ TYPE="OPERATOR">:=</SEQ>
28		<SEQ TYPE="OPERATOR">_</SEQ>
29		<SEQ TYPE="OPERATOR">=</SEQ>
30		<SEQ TYPE="OPERATOR">==</SEQ>
31		<SEQ TYPE="OPERATOR">&gt;</SEQ>
32		<SEQ TYPE="OPERATOR">&lt;</SEQ>
33		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
34		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
35		<SEQ TYPE="OPERATOR">+</SEQ>
36		<SEQ TYPE="OPERATOR">-</SEQ>
37		<SEQ TYPE="OPERATOR">/</SEQ>
38		<SEQ TYPE="OPERATOR">*</SEQ>
39
40		<MARK_PREVIOUS TYPE="KEYWORD3" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
41		<MARK_FOLLOWING TYPE="LABEL" EXCLUDE_MATCH="TRUE">#</MARK_FOLLOWING>
42		<MARK_FOLLOWING TYPE="LITERAL1" EXCLUDE_MATCH="TRUE">$</MARK_FOLLOWING>
43
44
45		<KEYWORDS>
46			<!-- Constants -->
47			<KEYWORD1>true</KEYWORD1>
48			<KEYWORD1>false</KEYWORD1>
49			<KEYWORD1>nil</KEYWORD1>
50
51			<!-- Reserved identifiers -->
52			<KEYWORD2>self</KEYWORD2>
53			<KEYWORD2>super</KEYWORD2>
54
55			<!-- not really keywords, but a different color works well-->
56			<KEYWORD3>isNil</KEYWORD3>
57			<KEYWORD3>not</KEYWORD3>
58			
59			<!-- not really -->
60			<LITERAL2>Smalltalk</LITERAL2>
61			<LITERAL2>Transcript</LITERAL2>
62			
63			<!-- base classes -->
64			<LITERAL2>Date</LITERAL2>
65			<LITERAL2>Time</LITERAL2>
66			<LITERAL2>Boolean</LITERAL2>
67			<LITERAL2>True</LITERAL2>
68			<LITERAL2>False</LITERAL2>
69			<LITERAL2>Character</LITERAL2>
70			<LITERAL2>String</LITERAL2>
71			<LITERAL2>Array</LITERAL2>
72			<LITERAL2>Symbol</LITERAL2>
73			<LITERAL2>Integer</LITERAL2>
74			<LITERAL2>Object</LITERAL2>
75
76		</KEYWORDS>
77	</RULES>
78</MODE>