~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Ruby/RubyBinding/Project/Resources/Ruby.xshd

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<SyntaxDefinition name="Ruby" extensions=".rb">
 
2
        
 
3
        <Properties>
 
4
                <Property name="LineComment" value="#"/>
 
5
        </Properties>
 
6
        
 
7
        <Digits name="Digits" color="DarkBlue"/>
 
8
 
 
9
        <RuleSets>
 
10
                <RuleSet ignorecase="false">
 
11
                        
 
12
                        <Delimiters>()[]{}@,:.`=;+-*/%~ &amp;|^&gt;&lt;</Delimiters>
 
13
                        
 
14
                        <Span name="Char" stopateol="true" color="Magenta" escapecharacter="\">
 
15
                                <Begin>'</Begin>
 
16
                                <End>'</End>
 
17
                        </Span>
 
18
                        
 
19
                        <Span name="DocComment" color="Green">
 
20
                                <Begin>"""</Begin>
 
21
                                <End>"""</End>
 
22
                        </Span>
 
23
                        
 
24
                        <Span name="MultiLineComment" color="Green">
 
25
                                <Begin>=begin</Begin>
 
26
                                <End>=end</End>
 
27
                        </Span>
 
28
                        
 
29
                        <Span name="LineComment" stopateol="true" color="Green">
 
30
                                <Begin>#</Begin>
 
31
                        </Span>
 
32
                        
 
33
                        <Span name="String" stopateol="true" color="Blue" escapecharacter="\">
 
34
                                <Begin>"</Begin>
 
35
                                <End>"</End>
 
36
                        </Span>
 
37
                        
 
38
                        <MarkPrevious bold="true" color="MidnightBlue">(</MarkPrevious>
 
39
 
 
40
                        <KeyWords name="BuiltInStatements" bold="true" color="MidnightBlue">
 
41
                                <Key word="abort"/>
 
42
                                <Key word="Array"/>
 
43
                                <Key word="at_exit"/>
 
44
                                <Key word="autoload"/>
 
45
                                <Key word="binding"/>
 
46
                                <Key word="callcc"/>
 
47
                                <Key word="caller"/>
 
48
                                <Key word="chomp"/>
 
49
                                <Key word="chop"/>
 
50
                                <Key word="eval"/>
 
51
                                <Key word="exec"/>
 
52
                                <Key word="exit"/>
 
53
                                <Key word="fail"/>
 
54
                                <Key word="Float"/>
 
55
                                <Key word="fork"/>
 
56
                                <Key word="format"/>
 
57
                                <Key word="gets"/>
 
58
                                <Key word="global_variables"/>
 
59
                                <Key word="gsub"/>
 
60
                                <Key word="Integer"/>
 
61
                                <Key word="lambda"/>
 
62
                                <Key word="proc"/>
 
63
                                <Key word="load"/>
 
64
                                <Key word="local_variables"/>
 
65
                                <Key word="loop"/>
 
66
                                <Key word="open"/>
 
67
                                <Key word="p"/>
 
68
                                <Key word="print"/>
 
69
                                <Key word="print"/>
 
70
                                <Key word="printf"/>
 
71
                                <Key word="putc"/>
 
72
                                <Key word="puts"/>
 
73
                                <Key word="rand"/>
 
74
                                <Key word="readline"/>
 
75
                                <Key word="scan"/>
 
76
                                <Key word="select"/>
 
77
                                <Key word="set_trace_func"/>
 
78
                                <Key word="sleep"/>
 
79
                                <Key word="split"/>
 
80
                                <Key word="sprintf"/>
 
81
                                <Key word="srand"/>
 
82
                                <Key word="String"/>
 
83
                                <Key word="syscall"/>
 
84
                                <Key word="system"/>
 
85
                                <Key word="sub"/>
 
86
                                <Key word="test"/>
 
87
                                <Key word="throw"/>
 
88
                                <Key word="trace_var"/>
 
89
                                <Key word="trap"/>
 
90
                                <Key word="untrace_var"/>
 
91
                        </KeyWords>
 
92
                        
 
93
                        <KeyWords name="ClassStatement" color="Blue" bold="true">
 
94
                                <Key word="class"/>
 
95
                                <Key word="module"/>
 
96
                                <Key word="public"/>
 
97
                                <Key word="protected"/>
 
98
                                <Key word="private"/>
 
99
                        </KeyWords>
 
100
                        
 
101
                        <KeyWords name="ExceptionHandlingStatements" bold="true" color="Teal">
 
102
                                <Key word="begin"/>
 
103
                                <Key word="rescue"/>
 
104
                                <Key word="ensure"/>
 
105
                                <Key word="raise"/>
 
106
                                <Key word="catch"/>
 
107
                        </KeyWords>
 
108
                        
 
109
                        <KeyWords name="FunctionDefinition" bold="true" color="Blue">
 
110
                                <Key word="def"/>
 
111
                                <Key word="end"/>
 
112
                                <Key word="undef"/>
 
113
                        </KeyWords>
 
114
                        
 
115
                        <KeyWords name="Imports" bold="true" color="Green">
 
116
                                <Key word="import"/>
 
117
                                <Key word="alias"/>
 
118
                        </KeyWords>
 
119
                        
 
120
                        <KeyWords name="IterationStatements" bold="true" color="Blue">
 
121
                                <Key word="for"/>
 
122
                                <Key word="do"/>
 
123
                                <Key word="in"/>
 
124
                                <Key word="while"/>
 
125
                                <Key word="until"/>
 
126
                        </KeyWords>
 
127
                        
 
128
                        <KeyWords name="JumpStatements" color="Navy">
 
129
                                <Key word="break"/>
 
130
                                <Key word="yield"/>
 
131
                                <Key word="redo"/>
 
132
                                <Key word="return"/>
 
133
                                <Key word="retry"/>
 
134
                                <Key word="next"/>
 
135
                        </KeyWords>
 
136
                
 
137
                        <KeyWords name="OperatorStatements" bold="true" color="DarkCyan">
 
138
                                <Key word="and"/>
 
139
                                <Key word="not"/>
 
140
                                <Key word="or"/>
 
141
                        </KeyWords>
 
142
                        
 
143
                        <KeyWords name="NullStatement" color="Gray">
 
144
                                <Key word="nil"/>
 
145
                        </KeyWords>                     
 
146
                
 
147
                        <KeyWords name="SelectionStatements" bold="true" color="Blue">
 
148
                                <Key word="elsif"/>
 
149
                                <Key word="else"/>
 
150
                                <Key word="if"/>
 
151
                                <Key word="then"/>
 
152
                                <Key word="case"/>
 
153
                                <Key word="unless"/>
 
154
                        </KeyWords>
 
155
                
 
156
                        <KeyWords name="BooleanStatements" color="DarkViolet">
 
157
                                <Key word="true"/>
 
158
                                <Key word="false"/>
 
159
                        </KeyWords>
 
160
                        
 
161
                        <KeyWords name="DefinedStatement" color="DarkViolet">
 
162
                                <Key word="defined"/>
 
163
                        </KeyWords>
 
164
                        
 
165
                        <KeyWords name="ClassSelfStatement" color="DarkViolet">
 
166
                                <Key word="self"/>
 
167
                        </KeyWords>
 
168
                        
 
169
                        <KeyWords name="ClassInheritanceStatement" color="DarkViolet">
 
170
                                <Key word="super"/>
 
171
                        </KeyWords>
 
172
                </RuleSet>
 
173
        </RuleSets>
 
174
</SyntaxDefinition>