mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 19:22:30 +00:00
chore: initial commit
This commit is contained in:
commit
70b00c5c38
965 changed files with 264882 additions and 0 deletions
13
vendor/lua-5.1.3/test/globals.lua
vendored
Normal file
13
vendor/lua-5.1.3/test/globals.lua
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- reads luac listings and reports global variable usage
|
||||
-- lines where a global is written to are marked with "*"
|
||||
-- typical usage: luac -p -l file.lua | lua globals.lua | sort | lua table.lua
|
||||
|
||||
while 1 do
|
||||
local s=io.read()
|
||||
if s==nil then break end
|
||||
local ok,_,l,op,g=string.find(s,"%[%-?(%d*)%]%s*([GS])ETGLOBAL.-;%s+(.*)$")
|
||||
if ok then
|
||||
if op=="S" then op="*" else op="" end
|
||||
io.write(g,"\t",l,op,"\n")
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue