kakoune/test/highlight/rust/comment/in
Ivan Tham 4ccb5fd315 Highlight doc tests in rust
Feels a big laggy when system overloaded
2020-05-31 11:47:47 +08:00

89 lines
1.2 KiB
Plaintext

//! # Hello World
//!
//! ```shell
//! $ cargo install
//! ```
//!
//! ```
//! # use foo;
//! foo::bar("Hello world");
//! ```
//!! ```
//!! foo::bar("Hello world");
//!! ```
//// ```
//// foo::bar("Hello world");
//// ```
// ```
// foo::bar("Hello world");
// ```
// make sure the color does not break
/// ```
/// # use foo;
/// foo::bar("Hello world");
/// ```
fn bar(s: &str) {
println!("{}", s);
}
/// ```shell
/// $ cargo install
/// ```
///
/// ```edition2018,no_run
/// # use foo;
/// foo::bar("Hello world");
/// ```
///
/// ```
/// # use foo;
/// foo::bar("Hello world");
/// ```
//!! ```
//!! foo::bar("Hello world");
//!! ```
//// ```
//// foo::bar("Hello world");
//// ```
// ```
// foo::bar("Hello world");
// ```
/**
* ```shell
* $ cargo install
* ```
*
* ```edition2018,no_run
* # use foo;
* foo::bar("Hello world");
* ```
*/
/**
```
# use foo;
foo::bar("Hello world");
```
*/
/***
* ```
* foo::bar("Hello world");
* ```
*/
/*
* ```
* foo::bar("Hello world");
* ```
*/