Variable: lua--builtins
lua--builtins is a variable defined in lua-mode.el.gz.
Value
"\\(?:^\\|[^:. ]\\|[.][.]\\)[ ]*\\(?:\\(?1:\\_<_G\\_>\\)\\|\\(?1:\\_<_VERSION\\_>\\)\\|\\(?1:\\_<assert\\_>\\)\\|\\(?1:\\_<collectgarbage\\_>\\)\\|\\(?1:\\_<dofile\\_>\\)\\|\\(?1:\\_<error\\_>\\)\\|\\(?1:\\_<getfenv\\_>\\)\\|\\(?1:\\_<getmetatable\\_>\\)\\|\\(?1:\\_<ipairs\\_>\\)\\|\\(?1:\\_<load\\_>\\)\\|\\(?1:\\_<loadfile\\_>\\)\\|\\(?1:\\_<loadstring\\_>\\)\\|\\(?1:\\_<module\\_>\\)\\|\\(?1:\\_<next\\_>\\)\\|\\(?1:\\_<pairs\\_>\\)\\|\\(?1:\\_<pcall\\_>\\)\\|\\(?1:\\_<print\\_>\\)\\|\\(?1:\\_<rawequal\\_>\\)\\|\\(?1:\\_<rawget\\_>\\)\\|\\(?1:\\_<rawlen\\_>\\)\\|\\(?1:\\_<rawset\\_>\\)\\|\\(?1:\\_<require\\_>\\)\\|\\(?1:\\_<select\\_>\\)\\|\\(?1:\\_<setfenv\\_>\\)\\|\\(?1:\\_<setmetatable\\_>\\)\\|\\(?1:\\_<tonumber\\_>\\)\\|\\(?1:\\_<tostring\\_>\\)\\|\\(?1:\\_<type\\_>\\)\\|\\(?1:\\_<unpack\\_>\\)\\|\\(?1:\\_<xpcall\\_>\\)\\|\\(?1:\\_<self\\_>\\)\\|\\(?1:\\_<warn\\_>\\)\\|\\(?1:\\_<bit32\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:arshift\\|b\\(?:and\\|not\\|or\\|test\\|xor\\)\\|extract\\|l\\(?:rotate\\|shift\\)\\|r\\(?:eplace\\|rotate\\|shift\\)\\)\\)\\_>\\)?\\|\\(?1:\\_<coroutine\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:create\\|isyieldable\\|r\\(?:esume\\|unning\\)\\|status\\|wrap\\|yield\\)\\)\\_>\\)?\\|\\(?1:\\_<debug\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:debug\\|get\\(?:fenv\\|hook\\|info\\|local\\|metatable\\|registry\\|u\\(?:\\(?:p\\|ser\\)value\\)\\)\\|set\\(?:fenv\\|hook\\|local\\|\\(?:metatabl\\|u\\(?:\\(?:p\\|ser\\)valu\\)\\)e\\)\\|traceback\\|upvalue\\(?:id\\|join\\)\\)\\)\\_>\\)?\\|\\(?1:\\_<io\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:close\\|flush\\|input\\|lines\\|o\\(?:pen\\|utput\\)\\|popen\\|read\\|std\\(?:err\\|in\\|out\\)\\|\\(?:t\\(?:mpfil\\|yp\\)\\|writ\\)e\\)\\)\\_>\\)?\\|\\(?1:\\_<math\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:a\\(?:bs\\|cos\\|sin\\|tan2?\\)\\|c\\(?:eil\\|osh?\\)\\|deg\\|exp\\|f\\(?:loor\\|mod\\|rexp\\)\\|huge\\|l\\(?:dexp\\|og\\(?:10\\)?\\)\\|m\\(?:ax\\(?:integer\\)?\\|in\\(?:integer\\)?\\|odf\\)\\|p\\(?:i\\|ow\\)\\|ra\\(?:d\\|ndom\\(?:seed\\)?\\)\\|s\\(?:inh?\\|qrt\\)\\|t\\(?:anh?\\|ointeger\\|ype\\)\\|ult\\)\\)\\_>\\)?\\|\\(?1:\\_<os\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:clock\\|d\\(?:\\(?:at\\|ifftim\\)e\\)\\|ex\\(?:ecute\\|it\\)\\|getenv\\|\\(?:re\\(?:mov\\|nam\\)\\|setlocal\\|t\\(?:\\(?:i\\|mpna\\)m\\)\\)e\\)\\)\\_>\\)?\\|\\(?1:\\_<package\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:c\\(?:onfig\\|path\\)\\|load\\(?:e\\(?:d\\|rs\\)\\|lib\\)\\|p\\(?:ath\\|reload\\)\\|se\\(?:arch\\(?:ers\\|path\\)\\|eall\\)\\)\\)\\_>\\)?\\|\\(?1:\\_<string\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:byte\\|char\\|dump\\|f\\(?:ind\\|ormat\\)\\|g\\(?:match\\|sub\\)\\|l\\(?:en\\|ower\\)\\|match\\|pack\\(?:size\\)?\\|re\\(?:p\\|verse\\)\\|sub\\|u\\(?:npack\\|pper\\)\\)\\)\\_>\\)?\\|\\(?1:\\_<table\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:c\\(?:oncat\\|reate\\)\\|insert\\|m\\(?:axn\\|ove\\)\\|pack\\|remove\\|sort\\|unpack\\)\\)\\_>\\)?\\|\\(?1:\\_<utf8\\_>\\)\\(?:[ ]*\\.[ ]*\\_<\\(?2:\\(?:c\\(?:har\\(?:pattern\\)?\\|ode\\(?:point\\|s\\)\\)\\|len\\|offset\\)\\)\\_>\\)?\\)"
Documentation
A regexp that matches Lua builtin functions & variables.
This is a compilation of 5.1-5.4 builtins taken from the index of respective Lua reference manuals.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
;; The whole defconst is inside eval-when-compile, because it's later
;; referenced inside another eval-and-compile block.
(eval-and-compile
(defconst lua--builtins
(let* ((modules
'("_G" "_VERSION" "assert" "collectgarbage" "dofile" "error" "getfenv"
"getmetatable" "ipairs" "load" "loadfile" "loadstring" "module"
"next" "pairs" "pcall" "print" "rawequal" "rawget" "rawlen" "rawset"
"require" "select" "setfenv" "setmetatable" "tonumber" "tostring"
"type" "unpack" "xpcall" "self" "warn"
("bit32" . ("arshift" "band" "bnot" "bor" "btest" "bxor" "extract"
"lrotate" "lshift" "replace" "rrotate" "rshift"))
("coroutine" . ("create" "isyieldable" "resume" "running" "status"
"wrap" "yield"))
("debug" . ("debug" "getfenv" "gethook" "getinfo" "getlocal"
"getmetatable" "getregistry" "getupvalue" "getuservalue"
"setfenv" "sethook" "setlocal" "setmetatable"
"setupvalue" "setuservalue" "traceback" "upvalueid"
"upvaluejoin"))
("io" . ("close" "flush" "input" "lines" "open" "output" "popen"
"read" "stderr" "stdin" "stdout" "tmpfile" "type" "write"))
("math" . ("abs" "acos" "asin" "atan" "atan2" "ceil" "cos" "cosh"
"deg" "exp" "floor" "fmod" "frexp" "huge" "ldexp" "log"
"log10" "max" "maxinteger" "min" "mininteger" "modf" "pi"
"pow" "rad" "random" "randomseed" "sin" "sinh" "sqrt"
"tan" "tanh" "tointeger" "type" "ult"))
("os" . ("clock" "date" "difftime" "execute" "exit" "getenv"
"remove" "rename" "setlocale" "time" "tmpname"))
("package" . ("config" "cpath" "loaded" "loaders" "loadlib" "path"
"preload" "searchers" "searchpath" "seeall"))
("string" . ("byte" "char" "dump" "find" "format" "gmatch" "gsub"
"len" "lower" "match" "pack" "packsize" "rep" "reverse"
"sub" "unpack" "upper"))
("table" . ("concat" "create" "insert" "maxn" "move" "pack" "remove"
"sort" "unpack"))
("utf8" . ("char" "charpattern" "codepoint" "codes" "len"
"offset")))))
(cl-labels
((module-name-re (x)
(concat "\\(?1:\\_<"
(if (listp x) (car x) x)
"\\_>\\)"))
(module-members-re (x)
(if (listp x)
(concat "\\(?:[ \t]*\\.[ \t]*"
"\\_<\\(?2:"
(regexp-opt (cdr x))
"\\)\\_>\\)?")
"")))
(concat
;; Common prefix:
;; - beginning-of-line
;; - or neither of [ '.', ':' ] to exclude "foo.string.rep"
;; - or concatenation operator ".."
"\\(?:^\\|[^:. \t]\\|[.][.]\\)"
;; Optional whitespace
"[ \t]*"
"\\(?:"
;; Any of modules/functions
(mapconcat (lambda (x)
(concat (module-name-re x) (module-members-re x)))
modules
"\\|")
"\\)")))
"A regexp that matches Lua builtin functions & variables.
This is a compilation of 5.1-5.4 builtins taken from the index of
respective Lua reference manuals."))