kakoune/test/indent/rust/line-comment-close/out
Ivan Tham 974684aa68 Improve rust comment closing handling
/// foo
    ///%( )

    /// foo
    /// %( )

With `c<ret>bar<esc>`,

    /// foo
    bar

    /// foo
    ///
    /// bar

Based on c-family block comment handling, this patch also add rust
block comment indentation.

This affects `o` behavior on empty comment but it allows a way more
efficient way to clear comments.
2020-07-09 23:02:50 +08:00

34 lines
256 B
Plaintext

// foo
//
// bar
// foo
bar
//!
//! bar
bar
//!!
//!! bar
bar
///
/// bar
bar
////
//// bar
bar
println!("hello world"); //
bar
println!("hello world"); //
bar