/usr/share/codeblocks/lexers/lexer_lua.sample is in codeblocks-common 13.12-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | -- 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)
|