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
|
--[[ coding:UTF-8
folding structure examples ]]
-- Use all the folding keywords:
-- do end function if repeat until while
function first()
-- Comment
if op == "+" then
r = a + b
elseif op == "-" then
r = a - b
elseif op == "*" then
r = a*b
elseif op == "/" then
r = a/b
else
error("invalid operation")
end
for i=1,10 do
print(i)
end
while a[i] do
print(a[i])
i = i + 1
end
-- print the first non-empty line
repeat
line = io.read()
until line ~= ""
print(line)
end
-- { ... } folds
markers = {
256,
128,
}
|