...

Text file src/github.com/alecthomas/chroma/lexers/testdata/rust.actual

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1#[derive(Debug)]
     2struct Rectangle {
     3    width: u32,
     4    height: u32,
     5}
     6
     7async fn alignof() {}
     8
     9fn main() {
    10    let rect1 = Rectangle { width: 30, height: 50 };
    11
    12    // Some comment
    13    println!("rect1 is {:?}", rect1);
    14
    15    let r#type = "valid";
    16    let i: i128 = 1117;
    17
    18    let s = "March
    19April";
    20    let s = r"March
    21April";
    22
    23}

View as plain text