1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 23:10:28 -08:00
emacs/test/lisp/progmodes/lua-ts-mode-resources/hide-show.lua
john muhl 2f1b1414f7 Use TS to support 'hs-minor-mode' in 'lua-ts-mode'
* 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)
2025-03-08 20:50:59 +02:00

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)