aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/lua-mode-resources/hide-show.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/progmodes/lua-mode-resources/hide-show.lua')
-rw-r--r--test/lisp/progmodes/lua-mode-resources/hide-show.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/lisp/progmodes/lua-mode-resources/hide-show.lua b/test/lisp/progmodes/lua-mode-resources/hide-show.lua
new file mode 100644
index 00000000000..a23b46437bf
--- /dev/null
+++ b/test/lisp/progmodes/lua-mode-resources/hide-show.lua
@@ -0,0 +1,35 @@
1--[[
2This is a
3comment block.
4]]
5local function fun ()
6 print("fun")
7end
8local f = (function ()
9 print(1)
10end)
11for i = 1, 10 do
12 print(i)
13end
14repeat
15 print("repeat")
16until false
17while true do
18 print("while")
19end
20do
21 print(1)
22end
23if true then
24 print(1)
25elseif false then
26 print(0)
27else
28 print(0)
29end
30function f1 (has,
31 lots,
32 of,
33 parameters)
34 print("ok")
35end