remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / basis / xmode / modes / smalltalk.xml
blob27eefe7f76b8ee5bcf57ff79d7eaf63806c6b74e
1 <?xml version="1.0"?>\r
2 \r
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">\r
4 \r
5 <!-- Smalltalk mode, by Marcio Marchini mqm@magma.ca -->\r
6 \r
7 <MODE>\r
8         <PROPS>\r
9                 <PROPERTY NAME="commentStart" VALUE="&quot;" />\r
10                 <PROPERTY NAME="commentEnd" VALUE="&quot;" />\r
11                 <PROPERTY NAME="indentOpenBrackets" VALUE="[" />\r
12                 <PROPERTY NAME="indentCloseBrackets" VALUE="]" />\r
14         </PROPS>\r
15         <RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">\r
16                 <!-- Standard literals -->\r
17                 <SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">\r
18                         <BEGIN>'</BEGIN>\r
19                         <END>'</END>\r
20                 </SPAN>\r
22                 <SPAN TYPE="COMMENT1">\r
23                         <BEGIN>"</BEGIN>\r
24                         <END>"</END>\r
25                 </SPAN>\r
27                 <SEQ TYPE="OPERATOR">:=</SEQ>\r
28                 <SEQ TYPE="OPERATOR">_</SEQ>\r
29                 <SEQ TYPE="OPERATOR">=</SEQ>\r
30                 <SEQ TYPE="OPERATOR">==</SEQ>\r
31                 <SEQ TYPE="OPERATOR">&gt;</SEQ>\r
32                 <SEQ TYPE="OPERATOR">&lt;</SEQ>\r
33                 <SEQ TYPE="OPERATOR">&gt;=</SEQ>\r
34                 <SEQ TYPE="OPERATOR">&lt;=</SEQ>\r
35                 <SEQ TYPE="OPERATOR">+</SEQ>\r
36                 <SEQ TYPE="OPERATOR">-</SEQ>\r
37                 <SEQ TYPE="OPERATOR">/</SEQ>\r
38                 <SEQ TYPE="OPERATOR">*</SEQ>\r
40                 <MARK_PREVIOUS TYPE="KEYWORD3" MATCH_TYPE="OPERATOR">:</MARK_PREVIOUS>\r
41                 <MARK_FOLLOWING TYPE="LABEL" MATCH_TYPE="OPERATOR">#</MARK_FOLLOWING>\r
42                 <MARK_FOLLOWING TYPE="LITERAL1" MATCH_TYPE="OPERATOR">$</MARK_FOLLOWING>\r
45                 <KEYWORDS>\r
46                         <!-- Constants -->\r
47                         <KEYWORD1>true</KEYWORD1>\r
48                         <KEYWORD1>false</KEYWORD1>\r
49                         <KEYWORD1>nil</KEYWORD1>\r
51                         <!-- Reserved identifiers -->\r
52                         <KEYWORD2>self</KEYWORD2>\r
53                         <KEYWORD2>super</KEYWORD2>\r
55                         <!-- not really keywords, but a different color works well-->\r
56                         <KEYWORD3>isNil</KEYWORD3>\r
57                         <KEYWORD3>not</KEYWORD3>\r
59                         <!-- not really -->\r
60                         <LITERAL2>Smalltalk</LITERAL2>\r
61                         <LITERAL2>Transcript</LITERAL2>\r
63                         <!-- base classes -->\r
64                         <LITERAL2>Date</LITERAL2>\r
65                         <LITERAL2>Time</LITERAL2>\r
66                         <LITERAL2>Boolean</LITERAL2>\r
67                         <LITERAL2>True</LITERAL2>\r
68                         <LITERAL2>False</LITERAL2>\r
69                         <LITERAL2>Character</LITERAL2>\r
70                         <LITERAL2>String</LITERAL2>\r
71                         <LITERAL2>Array</LITERAL2>\r
72                         <LITERAL2>Symbol</LITERAL2>\r
73                         <LITERAL2>Integer</LITERAL2>\r
74                         <LITERAL2>Object</LITERAL2>\r
76                 </KEYWORDS>\r
77         </RULES>\r
78 </MODE>\r