From dd3257e3f2d2a2dec759b2d2b530ff4dc5444a64 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 24 May 2020 11:20:24 +0800 Subject: Rust take indentation before comment to next line --- test/indent/rust/comment/cmd | 1 + test/indent/rust/comment/in | 8 ++++++++ test/indent/rust/comment/out | 11 +++++++++++ test/indent/rust/comment/rc | 3 +++ 4 files changed, 23 insertions(+) create mode 100644 test/indent/rust/comment/cmd create mode 100644 test/indent/rust/comment/in create mode 100644 test/indent/rust/comment/out create mode 100644 test/indent/rust/comment/rc (limited to 'test/indent/rust/comment') diff --git a/test/indent/rust/comment/cmd b/test/indent/rust/comment/cmd new file mode 100644 index 00000000..8682d51e --- /dev/null +++ b/test/indent/rust/comment/cmd @@ -0,0 +1 @@ +cbar diff --git a/test/indent/rust/comment/in b/test/indent/rust/comment/in new file mode 100644 index 00000000..bb887d68 --- /dev/null +++ b/test/indent/rust/comment/in @@ -0,0 +1,8 @@ + // foo%( ) + + //! foo%( ) + + /// foo%( ) + + println!("hello world"); // foo%( ) + diff --git a/test/indent/rust/comment/out b/test/indent/rust/comment/out new file mode 100644 index 00000000..813ec7f2 --- /dev/null +++ b/test/indent/rust/comment/out @@ -0,0 +1,11 @@ + // foo + // bar + + //! foo + //! bar + + /// foo + /// bar + + println!("hello world"); // foo + bar diff --git a/test/indent/rust/comment/rc b/test/indent/rust/comment/rc new file mode 100644 index 00000000..64064c25 --- /dev/null +++ b/test/indent/rust/comment/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/rust.kak" +set buffer filetype rust -- cgit v1.2.3 From de4b7f3864844aad133b3170cc01780a8aefd9a4 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 31 May 2020 11:10:11 +0800 Subject: Rust indent block comment --- test/indent/rust/comment/in | 4 ++++ test/indent/rust/comment/out | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'test/indent/rust/comment') diff --git a/test/indent/rust/comment/in b/test/indent/rust/comment/in index bb887d68..d546e66a 100644 --- a/test/indent/rust/comment/in +++ b/test/indent/rust/comment/in @@ -2,7 +2,11 @@ //! foo%( ) + //!! foo%( ) + /// foo%( ) + //// foo%( ) + println!("hello world"); // foo%( ) diff --git a/test/indent/rust/comment/out b/test/indent/rust/comment/out index 813ec7f2..6b57b5ef 100644 --- a/test/indent/rust/comment/out +++ b/test/indent/rust/comment/out @@ -4,8 +4,15 @@ //! foo //! bar + //!! foo + //!! bar + /// foo /// bar + //// foo + //// bar + println!("hello world"); // foo bar + -- cgit v1.2.3