From 4454459fb2ce64caaf1d0e32472ad7dcdbf3e436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Sat, 13 Mar 2021 23:51:57 +0100 Subject: tests/indent: add basic examples for C and Rust --- lua/tests/indent/rust/basic.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lua/tests/indent/rust/basic.rs (limited to 'lua/tests/indent/rust/basic.rs') diff --git a/lua/tests/indent/rust/basic.rs b/lua/tests/indent/rust/basic.rs new file mode 100644 index 00000000..54d38cf6 --- /dev/null +++ b/lua/tests/indent/rust/basic.rs @@ -0,0 +1,7 @@ +fn foo(x: i32) { + if (x > 10) { + return 10; + } else { + return x; + } +} -- cgit v1.2.3