summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/lua-ts-mode-resources/hide-show.lua
blob: a4831eba2734a58e9acc8ab3b59923aac17c7cb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--[[
This is a
comment block.
]]
local function fun ()
    print("fun")
end
local f = (function ()
    print(1)
end)
for i = 1, 10 do
  print(i)
end
repeat
    print("repeat")
until false
while true do
    print("while")
end
do
    print(1)
end
local t = {
    a=1,
    b=2,
}
if true then
    print(1)
elseif false then
    print(0)
else
    print(0)
end
function f1 (has,
             lots,
             of,
             parameters)
    print("ok")
end
print(1,
      2,
      3,
      4)