summaryrefslogtreecommitdiff
path: root/test/indent/rust/comment
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-06-02 18:40:09 +1000
committerMaxime Coste <mawww@kakoune.org>2020-06-02 18:40:09 +1000
commitd43b6799cf807b4484e42fcdf3d9300a736fedd9 (patch)
treef5074fca3d802ea81065aa7338c98c3dab7b48d5 /test/indent/rust/comment
parent0fba373d1d1b852b00db54ad344c69629ef4e0da (diff)
parent12cafe3ed4dbc6d16fb7e54d07d6941985631942 (diff)
Merge remote-tracking branch 'pickfire/rust-dedent'
Diffstat (limited to 'test/indent/rust/comment')
-rw-r--r--test/indent/rust/comment/cmd1
-rw-r--r--test/indent/rust/comment/in12
-rw-r--r--test/indent/rust/comment/out18
-rw-r--r--test/indent/rust/comment/rc3
4 files changed, 34 insertions, 0 deletions
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 @@
+c<ret>bar<esc>
diff --git a/test/indent/rust/comment/in b/test/indent/rust/comment/in
new file mode 100644
index 00000000..d546e66a
--- /dev/null
+++ b/test/indent/rust/comment/in
@@ -0,0 +1,12 @@
+ // foo%( )
+
+ //! foo%( )
+
+ //!! 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..6b57b5ef
--- /dev/null
+++ b/test/indent/rust/comment/out
@@ -0,0 +1,18 @@
+ // foo
+ // bar
+
+ //! foo
+ //! bar
+
+ //!! 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