...

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

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

     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\n
    19April";
    20    let s = r"March \
    21April";
    22
    23    let s = "String split over\n multiple \
    24    lines";
    25}

View as plain text