mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 23:10:28 -08:00
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Add list type to 'treesit-thing-settings'. * lisp/progmodes/hideshow.el (hs-special-modes-alist): Remove regular expression based implementation. * test/lisp/progmodes/lua-ts-mode-resources/hide-show.lua: New file. * test/lisp/progmodes/lua-ts-mode-tests.el (lua-ts-test-hideshow): Add test. (Bug#76693)
43 lines
491 B
Lua
43 lines
491 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
|
|
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)
|