############################################################################## # # Lua syntax highlighting for Nano. # # Author: Matthew Wild <mwild1 (at) gmail.com> # License: GPL 3 or later # # Version: 2011-05-05 # # Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt ############################################################################## # Automatically use for '.lua' files syntax "lua" "\.lua$" 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 "\<(debug|string|math|table|io|coroutine|os)\>\." color brightyellow "\<(_G|_VERSION|assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\s*\(" # Standard library color brightyellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write|stdin|stdout|stderr)\>" color brightyellow "math\.\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|min|mod|modf|pi|pow|rad|random|randomseed|sinh|tan)\>" color brightyellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>" color brightyellow "package\.\<(cpath|loaded|loadlib|path|preload|seeall)\>" color brightyellow "string\.\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)\>" color brightyellow "table\.\<(concat|insert|maxn|remove|sort)\>" color brightyellow "coroutine\.\<(create|resume|running|status|wrap|yield)\>" color brightyellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)\>" # File handle methods color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>" # false, nil, true color brightmagenta "\<(false|nil|true)\>" # External files color brightgreen "\<(dofile|require)\>" # Numbers color red "\<([0-9]+)\>" # Symbols color brightmagenta "(\(|\)|\[|\]|\{|\})" # Shebang color brightcyan "^#!.*" # Simple comments color green "\-\-.*$" # Multiline comments color green start="\-\-\[\[" end="\]\]" # Strings #color green "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" # Strings color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" # color red start="\[\[" end="\]\]" # Hex literals color red "0x[0-9a-fA-F]*"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
man-html | Folder | 0755 |
|
|
asm.nanorc | File | 808 B | 0644 |
|
awk.nanorc | File | 1.49 KB | 0644 |
|
c.nanorc | File | 1.51 KB | 0644 |
|
cmake.nanorc | File | 828 B | 0644 |
|
css.nanorc | File | 331 B | 0644 |
|
debian.nanorc | File | 680 B | 0644 |
|
fortran.nanorc | File | 1.98 KB | 0644 |
|
gentoo.nanorc | File | 3.07 KB | 0644 |
|
groff.nanorc | File | 723 B | 0644 |
|
html.nanorc | File | 151 B | 0644 |
|
java.nanorc | File | 624 B | 0644 |
|
lua.nanorc | File | 2.52 KB | 0644 |
|
makefile.nanorc | File | 248 B | 0644 |
|
man.nanorc | File | 305 B | 0644 |
|
mgp.nanorc | File | 219 B | 0644 |
|
mutt.nanorc | File | 95 B | 0644 |
|
nanorc.nanorc | File | 1.1 KB | 0644 |
|
objc.nanorc | File | 1.66 KB | 0644 |
|
ocaml.nanorc | File | 791 B | 0644 |
|
patch.nanorc | File | 267 B | 0644 |
|
perl.nanorc | File | 1.43 KB | 0644 |
|
php.nanorc | File | 711 B | 0644 |
|
pov.nanorc | File | 682 B | 0644 |
|
python.nanorc | File | 527 B | 0644 |
|
ruby.nanorc | File | 1.44 KB | 0644 |
|
sh.nanorc | File | 734 B | 0644 |
|
spec.nanorc | File | 1.89 KB | 0644 |
|
tcl.nanorc | File | 2.06 KB | 0644 |
|
tex.nanorc | File | 141 B | 0644 |
|
xml.nanorc | File | 287 B | 0644 |
|