/
usr
/
share
/
nano
/
/usr/share/nano
mkdir
upload
Name
Size
Mode
Actions
ada.nanorc
1265
0644
edit
dl
rm
asm.nanorc
687
0644
edit
dl
rm
autoconf.nanorc
638
0644
edit
dl
rm
awk.nanorc
1351
0644
edit
dl
rm
c.nanorc
2000
0644
edit
dl
rm
changelog.nanorc
800
0644
edit
dl
rm
cmake.nanorc
788
0644
edit
dl
rm
css.nanorc
505
0644
edit
dl
rm
debian.nanorc
758
0644
edit
dl
rm
default.nanorc
546
0644
edit
dl
rm
elisp.nanorc
1107
0644
edit
dl
rm
email.nanorc
333
0644
edit
dl
rm
fortran.nanorc
1970
0644
edit
dl
rm
gentoo.nanorc
4224
0644
edit
dl
rm
go.nanorc
1453
0644
edit
dl
rm
groff.nanorc
700
0644
edit
dl
rm
guile.nanorc
586
0644
edit
dl
rm
haskell.nanorc
1009
0644
edit
dl
rm
html.nanorc
1251
0644
edit
dl
rm
java.nanorc
654
0644
edit
dl
rm
javascript.nanorc
822
0644
edit
dl
rm
json.nanorc
856
0644
edit
dl
rm
lua.nanorc
2450
0644
edit
dl
rm
makefile.nanorc
536
0644
edit
dl
rm
man.nanorc
727
0644
edit
dl
rm
markdown.nanorc
947
0644
edit
dl
rm
nanohelp.nanorc
418
0644
edit
dl
rm
nanorc.nanorc
3184
0644
edit
dl
rm
nftables.nanorc
926
0644
edit
dl
rm
objc.nanorc
1505
0644
edit
dl
rm
ocaml.nanorc
859
0644
edit
dl
rm
patch.nanorc
600
0644
edit
dl
rm
perl.nanorc
1704
0644
edit
dl
rm
php.nanorc
1077
0644
edit
dl
rm
po.nanorc
1120
0644
edit
dl
rm
povray.nanorc
637
0644
edit
dl
rm
python.nanorc
1233
0644
edit
dl
rm
ruby.nanorc
1521
0644
edit
dl
rm
rust.nanorc
1023
0644
edit
dl
rm
sh.nanorc
1531
0644
edit
dl
rm
spec.nanorc
2017
0644
edit
dl
rm
sql.nanorc
2919
0644
edit
dl
rm
tcl.nanorc
1996
0644
edit
dl
rm
tex.nanorc
199
0644
edit
dl
rm
texinfo.nanorc
540
0644
edit
dl
rm
xml.nanorc
526
0644
edit
dl
rm
Edit:
/usr/share/nano/lua.nanorc
(2450B)
## Syntax highlighting for Lua. ## Original author: Matthew Wild ## License: GPL version 3 or newer syntax lua "\.lua$" magic "Lua script" comment "--" linter luacheck --no-color color brightwhite "\[\[.*\]\]" # Operators color brightyellow ":|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|#|\<(not|and|or)\>" # Don't partially color ... as an operator color normal "\.\.\." # 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]+)?\>" color red "\<0x[0-9A-Fa-f]+(\.[0-9A-Fa-f]*)?([Pp][+-]?[0-9]+)?\>" # Brackets color brightmagenta "\(|\)|\[|\]|\{|\}" # Shebang color brightcyan "^#!.*" # Strings color red ""(\\.|[^"\])*"|'(\\.|[^'\])*'" # Simple comments and multiline comments color green "--.*" color green start="--\[\[" end="\]\]"
Save
cmd:
run