z_mirror/luapls

git clone https://git.raiguard.me/z_mirror/luapls

Caleb HeuerMove demos into a subdirectory6573b0b

main
464 B40 linesraw
1local foo, bar
2
3local i, j = 0;;
4
5local l, m
6
7local helpers = {}
8
9--- Returns the sum of two numbers.
10--- @param a number
11--- @param b number
12--- @return number
13function helpers.add(a, b)
14  return a + b;
15end
16
17--- This is a comment
18  print("foo bar") -- Comment after
19
20  do
21for i = 1, 10 do
22  if i > 5 then
23    break
24  end
25end
26  end
27
28repeat
29  print("hallo " .. i)
30  i = i + 1
31  if i > 20 then
32    return
33  end
34until i == 10
35
36i = 0
37
38while i < 5 do
39  i = i + 0.1
40end