Back to Gogs

CodeMirror

public/plugins/codemirror-5.17.0/mode/rust/index.html

0.14.2259 B
Original Source

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.