mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 16:21:07 -08:00
* test/lisp/progmodes/lua-mode-resources/font-lock.lua: * test/lisp/progmodes/lua-mode-resources/hide-show.lua: * test/lisp/progmodes/lua-mode-resources/indent.erts: * test/lisp/progmodes/lua-mode-resources/movement.erts: * test/lisp/progmodes/lua-mode-resources/which-function.lua: * test/lisp/progmodes/lua-mode-tests.el: New file.
35 lines
423 B
Lua
35 lines
423 B
Lua
--[[
|
|
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
|
|
if true then
|
|
print(1)
|
|
elseif false then
|
|
print(0)
|
|
else
|
|
print(0)
|
|
end
|
|
function f1 (has,
|
|
lots,
|
|
of,
|
|
parameters)
|
|
print("ok")
|
|
end
|