Julia mode
1
#numbers
2
1234
3
1234im
4
.234
5
.234im
6
2.23im
7
2.3f3
8
23e2
9
0x234
10
11
#strings
12
'a'
13
"asdf"
14
r"regex"
15
b"bytestring"
16
17
"""
18
multiline string
19
"""
20
21
#identifiers
22
a
23
as123
24
function_name!
25
26
#literal identifier multiples
27
3x
28
4[1, 2, 3]
29
30
#dicts and indexing
31
x=[1, 2, 3]
32
x[end-1]
33
x={"julia"=>"language of technical computing"}
34
35
#exception handling
36
try
37
f()
38
catch
39
"Error"
40
finally
41
g()
42
end
43
44
#types
45
immutable Color{T<:Number}
46
r::T
47
g::T
48
b::T
49
end
50
51
#functions
52
function change!(x::Vector{Float64})
53
for i = 1:length(x)
54
x[i] *= 2
55
end
56
end
57
58
#function invocation
59
f('b', (2, 3)...)
60
61
#operators
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
in
107
...
108
//
109
:=
110
.//=
111
.*=
112
./=
113
.^=
114
.%=
115
.+=
116
.-=
117
\=
118
\\=
119
||
120
===
121
&&
122
|=
123
.|=
124
<:
125
>:
126
|>
127
<|
128
::
129
x ? y : z
130
131
#macros
132
2 1+1
133
:x)(
134
135
#keywords and operators
136
if else elseif while for
137
begin let end do
138
try catch finally return break continue
139
global local const
140
export import importall using
141
function macro module baremodule
142
type immutable quote
143
true false enumerate
144
145
146
MIME types defined: text/x-julia
.