summaryrefslogtreecommitdiff
path: root/test/indent/rust/comment
diff options
context:
space:
mode:
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