Rust mode // Demo code. type foo = int; enum bar { some(int, foo), none } fn check_crate(x: int) { let v = 10; match foo { 1 ... 3 { print_foo(); if x { blah().to_string(); } } (x, y) { "bye" } _ { "hi" } } } MIME types defined: text/x-rustsrc.