Rust mode

x
 
1
// Demo code.
2
3
type foo<T> = int;
4
enum bar {
5
    some(int, foo<float>),
6
    none
7
}
8
9
fn check_crate(x: int) {
10
    let v = 10;
11
    match foo {
12
        1 ... 3 {
13
            print_foo();
14
            if x {
15
                blah().to_string();
16
            }
17
        }
18
        (x, y) { "bye" }
19
        _ { "hi" }
20
    }
21
}
22

MIME types defined: text/x-rustsrc.