summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/lua2dox/lua.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/lua2dox/lua.def')
-rwxr-xr-xMaster/texmf-dist/scripts/lua2dox/lua.def39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/lua2dox/lua.def b/Master/texmf-dist/scripts/lua2dox/lua.def
new file mode 100755
index 00000000000..83af433e61e
--- /dev/null
+++ b/Master/texmf-dist/scripts/lua2dox/lua.def
@@ -0,0 +1,39 @@
+% -*- latex -*-
+% Definition of the Lua language for the listings package
+% Time-stamp: <2008-11-30 15:27:16 rsmith>
+% Written by Roland Smith <rsmith@xs4all.nl> and hereby placed in the public
+% domain.
+
+\lstdefinelanguage{lua}
+ {morekeywords={and,break,do,else,elseif,end,false,for,function,if,in,local,
+ nil,not,or,repeat,return,then,true,until,while},
+ morekeywords={[2]arg,assert,collectgarbage,dofile,error,_G,getfenv,
+ getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,
+ rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,
+ type,unpack,_VERSION,xpcall},
+ morekeywords={[2]coroutine.create,coroutine.resume,coroutine.running,
+ coroutine.status,coroutine.wrap,coroutine.yield},
+ morekeywords={[2]module,require,package.cpath,package.load,package.loaded,
+ package.loaders,package.loadlib,package.path,package.preload,
+ package.seeall},
+ morekeywords={[2]string.byte,string.char,string.dump,string.find,
+ string.format,string.gmatch,string.gsub,string.len,string.lower,
+ string.match,string.rep,string.reverse,string.sub,string.upper},
+ morekeywords={[2]table.concat,table.insert,table.maxn,table.remove,
+ table.sort},
+ morekeywords={[2]math.abs,math.acos,math.asin,math.atan,math.atan2,
+ math.ceil,math.cos,math.cosh,math.deg,math.exp,math.floor,math.fmod,
+ math.frexp,math.huge,math.ldexp,math.log,math.log10,math.max,math.min,
+ math.modf,math.pi,math.pow,math.rad,math.random,math.randomseed,math.sin,
+ math.sinh,math.sqrt,math.tan,math.tanh},
+ morekeywords={[2]io.close,io.flush,io.input,io.lines,io.open,io.output,
+ io.popen,io.read,io.tmpfile,io.type,io.write,file:close,file:flush,
+ file:lines,file:read,file:seek,file:setvbuf,file:write},
+ morekeywords={[2]os.clock,os.date,os.difftime,os.execute,os.exit,os.getenv,
+ os.remove,os.rename,os.setlocale,os.time,os.tmpname},
+ sensitive=true,
+ morecomment=[l]{--},
+ morecomment=[s]{--[[}{]]},
+ morestring=[b]",
+ morestring=[d]'
+ }