## Syntax highlighting for Lua. # ## Original author: Matthew Wild <mwild1 (at) gmail.com> ## License: GPL 3 or later syntax "lua" "\.lua$" magic "Lua script" comment "--" color brightwhite "\[\[.*\]\]" # Operators color brightyellow ":|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" # Statements color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return|break)\>" # Keywords color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\(" # Standard library color brightyellow "\<coroutine\.(create|isyieldable|resume|running|status|wrap|yield)\>" color brightyellow "\<debug\.(debug|(get|set)(fenv|hook|local|metatable|(up|user)value)|getinfo|getregistry|traceback|upvalue(id|join))\>" color brightyellow "\<io\.(close|flush|input|lines|output|p?open|read|tmpfile|type|write|std(in|out|err))\>" color brightyellow "\<math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log)\>" color brightyellow "\<math\.((max|min)(integer)?|modf?|pi|pow|rad|random(seed)?|sinh?|sqrt|tan|tointeger|type|ult)\>" color brightyellow "\<os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>" color brightyellow "\<package\.(config|cpath|loaded|loadlib|path|preload|searchers|searchpath|seeall)\>" color brightyellow "\<string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)\>" color brightyellow "\<table\.(concat|insert|maxn|move|pack|remove|sort|unpack)\>" color brightyellow "\<utf8\.(char|charpattern|codepoint|codes|len|offset)\>" # File handle methods color brightyellow ":(close|flush|lines|read|seek|setvbuf|write)\>" # External files color brightgreen "\<(dofile|require)\>" # Special words color brightmagenta "\<(false|nil|true)\>" # Decimal and hexadecimal numbers color red "\<[0-9]+(\.[0-9]*)?([Ee][+-]?[0-9]+)?\>" icolor red "\<0x[0-9a-f]+(\.[0-9a-f]*)?(p[+-]?[0-9]+)?\>" # Brackets color brightmagenta "\(|\)|\[|\]|\{|\}" # Shebang color brightcyan "^#!.*" # Simple comments and multiline comments color green "--.*" color green start="--\[\[" end="\]\]" # Strings color red ""(\\.|[^"\])*"|'(\\.|[^'\])*'"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
asm.nanorc | File | 884 B | 0644 |
|
autoconf.nanorc | File | 557 B | 0644 |
|
awk.nanorc | File | 1.32 KB | 0644 |
|
c.nanorc | File | 1.72 KB | 0644 |
|
changelog.nanorc | File | 711 B | 0644 |
|
cmake.nanorc | File | 827 B | 0644 |
|
css.nanorc | File | 346 B | 0644 |
|
debian.nanorc | File | 790 B | 0644 |
|
default.nanorc | File | 421 B | 0644 |
|
elisp.nanorc | File | 1.08 KB | 0644 |
|
fortran.nanorc | File | 1.92 KB | 0644 |
|
gentoo.nanorc | File | 4.13 KB | 0644 |
|
go.nanorc | File | 1.3 KB | 0644 |
|
groff.nanorc | File | 713 B | 0644 |
|
guile.nanorc | File | 590 B | 0644 |
|
html.nanorc | File | 1.18 KB | 0644 |
|
java.nanorc | File | 655 B | 0644 |
|
javascript.nanorc | File | 765 B | 0644 |
|
json.nanorc | File | 881 B | 0644 |
|
lua.nanorc | File | 2.31 KB | 0644 |
|
makefile.nanorc | File | 338 B | 0644 |
|
man.nanorc | File | 458 B | 0644 |
|
mgp.nanorc | File | 231 B | 0644 |
|
mutt.nanorc | File | 187 B | 0644 |
|
nanohelp.nanorc | File | 392 B | 0644 |
|
nanorc.nanorc | File | 2.58 KB | 0644 |
|
nftables.nanorc | File | 794 B | 0644 |
|
objc.nanorc | File | 1.76 KB | 0644 |
|
ocaml.nanorc | File | 861 B | 0644 |
|
patch.nanorc | File | 592 B | 0644 |
|
perl.nanorc | File | 1.43 KB | 0644 |
|
php.nanorc | File | 1.05 KB | 0644 |
|
po.nanorc | File | 900 B | 0644 |
|
postgresql.nanorc | File | 3 KB | 0644 |
|
pov.nanorc | File | 634 B | 0644 |
|
python.nanorc | File | 968 B | 0644 |
|
ruby.nanorc | File | 1.48 KB | 0644 |
|
rust.nanorc | File | 1.08 KB | 0644 |
|
sh.nanorc | File | 1.17 KB | 0644 |
|
spec.nanorc | File | 1.88 KB | 0644 |
|
tcl.nanorc | File | 2.13 KB | 0644 |
|
tex.nanorc | File | 202 B | 0644 |
|
texinfo.nanorc | File | 467 B | 0644 |
|
xml.nanorc | File | 529 B | 0644 |
|