forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjulia.hrc
157 lines (153 loc) · 7.18 KB
/
julia.hrc
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
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE hrc PUBLIC "-//Cail Lomecb//DTD Colorer HRC take5//EN"
"http://colorer.sf.net/2003/hrc.dtd">
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd">
<!--
Julia Syntax description for Colorer
-->
<type name="julia">
<import type="def"/>
<region name="mlString" parent="def:SymbolStrong"/>
<region name="mlComment" parent="def:Comment"/>
<region name="mlSymb" parent="def:Symbol"/>
<region name="mlKeyWord" parent="def:Keyword"/>
<region name="mlStdFunc" parent="def:TypeKeyword"/>
<region name="mlNumb" parent="def:Number"/>
<region name="mlId" parent="def:Var"/>
<region name="mlLabel" parent="def:Label"/>
<scheme name="julia">
<!-- Comments -->
<block start="/\#\=/" end="/\=\#/" scheme="Comment" region="mlComment"/>
<block start="/\#/" end="/$/" scheme="Comment" region="mlComment"/>
<!-- Strings -->
<regexp match="/".*?"/" region0="mlString"/>
<regexp match="/'.*?'/" region0="mlString"/>
<block start="/(\()/" end="/(\))/" scheme="julia" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/>
<block start="/(\[)/" end="/(\])/" scheme="julia" region00="Symbol" region01="PairStart" region10="Symbol" region11="PairEnd"/>
<!-- Operator brackets -->
<block start="/(\bfunction\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bfor\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bif\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bwhile\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\btype\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bimmutable\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bmacro\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bquote\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bmodule\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bbaremodule\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bdo\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\blet\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\bbegin\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<block start="/(\btry\b)/" end="/(\bend\b)/" scheme="julia" region00="mlKeyWord" region01="PairStart" region10="mlKeyWord" region11="PairEnd"/>
<!-- Symbols -->
<keywords region="mlSymb">
<symb name="+"/>
<symb name="-"/>
<symb name="*"/>
<symb name="/"/>
<symb name="\"/>
<symb name="^"/>
<symb name="'"/>
<symb name="."/>
<symb name="="/>
<symb name="<"/>
<symb name=">"/>
<symb name="~"/>
<symb name="&"/>
<symb name="|"/>
<symb name="["/>
<symb name="]"/>
<symb name="("/>
<symb name=")"/>
<symb name=";"/>
<symb name=":"/>
<symb name="%"/>
<symb name=","/>
<symb name="!"/>
</keywords>
<!-- KeyWords -->
<keywords region="mlKeyWord">
<word name="function"/>
<word name="global"/>
<word name="for"/>
<word name="end"/>
<word name="while"/>
<word name="if"/>
<word name="else"/>
<word name="elseif"/>
<word name="break"/>
<word name="try"/>
<word name="catch"/>
<word name="finally"/>
<word name="const"/>
<word name="immutable"/>
<word name="import"/>
<word name="importall"/>
<word name="export"/>
<word name="type"/>
<word name="typealias"/>
<word name="return"/>
<word name="true"/>
<word name="false"/>
<word name="macro"/>
<word name="quote"/>
<word name="in"/>
<word name="abstract"/>
<word name="module"/>
<word name="using"/>
<word name="continue"/>
<word name="do"/>
<word name="let"/>
<word name="begin"/>
<word name="local"/>
<word name="bitstype"/>
<word name="baremodule"/>
</keywords>
<!-- General types -->
<keywords region="mlStdFunc">
<word name="Array"/>
<word name="String"/>
<word name="Bool"/>
<word name="Number"/>
<word name="Int"/>
<word name="Integer"/>
<word name="Real"/>
<word name="Complex"/>
<word name="FloatingPoint"/>
<word name="Float64"/>
<word name="Float32"/>
<word name="Int8"/>
<word name="Int16"/>
<word name="Int32"/>
<word name="Int64"/>
<word name="Rational"/>
<word name="AbstractArray"/>
<word name="Unsigned"/>
<word name="Signed"/>
<word name="UInt"/>
<word name="UInt8"/>
<word name="UInt16"/>
<word name="UInt32"/>
<word name="UInt64"/>
<word name="Vector"/>
<word name="AbstractVector"/>
<word name="Matrix"/>
<word name="AbstractMatrix"/>
<word name="Type"/>
<word name="IO"/>
<word name="Any"/>
<word name="ASCIIString"/>
<word name="Union"/>
<word name="Dict"/>
<word name="Function"/>
<word name="SubArray"/>
<word name="Range"/>
<word name="Range1"/>
<word name="Symbol"/>
<word name="Expr"/>
</keywords>
</scheme>
</type>
</hrc>