1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-18 17:02:06 +03:00
kakoune/test/indent/rust
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
..
after-open Block indent on newline when previous line is '(stuff' and move 'stuff' to own line 2019-03-28 13:17:57 -04:00
after-open-with-chars Block indent on newline when previous line is '(stuff' and move 'stuff' to own line 2019-03-28 13:17:57 -04:00
after-where Rust indent after standalone where 2020-05-31 18:13:04 +08:00
align-closing-brace Block indent on newline when previous line is '(stuff' and move 'stuff' to own line 2019-03-28 13:17:57 -04:00
align-closing-paren Block indent on newline when previous line is '(stuff' and move 'stuff' to own line 2019-03-28 13:17:57 -04:00
block-comment Improve rust comment closing handling 2020-07-09 23:02:50 +08:00
block-comment-close Improve rust comment closing handling 2020-07-09 23:02:50 +08:00
dedent Rust indent block comment 2020-05-31 18:07:17 +08:00
line-comment Improve rust comment closing handling 2020-07-09 23:02:50 +08:00
line-comment-close Improve rust comment closing handling 2020-07-09 23:02:50 +08:00
on-open-paren Rust dedent { after where clause 2020-06-02 00:26:47 +08:00