This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/share/CodeBlocks/lexers/lexer_lua.sample

17 lines
257 B
Plaintext

-- LUA sample script
-- comments start with --
--[[ and this is a multi-line
comment]]
print("Hello world")
function SomeFunction(a, b)
local x = a
x = x + 1
print(a,b,"x="..x)
end
SomeFunction(1, 2)
var = {x = 0, y = 0)
print(var, var.x, var.y)