-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSmallTalk.syn
More file actions
145 lines (128 loc) · 6.47 KB
/
Copy pathSmallTalk.syn
File metadata and controls
145 lines (128 loc) · 6.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?xml version="1.0" encoding="utf-8" ?>
<Language Name="Small talk" Startblock="small Code">
<FileTypes>
<FileType Extension=".sma" Name="small code file"/>
</FileTypes>
<Block Name="small Code" Style="small Code" EscapeChar="" IsMultiline="true">
<Scope Start="{" End="}" Style="small Scope" Text="{...}" CauseIndent="true"/>
<Scope Start="#region" End="#endregion" Style="small Region" Text="" DefaultExpanded="false" />
<!-- Keywords that can exist inside this block -->
<Keywords>
<PatternGroup Name="Keywords3" Style="small Keyword3" CaseSensitive="true">
<Pattern Text="(#assert)" IsComplex="true"/>
<Pattern Text="(#else)" IsComplex="true"/>
<Pattern Text="(#emit)" IsComplex="true"/>
<Pattern Text="(#endif)" IsComplex="true"/>
<Pattern Text="(#endinput)" IsComplex="true"/>
<Pattern Text="(#endscript)" IsComplex="true"/>
<Pattern Text="(#if)" IsComplex="true"/>
<Pattern Text="(#include)" IsComplex="true"/>
</PatternGroup>
<PatternGroup Name="Keywords" Style="small Keyword" CaseSensitive="true">
<Patterns>
assert break case char const continue default defined do else enum exit for forward goto if native new operator public Return sizeof sleep static stock switch while print return
</Patterns>
</PatternGroup>
<PatternGroup Name="Numbers" Style="small Number">
<Pattern Text="(0x[0-9,a-f,A-F]+)" IsComplex="true" />
<Pattern Text="([0-9]+)" IsComplex="true" />
</PatternGroup>
</Keywords>
<!-- Operators that can exist inside this block -->
<Operators>
<PatternGroup name="Operators" Style="small Operator">
<Pattern Text="." />
<Pattern Text="!" />
<Pattern Text=":" />
<Pattern Text="^" />
<Pattern Text="*" />
<Pattern Text="/" />
<Pattern Text="+" />
<Pattern Text="-" />
<Pattern Text="=" />
<Pattern Text="|" />
<Pattern Text="~" />
<Pattern Text="&" />
<Pattern Text="~" />
<Pattern Text=">" />
<Pattern Text="<" />
</PatternGroup>
</Operators>
<!-- Blocks that can exist inside this block -->
<ChildBlocks>
<Child Name="small Multiline Comment" />
<Child Name="small Singleline Comment" />
<Child Name="small String" />
<Child Name="small Char" />
<Child Name="small Code" />
</ChildBlocks>
</Block>
<Block Name="small XML Comment" Style="small Comment" EscapeChar="" IsMultiline="false">
<Scope Start="///" End="" Style="small XML Comment" />
<!-- this block can contain xml tags -->
<ChildBlocks>
<Child Name="small XML Comment Tag" />
</ChildBlocks>
</Block>
<!-- this block is the xml tags in xml comments-->
<Block Name="small XML Comment Tag" Style="small XML Tag Text" EscapeChar="" IsMultiline="false">
<Scope Start="<" End=">" Style="small XML Tag" />
<Operators>
<PatternGroup name="small XML Attrib" Style="small XML Attrib">
<!-- operator is the attributes that can exist within xml tags-->
<Pattern Text="( [a-z,A-Z,:]+)" IsComplex="true" />
</PatternGroup>
</Operators>
<ChildBlocks>
<Child Name="XML String" />
</ChildBlocks>
</Block>
<Block Name="XML String" Style="small XML String" EscapeChar="" IsMultiline="true">
<Scope Start=""" End=""" Style="small XML String" />
</Block>
<Block Name="small Multiline Comment" Style="small Comment" EscapeChar="" IsMultiline="true">
<Scope Start="/*" End="*/" Style="small Comment" Text="/*...*/"/>
<Operators>
<PatternGroup name="URL" Style="small URL">
<Pattern Text="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" IsComplex="true" />
</PatternGroup>
</Operators>
</Block>
<Block Name="small Singleline Comment" Style="small Comment" EscapeChar="" IsMultiline="false">
<Scope Start="//" End="" Style="small Comment" />
</Block>
<Block Name="small String" Style="small String" EscapeChar="\" IsMultiline="false">
<Scope Start=""" End=""" Style="small String" />
<Operators>
<PatternGroup name="URL" Style="small URL">
<Pattern Text="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" IsComplex="true" />
</PatternGroup>
</Operators>
</Block>
<Block Name="small Char" Style="small String" EscapeChar="" IsMultiline="false">
<Scope Start="'" End="'" Style="small String" />
</Block>
<Block Name="small Literal String" Style="small String" EscapeChar="" IsMultiline="true" >
<Scope Start="@"" End=""" Style="small String" Text="@'...'" />
</Block>
<Block Name="small Literal Char" Style="small String" EscapeChar="" IsMultiline="false">
<Scope Start="@'" End="'" Style="small String" />
</Block>
<Style Name="small Code" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small Scope" ForeColor="" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small Region" ForeColor="blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="small XML Comment" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small XML Tag" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small XML Tag Text" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small XML Attrib" ForeColor="gray" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small XML String" ForeColor="gray" BackColor="lightyellow" Bold="false" Italic="false" Underline="false" />
<Style Name="small Comment" ForeColor="Green" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small String" ForeColor="Teal" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small Number" ForeColor="Teal" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="small Operator" ForeColor="Red" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small Keyword" ForeColor="Blue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="small Keyword2" ForeColor="Red" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="small Keyword3" ForeColor="blue" BackColor="" Bold="false" Italic="false" Underline="false" />
<Style Name="small Datatype" ForeColor="DarkBlue" BackColor="" Bold="true" Italic="false" Underline="false" />
<Style Name="small URL" ForeColor="Blue" BackColor="" Bold="false" Italic="false" Underline="true" />
</Language>