From 81b6091ef6b2cf140b690a1b185b205e5e00df0d Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 2 Apr 2023 22:13:24 -0600 Subject: [PATCH] nano syntaxes, vscode css, bug.n backlog --- common/nano/nanorc | 28 +- common/nano/syntax/awk.nanorc | 68 +++-- common/nano/syntax/c.nanorc | 95 +++--- common/nano/syntax/cmake.nanorc | 54 ++-- common/nano/syntax/colortest.nanorc | 239 ++++++++++++++- common/nano/syntax/conf.nanorc | 20 +- common/nano/syntax/csharp.nanorc | 63 ++-- common/nano/syntax/css.nanorc | 71 ++++- common/nano/syntax/default.nanorc | 24 ++ common/nano/syntax/diff.nanorc | 32 ++ common/nano/syntax/dot.nanorc | 8 - common/nano/syntax/dotenv.nanorc | 20 +- common/nano/syntax/etc-hosts.nanorc | 18 ++ common/nano/syntax/gemini.nanorc | 21 -- common/nano/syntax/git.nanorc | 148 +++++----- common/nano/syntax/gitignore.nanorc | 3 - common/nano/syntax/glsl.nanorc | 50 +++- common/nano/syntax/go.nanorc | 65 +++-- common/nano/syntax/gophermap.nanorc | 18 ++ common/nano/syntax/gradle.nanorc | 20 +- common/nano/syntax/html.nanorc | 276 ++++++++++++++++-- common/nano/syntax/ini.nanorc | 39 ++- common/nano/syntax/inputrc.nanorc | 33 ++- common/nano/syntax/java.nanorc | 70 +++-- common/nano/syntax/javascript.nanorc | 82 ++++-- common/nano/syntax/json.nanorc | 41 ++- common/nano/syntax/kotlin.nanorc | 20 +- common/nano/syntax/license | 16 - common/nano/syntax/lua.nanorc | 121 +++----- common/nano/syntax/m3u.nanorc | 18 ++ common/nano/syntax/makefile.nanorc | 56 ++-- common/nano/syntax/man.nanorc | 40 ++- common/nano/syntax/markdown.nanorc | 73 ++--- common/nano/syntax/nanorc.nanorc | 87 +++--- common/nano/syntax/nginx.nanorc | 179 +++++++++++- common/nano/syntax/nmap.nanorc | 20 +- common/nano/syntax/patch.nanorc | 31 +- common/nano/syntax/php.nanorc | 42 +++ common/nano/syntax/pkg-config.nanorc | 35 ++- common/nano/syntax/pkgbuild.nanorc | 67 +++-- common/nano/syntax/powershell.nanorc | 20 +- common/nano/syntax/properties.nanorc | 32 +- common/nano/syntax/puppet.nanorc | 38 --- common/nano/syntax/python.nanorc | 93 +++--- common/nano/syntax/rainbowindent.txt | 17 ++ common/nano/syntax/readme.md | 116 -------- common/nano/syntax/rust.nanorc | 20 +- common/nano/syntax/sed.nanorc | 33 ++- common/nano/syntax/sh.nanorc | 76 +++-- common/nano/syntax/sql.nanorc | 20 +- common/nano/syntax/systemd.nanorc | 41 ++- common/nano/syntax/toml.nanorc | 20 +- common/nano/syntax/ts.nanorc | 20 +- common/nano/syntax/vi.nanorc | 38 ++- common/nano/syntax/x11basic.nanorc | 172 ----------- common/nano/syntax/xml.nanorc | 54 ++-- common/nano/syntax/xresources.nanorc | 37 ++- common/nano/syntax/yaml.nanorc | 50 ++-- common/nano/syntax/zig.nanorc | 21 ++ common/nano/syntax/zsh.nanorc | 20 +- common/vscode/vscode.css | 110 +++++++ windows/home/AppData/Roaming/bug.n/Config.ini | 19 +- 62 files changed, 2331 insertions(+), 1147 deletions(-) create mode 100644 common/nano/syntax/default.nanorc create mode 100644 common/nano/syntax/diff.nanorc delete mode 100644 common/nano/syntax/dot.nanorc delete mode 100644 common/nano/syntax/gemini.nanorc delete mode 100644 common/nano/syntax/gitignore.nanorc delete mode 100644 common/nano/syntax/license create mode 100644 common/nano/syntax/php.nanorc delete mode 100644 common/nano/syntax/puppet.nanorc create mode 100644 common/nano/syntax/rainbowindent.txt delete mode 100644 common/nano/syntax/readme.md delete mode 100644 common/nano/syntax/x11basic.nanorc create mode 100644 common/vscode/vscode.css diff --git a/common/nano/nanorc b/common/nano/nanorc index a73f70d..ae932fc 100644 --- a/common/nano/nanorc +++ b/common/nano/nanorc @@ -10,7 +10,7 @@ set indicator set tabsize 2 #colors -set minicolor lightcyan,lightblack +set minicolor lightmagenta,lightblack set scrollercolor white,black set numbercolor lightblack,normal set errorcolor red,black @@ -46,12 +46,11 @@ include ~/.config/nano/syntax/conf.nanorc include ~/.config/nano/syntax/csharp.nanorc include ~/.config/nano/syntax/css.nanorc include ~/.config/nano/syntax/csv.nanorc -include ~/.config/nano/syntax/dot.nanorc +include ~/.config/nano/syntax/default.nanorc +include ~/.config/nano/syntax/diff.nanorc include ~/.config/nano/syntax/dotenv.nanorc include ~/.config/nano/syntax/etc-hosts.nanorc -include ~/.config/nano/syntax/gemini.nanorc include ~/.config/nano/syntax/git.nanorc -include ~/.config/nano/syntax/gitignore.nanorc include ~/.config/nano/syntax/glsl.nanorc include ~/.config/nano/syntax/go.nanorc include ~/.config/nano/syntax/gophermap.nanorc @@ -72,11 +71,11 @@ include ~/.config/nano/syntax/nanorc.nanorc include ~/.config/nano/syntax/nginx.nanorc include ~/.config/nano/syntax/nmap.nanorc include ~/.config/nano/syntax/patch.nanorc +include ~/.config/nano/syntax/php.nanorc include ~/.config/nano/syntax/pkg-config.nanorc include ~/.config/nano/syntax/pkgbuild.nanorc include ~/.config/nano/syntax/powershell.nanorc include ~/.config/nano/syntax/properties.nanorc -include ~/.config/nano/syntax/puppet.nanorc include ~/.config/nano/syntax/python.nanorc include ~/.config/nano/syntax/rust.nanorc include ~/.config/nano/syntax/sed.nanorc @@ -86,7 +85,6 @@ include ~/.config/nano/syntax/systemd.nanorc include ~/.config/nano/syntax/toml.nanorc include ~/.config/nano/syntax/ts.nanorc include ~/.config/nano/syntax/vi.nanorc -include ~/.config/nano/syntax/x11basic.nanorc include ~/.config/nano/syntax/xml.nanorc include ~/.config/nano/syntax/xresources.nanorc include ~/.config/nano/syntax/yaml.nanorc @@ -95,13 +93,13 @@ include ~/.config/nano/syntax/zsh.nanorc extendsyntax JavaScript formatter prettier-nano extendsyntax JavaScript linter eslint -f unix -extendsyntax JSON formatter prettier-nano -extendsyntax CSS formatter prettier-nano +extendsyntax json formatter prettier-nano +extendsyntax css formatter prettier-nano -extendsyntax nanorc color ,red "[[:space:]]+$" -extendsyntax SH color ,red "[[:space:]]+$" -extendsyntax JavaScript color ,red "[[:space:]]+$" -extendsyntax JSON color ,red "[[:space:]]+$" -extendsyntax CSS color ,red "[[:space:]]+$" -extendsyntax HTML color ,red "[[:space:]]+$" -extendsyntax Lua color ,red "[[:space:]]+$" +#extendsyntax nanorc color ,red "[[:space:]]+$" +#extendsyntax SH color ,red "[[:space:]]+$" +#extendsyntax JavaScript color ,red "[[:space:]]+$" +#extendsyntax JSON color ,red "[[:space:]]+$" +#extendsyntax CSS color ,red "[[:space:]]+$" +#extendsyntax HTML color ,red "[[:space:]]+$" +#extendsyntax Lua color ,red "[[:space:]]+$" diff --git a/common/nano/syntax/awk.nanorc b/common/nano/syntax/awk.nanorc index 501bc97..eeb2a84 100644 --- a/common/nano/syntax/awk.nanorc +++ b/common/nano/syntax/awk.nanorc @@ -1,27 +1,47 @@ -syntax "AWK" "\.awk$" +syntax "awk" "\.awk$" header "^#!.*bin/(env +)?awk( |$)" -magic "awk script" -comment "#" -color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" -color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" -color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" -color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" -color brightblue "\<(function|extension|BEGIN|END)\>" -color red "[-+*/%^|!=&<>?;:]|\\|\[|\]" -color cyan "\<(for|if|while|do|else|in|delete|exit)\>" -color cyan "\<(break|continue|return)\>" -color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>" -color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" -color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>" -color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" -color brightblue "\<(mktime|strftime|systime)\>" -color brightblue "\<(and|compl|lshift|or|rshift|xor)\>" -color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>" -color magenta "/.*[^\]/" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\." +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color blue "\$[A-Za-z0-9_!@#$*?-]+" +color blue "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" +color blue "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" +color blue "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" +color cyan "\<(function|extension|BEGIN|END)\>" +color yellow "[-+*/%^|!=&<>?;:]|\\|\[|\]" +color red "\<(for|if|while|do|else|in|delete|exit)\>" +color red "\<(break|continue|return)\>" +color cyan "\<(close|getline|next|nextfile|print|printf|system|fflush)\>" +color cyan "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" +color cyan "\<(asort|asorti|gensub|gsub|index|length|match)\>" +color cyan "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" +color cyan "\<(mktime|strftime|systime)\>" +color cyan "\<(and|compl|lshift|or|rshift|xor)\>" +color cyan "\<(bindtextdomain|dcgettext|dcngettext)\>" +color yellow "/.*[^\]/" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\." color brightblack "(^|[[:space:]])#([^{].*)?$" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/c.nanorc b/common/nano/syntax/c.nanorc index d05f482..d1cf273 100644 --- a/common/nano/syntax/c.nanorc +++ b/common/nano/syntax/c.nanorc @@ -1,52 +1,47 @@ -## Here is an example for C/C++. -## -syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino" -magic "^(C|C\+\+) (source|program)" +syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" + +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color red "\<[A-Z_][0-9A-Z_]+\>" +color blue "\<(float|double|bool|char|int|short|long|void|(un)?signed)\>" +color blue "\<[a-z0-9_]+_t\>" +color red "\<(struct|enum|static|const|union|typedef|extern)\>" +color red "\<(for|if|while|do|else|case|default|switch)\>" +color red "\<(return|inline|sizeof|auto|register|volatile|restrict)\>" +color red "\<(try|throw|catch|operator|new|delete)\>" +color red "\<(goto|break|continue)\>" +color brightwhite "\<(true|false)\>" +color yellow "[-+/*=<>?:!~%&|^]" +color brightwhite "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" +color red "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" +color red "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" +color green ""(\\.|[^"])*"|<[A-Za-z_./-]+>" +color yellow "\\([\"'abfnrtv\\]|[0-3]?[0-7]{1,2}|x[A-Fa-f0-9]{1,2}|$)" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="/\*" end="\*/" comment "//" -color brightred "\<[A-Z_][0-9A-Z_]+\>" -color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" -color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>" -color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" -color green "\<(for|if|while|do|else|case|default|switch)\>" -color green "\<(try|throw|catch|operator|new|delete)\>" -color green "\<((const|dynamic|reinterpret|static)_cast)\>" -color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>" -color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>" -color brightmagenta "\<(goto|continue|break|return)\>" -color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" -color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -## -## GCC builtins -color green "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" - -#Operator Color -color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" - -#Parenthetical Color -color magenta "[(){}]" "\[" "\]" - - -## -## String highlighting. You will in general want your comments and -## strings to come last, because syntax highlighting rules will be -## applied in the order they are read in. -color cyan "<[^= ]*>" ""(\\.|[^"])*"" -## -## This string is VERY resource intensive! -#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" - -## printf-family format specifiers -color yellow "%(\#|(0-+))?(hh|h|l|ll|q|L|j|z|Z|t)?[A-Za-z]" "%%" - -## Comment highlighting -color brightblue "//.*" -color brightblue start="/\*" end="\*/" - -# Highlighting for documentation comments -color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+" -color magenta "@return" -color magenta "@author.*" - -## Trailing whitespace -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/cmake.nanorc b/common/nano/syntax/cmake.nanorc index 728d14a..9a885e3 100644 --- a/common/nano/syntax/cmake.nanorc +++ b/common/nano/syntax/cmake.nanorc @@ -1,26 +1,32 @@ -## CMake syntax highlighter for GNU Nano -## -syntax "CMake" "(CMakeLists\.txt|\.cmake)$" -comment "#" +syntax "cmake" "CMakeLists\.txt$|\.cmake$" -icolor green "^[[:space:]]*[A-Z0-9_]+" -icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color brightwhite "\<(ON|OFF|TRUE|FALSE|YES|NO)\>" +color blue "\$\{[A-Za-z0-9_!@#$*?-]+\}" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\([()#$^]|\\|\")" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -icolor brightgreen "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" -color brightgreen "\<(COPY|NOT|COMMAND|PROPERTY|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" -color brightgreen "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" - -icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" - -#String Color -color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" -color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" - -icolor brightred start="\$(\{|ENV\{)" end="\}" -color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" - -icolor brightblue "^([[:space:]]*)?#.*" -icolor brightblue "[[:space:]]#.*" - -## Trailing whitespace -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/colortest.nanorc b/common/nano/syntax/colortest.nanorc index f2b44f2..c6b76cb 100644 --- a/common/nano/syntax/colortest.nanorc +++ b/common/nano/syntax/colortest.nanorc @@ -1,17 +1,232 @@ -syntax "colorTest" "ColorTest$" +syntax "colortest" "ColorTest$" -color black "\" +color white "\" +color cyan "\" +color green "\" +color brightblack "\" +color blue "\" +color brightwhite "\" +color brightwhite "\" +color blue "\" +color yellow "\" +color red "\" +color red "\" +color yellow "\" +color yellow "\" +color white "\" +color red "\" +color brightyellow "\" +color red "\" +color white "\" +color red "\" +color brightred "\" +color brightblue "\" +color brightblue "\" +color brightblue "\" +color ,red "\" -color red "\" -color green "\" -color yellow "\" -color blue "\" +color white "\" +color cyan "\" +color green "\" +color brightblack "\" +color blue "\" +color brightwhite "\" +color brightwhite "\" +color blue "\" +color yellow "\" +color red "\" +color red "\" +color yellow "\" +color yellow "\" +color white "\" +color red "\" +color brightyellow "\" +color red "\" +color white "\" +color red "\" +color brightred "\" +color brightblue "\" +color brightblue "\" +color brightblue "\" +color ,red "\" + +color black "\" +color red "\" +color green "\" +color yellow "\" +color blue "\" color magenta "\" -color cyan "\" +color cyan "\" +color white "\" -color brightred "\" -color brightgreen "\" -color brightyellow "\" -color brightblue "\" +color brightblack "\" +color brightred "\" +color brightgreen "\" +color brightyellow "\" +color brightblue "\" color brightmagenta "\" -color brightcyan "\" +color brightcyan "\" +color brightwhite "\" + +color black " x0 " +color red " x1 " +color green " x2 " +color yellow " x3 " +color blue " x4 " +color magenta " x5 " +color cyan " x6 " +color white " x7 " +color brightblack " x8 " +color brightred " x9 " +color brightgreen " xA " +color brightyellow " xB " +color brightblue " xC " +color brightmagenta " xD " +color brightcyan " xE " +color brightwhite " xF " +color black,black " 00 " +color red,black " 01 " +color green,black " 02 " +color yellow,black " 03 " +color blue,black " 04 " +color magenta,black " 05 " +color cyan,black " 06 " +color white,black " 07 " +color brightblack,black " 08 " +color brightred,black " 09 " +color brightgreen,black " 0A " +color brightyellow,black " 0B " +color brightblue,black " 0C " +color brightmagenta,black " 0D " +color brightcyan,black " 0E " +color brightwhite,black " 0F " +color black,red " 10 " +color red,red " 11 " +color green,red " 12 " +color yellow,red " 13 " +color blue,red " 14 " +color magenta,red " 15 " +color cyan,red " 16 " +color white,red " 17 " +color brightblack,red " 18 " +color brightred,red " 19 " +color brightgreen,red " 1A " +color brightyellow,red " 1B " +color brightblue,red " 1C " +color brightmagenta,red " 1D " +color brightcyan,red " 1E " +color brightwhite,red " 1F " +color black,green " 20 " +color red,green " 21 " +color green,green " 22 " +color yellow,green " 23 " +color blue,green " 24 " +color magenta,green " 25 " +color cyan,green " 26 " +color white,green " 27 " +color brightblack,green " 28 " +color brightred,green " 29 " +color brightgreen,green " 2A " +color brightyellow,green " 2B " +color brightblue,green " 2C " +color brightmagenta,green " 2D " +color brightcyan,green " 2E " +color brightwhite,green " 2F " +color black,yellow " 30 " +color red,yellow " 31 " +color green,yellow " 32 " +color yellow,yellow " 33 " +color blue,yellow " 34 " +color magenta,yellow " 35 " +color cyan,yellow " 36 " +color white,yellow " 37 " +color brightblack,yellow " 38 " +color brightred,yellow " 39 " +color brightgreen,yellow " 3A " +color brightyellow,yellow " 3B " +color brightblue,yellow " 3C " +color brightmagenta,yellow " 3D " +color brightcyan,yellow " 3E " +color brightwhite,yellow " 3F " +color black,blue " 40 " +color red,blue " 41 " +color green,blue " 42 " +color yellow,blue " 43 " +color blue,blue " 44 " +color magenta,blue " 45 " +color cyan,blue " 46 " +color white,blue " 47 " +color brightblack,blue " 48 " +color brightred,blue " 49 " +color brightgreen,blue " 4A " +color brightyellow,blue " 4B " +color brightblue,blue " 4C " +color brightmagenta,blue " 4D " +color brightcyan,blue " 4E " +color brightwhite,blue " 4F " +color black,magenta " 50 " +color red,magenta " 51 " +color green,magenta " 52 " +color yellow,magenta " 53 " +color blue,magenta " 54 " +color magenta,magenta " 55 " +color cyan,magenta " 56 " +color white,magenta " 57 " +color brightblack,magenta " 58 " +color brightred,magenta " 59 " +color brightgreen,magenta " 5A " +color brightyellow,magenta " 5B " +color brightblue,magenta " 5C " +color brightmagenta,magenta " 5D " +color brightcyan,magenta " 5E " +color brightwhite,magenta " 5F " +color black,cyan " 60 " +color red,cyan " 61 " +color green,cyan " 62 " +color yellow,cyan " 63 " +color blue,cyan " 64 " +color magenta,cyan " 65 " +color cyan,cyan " 66 " +color white,cyan " 67 " +color brightblack,cyan " 68 " +color brightred,cyan " 69 " +color brightgreen,cyan " 6A " +color brightyellow,cyan " 6B " +color brightblue,cyan " 6C " +color brightmagenta,cyan " 6D " +color brightcyan,cyan " 6E " +color brightwhite,cyan " 6F " +color black,white " 70 " +color red,white " 71 " +color green,white " 72 " +color yellow,white " 73 " +color blue,white " 74 " +color magenta,white " 75 " +color cyan,white " 76 " +color white,white " 77 " +color brightblack,white " 78 " +color brightred,white " 79 " +color brightgreen,white " 7A " +color brightyellow,white " 7B " +color brightblue,white " 7C " +color brightmagenta,white " 7D " +color brightcyan,white " 7E " +color brightwhite,white " 7F " + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/conf.nanorc b/common/nano/syntax/conf.nanorc index cf9f58a..e682491 100644 --- a/common/nano/syntax/conf.nanorc +++ b/common/nano/syntax/conf.nanorc @@ -8,4 +8,22 @@ icolor white ""(\\.|[^"])*"" icolor brightblue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$" ## Trailing spaces -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/csharp.nanorc b/common/nano/syntax/csharp.nanorc index 893bb37..6275184 100644 --- a/common/nano/syntax/csharp.nanorc +++ b/common/nano/syntax/csharp.nanorc @@ -1,26 +1,51 @@ -syntax "C#" "\.cs$" +syntax "c#" "\.cs$" + +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" # Class -color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" +color red "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" # Annotation -color magenta "@[A-Za-z]+" +color yellow "@[A-Za-z]+" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" -color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>" -color cyan "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>" -color cyan "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color blue "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>" +color red "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>" +color red "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>" # LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can) -color cyan "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>?:!~%&|]" -color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\([btnfr]|'|\"|\\)" -color magenta "\\u[A-Fa-f0-9]{4}" +color red "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>" +color red "\<(break|continue)\>" +color brightwhite "\<(true|false)\>" +color yellow "[-+/*=<>?:!~%&|]" +color brightwhite "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\([btnfr]|'|\"|\\)" +color yellow "\\u[A-Fa-f0-9]{4}" color brightblack "(^|[[:space:]])//.*" -color brightblack start="^\s*/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color brightblack start="/\*" end="\*/" +comment "//" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/css.nanorc b/common/nano/syntax/css.nanorc index 04d4a97..bb3be70 100644 --- a/common/nano/syntax/css.nanorc +++ b/common/nano/syntax/css.nanorc @@ -1,13 +1,62 @@ -## Here is an example for css files. -## +syntax "css" "\.css$" -syntax "CSS" "\.(css|scss|less)$" -color brightred "." -color brightyellow start="\{" end="\}" -color brightwhite start=":" end="[;^\{]" -color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" -color brightblue start="\/\*" end="\*\/" -color green ";|:|\{|\}" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color yellow ":not\([A-Za-z][A-Za-z0-9]*\)" +color white start="\{" end="\}" -## Trailing spaces -color ,green "[[:space:]]+$" +# +# CSS3 Selectors +# +color white "(^|\*/|[][:space:],}>+~()])(a|abbr|acronym|address|area|article|applet|aside|audio|b|base|bd[io]|bgsound|big|blink|blockquote|body|(no)?br|button|canvas|caption|center|cite|code|(col)?group|command|content|datalist|d[dlt]|del|details|dfn|dialog|dir|div|em|embed|eventsource|fieldset|figcaption|figure|(base)?font|footer|form|frame(set)?|h[1-6]|head(er)?|hgroup|hr|html|i|iframe|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|menu(item)?|meta|meter|nav|noframes|object|[ou]l|optgroup|option|output|p|param|plaintext|pre|progress|q|r[pt]|ruby|s|samp|(no)?script|section|select|shadow|small|source|spacer|span|strike|strong|style|su[bp]|summary|table|t(body|foot|head)|t[dhr]|template|textarea|time|title|track|tt|u|var|video|wbr|xmp)([[:space:],#.{[>+~:)]|/\*|$)" +color white "(^|[][:space:],}])\*([[:space:],{:[]|$)" + +color yellow "[[:space:]]*[>+~][[:space:]]*" +color yellow ":(active|checked|(dis|en)abled|empty|(first|last|only)-(child|of-type)|focus|hover|in-range|link|optional|out-of-range|read-(only|write)|required|root|selection|target|visited|(in)?valid|visited)\>" +color blue "[.#][A-Za-z_][A-Za-z0-9_-]*" +color yellow "::(after|before|first-(letter|line)|selection)\>" +color red "\!important[[:space:]]*(;|/\*|$)" + +# +# CSS3 Keywords (predefined property-values mostly) +# +color red "(^|}|\*/)[[:space:]]*@(font-face|media)\>" +color red "\<(above|absolute|always|armenian|auto|avoid|baseline|behind|below|bidi-override|blink|block|bold(er)?|bottom|break-word|capitalize|center(-left|-right)?|circle|collapse|cjk-ideographic|(no-)?(close|open)-quote|compact|continuous|crop|cross(hair)?|(extra-|semi-|ultra-)?(condensed|expanded)|cursive|dashed|default|decimal(-leading-zero)?|digits|disc|dotted|double|embed|fantasy|far-(left|right)|fast(er)?|fixed|georgian|groove|hebrew|help|hide|high(er)?|(hirag|katak)ana(-iroha)?|inherit|initial|inline(-block|-table)?|(in|out)(set|side)|invert|italic|justify|landscape|larger?|(left|right)(-side|wards)?|level|lighter|line-through|list-item|loud|low(er)?|ltr|(lower|upper)(-alpha|-greek|-latin|-roman|case)|marker|medium|middle|mix|monospace|move|narrower|none|normal|(no|pre-)wrap|oblique|once|overline|pointer|portait|relative|(no-)?repeat|repeat-[xy]|([ew]|[ns][ew]?)-resize|ridge|rlt|run-in|scroll|separate|(sans-)?serif|show|silent|slow(er)?|small(er)?|small-caps|soft|solid|spell-out|square|static|sub|super|text(-bottom|-top)?|thick|thin|top|table-(caption|cell|(column|row)(-group)?|(footer|header)-group)|underline|unset|visible|wait|wider|x-(fast|high|loud|s?low|soft)|xx?-(large|small))([[:space:];,]|/\*|$)" + +# +# CSS3 Color Keywords +# +color yellow "(^|\*/|[[:space:]:])(currentColor|transparent)([[:space:];]|/\*|$)" +# The following section for CSS3 colors is generated automatically. +# See included generate-rules-for-web-highlighting.sh script file (found in the scripts/ +# directory) for more info on how this process can be repeated should +# the list of CSS3 colors be changed in the future +color yellow "(^|\*/|[[:space:]:])(aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen)([[:space:];]|/\*|$)" + +# +# CSS3 Properties +# +color red "(^|\*/|[[:space:]({;])(align-(content|items|self)|alignment-(adjust|baseline)|all|animation(-delay|-direction|-duration|-fill-mode|-iteration-count|-name|-play-state|-timing-function)?|azimuth|backface-visibility|baseline-shift|bleed|background(-attachment|-blend-mode|-clip|-color|-image|-origin|-position|-repeat|-size)?|bookmark-(label|level|state|target)|border(-bottom|-left|-right|-top)?(-color|-style|-width)?|border-(((bottom|top)-(left|right)-)?radius|(collapse|image(-(outset|repeat|slice|source|width))?|spacing))|bottom|box-(decoration-break|shadow|sizing)|break-(after|before|inside)|caption-side|clear|clip|color(-profile)?|column-(count|fill|gap|rule|rule-(color|style|width)|span|width)|columns|content|counter-(increment|(re)?set)|crop|(cue|mark|pause)(-after|-before)?|cursor|direction|display|drop-initial-((after|before)-(adjust|align)|size|value)|dominant-baseline|elevation|empty-cells|filter|flex(-(basis|direction|flow|grow|shrink|wrap))?|float(-offset)?|font|font-(family|feature-settings|kerning|language-override|size(-adjust)?|stretch|style|synthesis|variant|weight|variant-(alternates|caps|east-asian|ligatures|numeric|position))|grid-(column|row)|hanging-punctuation|height|hyphens|icon|image-(orientation|rendering|resolution)|ime-mode|inline-box-align|justify-content|left|letter-spacing|line-(break|height|stacking(-ruby|-shift|-strategy)?|style|style-(image|position|type))|(margin|padding)(-bottom|-left|-right|-top)?|marker-(offset|side)|marks|marquee-(direction|play-count|speed|style)|mask(-type)?|(max|min)-(height|width)|max-lines|move-to|nav-(down|index|left|right|up)|object-(fit|position)|opacity|order|orphans|outline(-(color|offset|style|width))?|overflow(-wrap|-x|-y)?|page(-break-(after|before|inside)|-policy)?|perspective(-origin)?|phonemes|pitch(-range)?|play-during|position|presentation-level|quotes|rendering-intent|resize|richness|right|rest(-after|-before)?|rotation|rotation-point|ruby-(align|position)|size|speak(-(as|header|numeral|punctuation))?|speech-rate|stress(-set)?|tab-size|table-layout|target(-name|-new|-position)?|text-(align(-last)?|combine-upright|decoration|decoration-(color|line|skip|style)|emphasis(-color|-position|-style)?|height|indent|justify|orientation|overflow|shadow|transform|underline-position)|top|transform(-origin|-style)?|transition|unicode-bidi|vertical-align|transition-(delay|duration|property|timing-function)|voice-(balance|duration|family|pitch(-range)?|range|rate|stress|volume)|visibility|volume|white-space|widows|width|word-(break|spacing|wrap)|writing-mode|z-index)[[:space:]]*:" +color brightyellow "(^|\*/|[[:space:]({;])-(ms|moz|apple|khtml|wap|webkit|o|xv)(-[a-z]+)+[[:space:]]*:" + +color brightblue "(^|\*/|[[:space:]:])url\([^)]+\)([[:space:];}]|$)" +color cyan "(^|\*/|[[:space:]:])(attr|calc|(repeating-)?(linear|radial)-gradient|(rgb|hsl)a?)\([^)]+\)([[:space:];}]|$)" +color cyan "(^|\*/|[[:space:]:])url\(" +# Make white spaces plain again +color white "[[:space:]]+"~OPERATOR: ":nth-(last-)?(child|of-type)\([[:space:]]*([+-]?[0-9]+(n[[:space:]]*\+[[:space:]]*[0-9]+)?|odd|even)[[:space:]]*\)" +color yellow ":lang\([[:space:]]*[A-Za-z]{2}(-[A-Za-z]{2})?[[:space:]]*\)" +color red "\[[^][]*\]" +color yellow "[;:(){}]" + +color white "," +color brightwhite "\<(odd|even)\>" +color brightwhite "\<[0-9][0-9]*n?" +color brightwhite "[\+-]?([0-9]+|[0-9]*\.[0-9]+)(%|e(m|x)|p(x|t|c)|in|ft|(m|c)m|k?Hz|deg|g?rad|m?s)" +color yellow "#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})\>" +color green ""[^"]*"|'[^']*'" +color brightblack start="/\*" end="\*/" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" diff --git a/common/nano/syntax/default.nanorc b/common/nano/syntax/default.nanorc new file mode 100644 index 0000000..07a8e13 --- /dev/null +++ b/common/nano/syntax/default.nanorc @@ -0,0 +1,24 @@ +syntax "default" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/diff.nanorc b/common/nano/syntax/diff.nanorc new file mode 100644 index 0000000..686afc5 --- /dev/null +++ b/common/nano/syntax/diff.nanorc @@ -0,0 +1,32 @@ +syntax "diff" "\.diff$" + +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color brightred "^[<\-].*" +color brightgreen "^[>+].*" +color brightblack "^ .*" +color brightblack "^[^<> +@0-9\-].*" +color red "@@.*@@" +color red "^---$" +color red "^[0-9].*" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/dot.nanorc b/common/nano/syntax/dot.nanorc deleted file mode 100644 index 40d4d06..0000000 --- a/common/nano/syntax/dot.nanorc +++ /dev/null @@ -1,8 +0,0 @@ -syntax "DOT" "\.(dot|gv)$" - -color cyan "\<(digraph|edge|graph|node|subgraph)\>" -color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>" -color red "=|->|--" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])//.*" -color brightblack start="^\s*/\*" end="\*/" diff --git a/common/nano/syntax/dotenv.nanorc b/common/nano/syntax/dotenv.nanorc index 3f21b9b..0ae6495 100644 --- a/common/nano/syntax/dotenv.nanorc +++ b/common/nano/syntax/dotenv.nanorc @@ -7,4 +7,22 @@ syntax "dotenv" "\.env" "\.env\..+" color green "(\(|\)|\$|=)" color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color cyan "(^|[[:space:]])#.*$" -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/etc-hosts.nanorc b/common/nano/syntax/etc-hosts.nanorc index a746dd6..7d97f85 100644 --- a/common/nano/syntax/etc-hosts.nanorc +++ b/common/nano/syntax/etc-hosts.nanorc @@ -12,3 +12,21 @@ color normal "[.:]" # comments color brightblack "^#.*" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/gemini.nanorc b/common/nano/syntax/gemini.nanorc deleted file mode 100644 index ac8f9d4..0000000 --- a/common/nano/syntax/gemini.nanorc +++ /dev/null @@ -1,21 +0,0 @@ -## syntax highlighting for gemini:// markup language - -syntax gemini "\.(gemini|gmi)$" - -# Heading levels -color brightgreen "^#.*" -color brightcyan "^##.*" -color brightmagenta "^###.*" - -# Link Text -color brightred "^=>\s*\S+\s+.*" -# Link URL -color green "^=>\s*\S+" -# Link Prefix -color yellow "^=>" - -# Bullet Lists -color brightblue "^\*.*" - -# Monospaced Blocks -color white,black start="^```" end="^```" diff --git a/common/nano/syntax/git.nanorc b/common/nano/syntax/git.nanorc index 929cf79..27426a6 100644 --- a/common/nano/syntax/git.nanorc +++ b/common/nano/syntax/git.nanorc @@ -1,80 +1,90 @@ -syntax "git-config" "git(config|modules)$|\.git/config$" +syntax "gitconfig" "git(config|modules)$|\.git/config$" -color brightcyan "\<(true|false)\>" -color cyan "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color brightwhite "\<(true|false)\>" +color red "^[[:space:]]*[^=]*=" +color red "^[[:space:]]*\[.*\]$" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" color brightblack "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red "^ +" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -# This code is free software; you can redistribute it and/or modify it under -# the terms of the new BSD License. -# -# Copyright (c) 2010, Sebastian Staudt +syntax "git-editmsg" "(COMMIT|TAG)_EDITMSG$" -# A nano configuration file to enable syntax highlighting of some Git specific -# files with the GNU nano text editor (http://www.nano-editor.org) -# -syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG" +color brightblack "^#.*$" +color red start="# Changes.*" end="# Changed.*" +color red start="# Untracked.*" end="diff" +color red start="# Untracked.*" end="$$" +color white "^[+-].*" +color red "^(diff|index|---|\+\+\+).*" +color red "(Change[ds]|Untracked)" +color red "@@.*@@" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -# Commit message -color yellow ".*" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" -# Comments +syntax "git-rebase" "git-rebase-todo$" + +color red "^(edit|fixup|pick|reword|squash|exec|[efprsx])\>" +color brightwhite "\<[0-9a-f]{7,40}\>" color brightblack "^#.*" -# Files changes -color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*" -color red "#[[:space:]]deleted:" -color green "#[[:space:]]modified:" -color brightgreen "#[[:space:]]new file:" -color brightblue "#[[:space:]]renamed:" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" -# Untracked filenames -color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$" +syntax "gitignore" ".gitignore$" -color brightmagenta "^#[[:space:]]Changes.*[:]" -color brightred "^#[[:space:]]Your branch and '[^']+" -color brightblack "^#[[:space:]]Your branch and '" -color brightwhite "^#[[:space:]]On branch [^ ]+" -color brightblack "^#[[:space:]]On branch" - -# Recolor hash symbols - -# Recolor hash symbols -color brightblack "#" - -# Trailing spaces (+LINT is not ok, git uses tabs) -color ,green "[[:space:]]+$" - - -# This syntax format is used for interactive rebasing -syntax "git-rebase-todo" "git-rebase-todo" - -# Default -color yellow ".*" - -# Comments -color brightblack "^#.*" - -# Rebase commands -color green "^(e|edit) [0-9a-f]{7,40}" -color green "^# (e, edit)" -color brightgreen "^(f|fixup) [0-9a-f]{7,40}" -color brightgreen "^# (f, fixup)" -color brightwhite "^(p|pick) [0-9a-f]{7,40}" -color brightwhite "^# (p, pick)" -color blue "^(r|reword) [0-9a-f]{7,40}" -color blue "^# (r, reword)" -color brightred "^(s|squash) [0-9a-f]{7,40}" -color brightred "^# (s, squash)" -color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}" -color yellow "^# (x, exec)" - -# Recolor hash symbols -color brightblack "#" - -# Commit IDs -color brightblue "[0-9a-f]{7,40}" +icolor brightblue "^[[:space:]]*#.*$" +color ,red "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/gitignore.nanorc b/common/nano/syntax/gitignore.nanorc deleted file mode 100644 index 08b1e21..0000000 --- a/common/nano/syntax/gitignore.nanorc +++ /dev/null @@ -1,3 +0,0 @@ -syntax "gitignore" ".gitignore$" - -icolor brightblue "^[[:space:]]*#.*$" diff --git a/common/nano/syntax/glsl.nanorc b/common/nano/syntax/glsl.nanorc index d098e29..1654863 100644 --- a/common/nano/syntax/glsl.nanorc +++ b/common/nano/syntax/glsl.nanorc @@ -1,15 +1,39 @@ -syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$" +syntax "glsl" "\.(frag|vert|fp|vp|glsl)$" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" -color green "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>" -color green "\" -color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>?:!~%&|^]" -color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color blue "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>" +color blue "\" +color red "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>" +color red "\<(break|continue)\>" +color brightwhite "\<(true|false)\>" +color yellow "[-+/*=<>?:!~%&|^]" +color brightwhite "\<([0-9]+|0x[0-9a-fA-F]*)\>" color brightblack "(^|[[:space:]])//.*" -color brightblack start="^\s*/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color brightblack start="/\*" end="\*/" +comment "//" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/go.nanorc b/common/nano/syntax/go.nanorc index acd32df..2d00552 100644 --- a/common/nano/syntax/go.nanorc +++ b/common/nano/syntax/go.nanorc @@ -1,23 +1,46 @@ -syntax "GO" "\.go$" -comment "//" +syntax "go" "\.go$" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" -color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>" -color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>" -color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>" -color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>" -color cyan "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>" -color cyan "\<(for|range|if|else|case|default|switch|return)\>" -color brightred "\<(go|goto|break|continue)\>" -color brightcyan "\<(true|false)\>" -color red "[-+/*=<>!~%&|^]|:=" -color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\[abfnrtv'\"\\]" -color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})" -color yellow "`[^`]*`" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color cyan "\<(append|cap|close|complex|copy|delete|imag|len)\>" +color cyan "\<(make|new|panic|print|println|protect|real|recover)\>" +color blue "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>" +color blue "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>" +color red "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>" +color red "\<(for|range|if|else|case|default|switch|return)\>" +color red "\<(go|goto|break|continue)\>" +color brightwhite "\<(true|false)\>" +color yellow "[-+/*=<>!~%&|^]|:=" +color brightwhite "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\[abfnrtv'\"\\]" +color yellow "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})" +color green "`[^`]*`" color brightblack "(^|[[:space:]])//.*" -color brightblack start="^\s*/\*" end="\*/" -color brightwhite,cyan "TODO:?" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color brightblack start="/\*" end="\*/" +comment "//" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/gophermap.nanorc b/common/nano/syntax/gophermap.nanorc index 7c868e2..c51003a 100644 --- a/common/nano/syntax/gophermap.nanorc +++ b/common/nano/syntax/gophermap.nanorc @@ -43,3 +43,21 @@ color brightgreen "^(!|-|:|~|%|=|\*|\.).*" # Comments color white,blue "#.*" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/gradle.nanorc b/common/nano/syntax/gradle.nanorc index 58d7376..011c233 100644 --- a/common/nano/syntax/gradle.nanorc +++ b/common/nano/syntax/gradle.nanorc @@ -20,4 +20,22 @@ color cyan start="^/\*(\*)?" end="\*/" color cyan start="\s/\*(\*)?" end="\*/" # Trailing whitespace -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/html.nanorc b/common/nano/syntax/html.nanorc index 01bb24a..b77f69d 100644 --- a/common/nano/syntax/html.nanorc +++ b/common/nano/syntax/html.nanorc @@ -1,41 +1,255 @@ -## HTML syntax highlighting rules for Nano +syntax "html" "\.html?$" +header "" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" -## Emphasis tags -color brightwhite start="<([biu]|em|strong)[^>]*>" end="" +# Everything inside angle brackets is erroneous initially +# This will be fixed later by correct syntax +color brightyellow start="<" end=">" +# All ampersands are initially erroneous too +color brightyellow "&" -## Tags -color cyan start="<" end=">" -## Attributes -color brightblue "[[:space:]](abbr|accept(-charset)?|accesskey|action|[av]?link|alt|archive|axis|background|(bg)?color|border)=" -color brightblue "[[:space:]](cell(padding|spacing)|char(off|set)?|checked|cite|class(id)?|compact|code(base|tag)?|cols(pan)?)=" -color brightblue "[[:space:]](content(editable)?|contextmenu|coords|data|datetime|declare|defer|dir|enctype)=" -color brightblue "[[:space:]](for|frame(border)?|headers|height|hidden|href(lang)?|hspace|http-equiv|id|ismap)=" -color brightblue "[[:space:]](label|lang|longdesc|margin(height|width)|maxlength|media|method|multiple)=" -color brightblue "[[:space:]](name|nohref|noresize|noshade|object|on(click|focus|load|mouseover|keypress)|profile|readonly|rel|rev)=" -color brightblue "[[:space:]](rows(pan)?|rules|scheme|scope|scrolling|shape|size|span|src|standby|start|style|summary|pattern)=" -color brightblue "[[:space:]](tabindex|target|text|title|type|usemap|v?align|value(type)?|vspace|width|xmlns|xml:space)=" -color brightblue "[[:space:]](required|disabled|selected)[[:space:]=>]" +# +# Attributes +# -## Strings -color yellow ""(\\.|[^"])*"" +# Explicitly-erroneous attributes +color brightyellow "[[:space:]]*\<(pubdate|seamless)[[:space:]]*([=>]|$)" +# Global attributes +color red "[[:space:]]*\<(accesskey|contenteditable|contextmenu|dir|draggable|dropzone|hidden|id|lang|spellcheck|style|tabindex|title|translate)[[:space:]]*([=>]|$)" +color red "[[:space:]]*\<[Dd][Aa][Tt][Aa]-[a-z0-9_.]+(-[a-z0-9_.]+)*[[:space:]]*([=>]|$)" +# Element-specific attributes +color red "[[:space:]]*\<(accept(-charset)?|action|alt|async|auto(complete|focus|play)|challenge|charset|checked|cite|class|(col|row)(s|span)|content|controls|coords|crossorigin|data|datetime|default|defer|dirname|disabled|download|enctype|for|form(action)?|headers|height|high|href(lang)?|http-equiv|icon|ismap|keytype|kind|label|list|loop|low|manifest|max(length)?|media|method|min|multiple|muted|name|novalidate|open|optimum|pattern|placeholder|poster|preload|radiogroup|readonly|rel|required|reversed|sandbox|scoped?|selected|shape|sizes?|span|src(doc|lang)?|start|step|target|type(mustmatch)?|usemap|value|width|wrap)[[:space:]]*([=>]|$)" +# Attributes deprecated / not supported in HTML5 +color white "[[:space:]]*\<(align|bgcolor|border|color|mediagroup)[[:space:]]*([=>]|$)" +# Event attributes +color cyan "[[:space:]]*\?|>|[[:space:]]*$)" +# Normal elements valid in HTML5 +color white "?|>|[[:space:]]*$)" +# Elements for which end tag is forbidden +color white "<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)([[:space:]]+>?|>|[[:space:]]*$)" +# Elements deprecated in HTML5 +color white "?|>|[[:space:]]*$)" -## Trailing spaces -color ,green "[[:space:]]+$" +# +# Strings and values +# +color green "=[[:space:]]*[]A-Za-z0-9!#$%()*+,./:;?@[\^_{|}~-][]A-Za-z0-9!"#$%'()*+,./:;?@[\^_{|}~-]*" +color yellow "=" +# Make white spaces plain again +color white "[[:space:]]+"STRING: ""[^"]*"|'[^']*'" +color white start=">" end="<" +color white "[<>]" -## Reminders -color brightwhite,yellow "(FIXME|TODO|XXX)" +# Embedded template languages +color blue "\{\{[^}]*\}\}|<%=.*%>" +color red start="<\?" end="\?>" +color red start="<%[^=]" end="%>" +color red start="\{%" end="%\}" + +# +# Finally, character references and comments +# +color brightyellow "&[A-Za-z][A-Za-z0-9]*;" +color brightblack start="" +color brightblack "]*>" +color brightred "&#([0-9]+|[Xx][0-9A-Fa-f]+);" +# This section for character entity references is generated automatically. +# See included generate-rules-for-web-highlighting.sh script file (found in the scripts/ +# directory) for more info on how this process can be repeated should +# the list of character entities be changed in the future +color brightred "&(Aacute|aacute|Abreve|abreve|ac|acd|acE|Acirc|acirc|acute|Acy|acy|AElig|aelig|af|Afr|afr|Agrave|agrave);" +color brightred "&(alefsym|aleph|Alpha|alpha|Amacr|amacr|amalg|AMP|amp|And|and|andand|andd|andslope|andv|ang|ange|angle);" +color brightred "&(angmsd|angmsdaa|angmsdab|angmsdac|angmsdad|angmsdae|angmsdaf|angmsdag|angmsdah|angrt|angrtvb|angrtvbd);" +color brightred "&(angsph|angst|angzarr|Aogon|aogon|Aopf|aopf|ap|apacir|apE|ape|apid|apos|ApplyFunction|approx|approxeq);" +color brightred "&(Aring|aring|Ascr|ascr|Assign|ast|asymp|asympeq|Atilde|atilde|Auml|auml|awconint|awint|backcong);" +color brightred "&(backepsilon|backprime|backsim|backsimeq|Backslash|Barv|barvee|Barwed|barwed|barwedge|bbrk|bbrktbrk);" +color brightred "&(bcong|Bcy|bcy|bdquo|becaus|Because|because|bemptyv|bepsi|bernou|Bernoullis|Beta|beta|beth|between|Bfr);" +color brightred "&(bfr|bigcap|bigcirc|bigcup|bigodot|bigoplus|bigotimes|bigsqcup|bigstar|bigtriangledown|bigtriangleup);" +color brightred "&(biguplus|bigvee|bigwedge|bkarow|blacklozenge|blacksquare|blacktriangle|blacktriangledown);" +color brightred "&(blacktriangleleft|blacktriangleright|blank|blk12|blk14|blk34|block|bne|bnequiv|bNot|bnot|Bopf|bopf|bot);" +color brightred "&(bottom|bowtie|boxbox|boxDL|boxDl|boxdL|boxdl|boxDR|boxDr|boxdR|boxdr|boxH|boxh|boxHD|boxHd|boxhD|boxhd);" +color brightred "&(boxHU|boxHu|boxhU|boxhu|boxminus|boxplus|boxtimes|boxUL|boxUl|boxuL|boxul|boxUR|boxUr|boxuR|boxur|boxV);" +color brightred "&(boxv|boxVH|boxVh|boxvH|boxvh|boxVL|boxVl|boxvL|boxvl|boxVR|boxVr|boxvR|boxvr|bprime|Breve|breve|brvbar);" +color brightred "&(Bscr|bscr|bsemi|bsim|bsime|bsol|bsolb|bsolhsub|bull|bullet|bump|bumpE|bumpe|Bumpeq|bumpeq|Cacute);" +color brightred "&(cacute|Cap|cap|capand|capbrcup|capcap|capcup|capdot|CapitalDifferentialD|caps|caret|caron|Cayleys);" +color brightred "&(ccaps|Ccaron|ccaron|Ccedil|ccedil|Ccirc|ccirc|Cconint|ccups|ccupssm|Cdot|cdot|cedil|Cedilla|cemptyv);" +color brightred "&(cent|CenterDot|centerdot|Cfr|cfr|CHcy|chcy|check|checkmark|Chi|chi|cir|circ|circeq|circlearrowleft);" +color brightred "&(circlearrowright|circledast|circledcirc|circleddash|CircleDot|circledR|circledS|CircleMinus|CirclePlus);" +color brightred "&(CircleTimes|cirE|cire|cirfnint|cirmid|cirscir|ClockwiseContourIntegral|CloseCurlyDoubleQuote);" +color brightred "&(CloseCurlyQuote|clubs|clubsuit|Colon|colon|Colone|colone|coloneq|comma|commat|comp|compfn|complement);" +color brightred "&(complexes|cong|congdot|Congruent|Conint|conint|ContourIntegral|Copf|copf|coprod|Coproduct|COPY|copy);" +color brightred "&(copysr|CounterClockwiseContourIntegral|crarr|Cross|cross|Cscr|cscr|csub|csube|csup|csupe|ctdot|cudarrl);" +color brightred "&(cudarrr|cuepr|cuesc|cularr|cularrp|Cup|cup|cupbrcap|CupCap|cupcap|cupcup|cupdot|cupor|cups|curarr);" +color brightred "&(curarrm|curlyeqprec|curlyeqsucc|curlyvee|curlywedge|curren|curvearrowleft|curvearrowright|cuvee|cuwed);" +color brightred "&(cwconint|cwint|cylcty|Dagger|dagger|daleth|Darr|dArr|darr|dash|Dashv|dashv|dbkarow|dblac|Dcaron|dcaron);" +color brightred "&(Dcy|dcy|DD|dd|ddagger|ddarr|DDotrahd|ddotseq|deg|Del|Delta|delta|demptyv|dfisht|Dfr|dfr|dHar|dharl);" +color brightred "&(dharr|DiacriticalAcute|DiacriticalDot|DiacriticalDoubleAcute|DiacriticalGrave|DiacriticalTilde|diam);" +color brightred "&(Diamond|diamond|diamondsuit|diams|die|DifferentialD|digamma|disin|div|divide|divideontimes|divonx|DJcy);" +color brightred "&(djcy|dlcorn|dlcrop|dollar|Dopf|dopf|Dot|dot|DotDot|doteq|doteqdot|DotEqual|dotminus|dotplus|dotsquare);" +color brightred "&(doublebarwedge|DoubleContourIntegral|DoubleDot|DoubleDownArrow|DoubleLeftArrow|DoubleLeftRightArrow);" +color brightred "&(DoubleLeftTee|DoubleLongLeftArrow|DoubleLongLeftRightArrow|DoubleLongRightArrow|DoubleRightArrow);" +color brightred "&(DoubleRightTee|DoubleUpArrow|DoubleUpDownArrow|DoubleVerticalBar|DownArrow|Downarrow|downarrow);" +color brightred "&(DownArrowBar|DownArrowUpArrow|DownBreve|downdownarrows|downharpoonleft|downharpoonright);" +color brightred "&(DownLeftRightVector|DownLeftTeeVector|DownLeftVector|DownLeftVectorBar|DownRightTeeVector);" +color brightred "&(DownRightVector|DownRightVectorBar|DownTee|DownTeeArrow|drbkarow|drcorn|drcrop|Dscr|dscr|DScy|dscy);" +color brightred "&(dsol|Dstrok|dstrok|dtdot|dtri|dtrif|duarr|duhar|dwangle|DZcy|dzcy|dzigrarr|Eacute|eacute|easter|Ecaron);" +color brightred "&(ecaron|ecir|Ecirc|ecirc|ecolon|Ecy|ecy|eDDot|Edot|eDot|edot|ee|efDot|Efr|efr|eg|Egrave|egrave|egs);" +color brightred "&(egsdot|el|Element|elinters|ell|els|elsdot|Emacr|emacr|empty|emptyset|EmptySmallSquare|emptyv);" +color brightred "&(EmptyVerySmallSquare|emsp|emsp13|emsp14|ENG|eng|ensp|Eogon|eogon|Eopf|eopf|epar|eparsl|eplus|epsi);" +color brightred "&(Epsilon|epsilon|epsiv|eqcirc|eqcolon|eqsim|eqslantgtr|eqslantless|Equal|equals|EqualTilde|equest);" +color brightred "&(Equilibrium|equiv|equivDD|eqvparsl|erarr|erDot|Escr|escr|esdot|Esim|esim|Eta|eta|ETH|eth|Euml|euml);" +color brightred "&(euro|excl|exist|Exists|expectation|ExponentialE|exponentiale|fallingdotseq|Fcy|fcy|female|ffilig|fflig);" +color brightred "&(ffllig|Ffr|ffr|filig|FilledSmallSquare|FilledVerySmallSquare|fjlig|flat|fllig|fltns|fnof|Fopf|fopf);" +color brightred "&(ForAll|forall|fork|forkv|Fouriertrf|fpartint|frac12|frac13|frac14|frac15|frac16|frac18|frac23|frac25);" +color brightred "&(frac34|frac35|frac38|frac45|frac56|frac58|frac78|frasl|frown|Fscr|fscr|gacute|Gamma|gamma|Gammad);" +color brightred "&(gammad|gap|Gbreve|gbreve|Gcedil|Gcirc|gcirc|Gcy|gcy|Gdot|gdot|gE|ge|gEl|gel|geq|geqq|geqslant|ges);" +color brightred "&(gescc|gesdot|gesdoto|gesdotol|gesl|gesles|Gfr|gfr|Gg|gg|ggg|gimel|GJcy|gjcy|gl|gla|glE|glj|gnap);" +color brightred "&(gnapprox|gnE|gne|gneq|gneqq|gnsim|Gopf|gopf|grave|GreaterEqual|GreaterEqualLess|GreaterFullEqual);" +color brightred "&(GreaterGreater|GreaterLess|GreaterSlantEqual|GreaterTilde|Gscr|gscr|gsim|gsime|gsiml|GT|Gt|gt|gtcc);" +color brightred "&(gtcir|gtdot|gtlPar|gtquest|gtrapprox|gtrarr|gtrdot|gtreqless|gtreqqless|gtrless|gtrsim|gvertneqq|gvnE);" +color brightred "&(Hacek|hairsp|half|hamilt|HARDcy|hardcy|hArr|harr|harrcir|harrw|Hat|hbar|Hcirc|hcirc|hearts|heartsuit);" +color brightred "&(hellip|hercon|Hfr|hfr|HilbertSpace|hksearow|hkswarow|hoarr|homtht|hookleftarrow|hookrightarrow|Hopf);" +color brightred "&(hopf|horbar|HorizontalLine|Hscr|hscr|hslash|Hstrok|hstrok|HumpDownHump|HumpEqual|hybull|hyphen|Iacute);" +color brightred "&(iacute|ic|Icirc|icirc|Icy|icy|Idot|IEcy|iecy|iexcl|iff|Ifr|ifr|Igrave|igrave|ii|iiiint|iiint|iinfin);" +color brightred "&(iiota|IJlig|ijlig|Im|Imacr|imacr|image|ImaginaryI|imagline|imagpart|imath|imof|imped|Implies|in|incare);" +color brightred "&(infin|infintie|inodot|Int|int|intcal|integers|Integral|intercal|Intersection|intlarhk|intprod);" +color brightred "&(InvisibleComma|InvisibleTimes|IOcy|iocy|Iogon|iogon|Iopf|iopf|Iota|iota|iprod|iquest|Iscr|iscr|isin);" +color brightred "&(isindot|isinE|isins|isinsv|isinv|it|Itilde|itilde|Iukcy|iukcy|Iuml|iuml|Jcirc|jcirc|Jcy|jcy|Jfr|jfr);" +color brightred "&(jmath|Jopf|jopf|Jscr|jscr|Jsercy|jsercy|Jukcy|jukcy|Kappa|kappa|kappav|Kcedil|kcedil|Kcy|kcy|Kfr|kfr);" +color brightred "&(kgreen|KHcy|khcy|KJcy|kjcy|Kopf|kopf|Kscr|kscr|lAarr|Lacute|lacute|laemptyv|lagran|Lambda|lambda|Lang);" +color brightred "&(lang|langd|langle|lap|Laplacetrf|laquo|Larr|lArr|larr|larrb|larrbfs|larrfs|larrhk|larrlp|larrpl);" +color brightred "&(larrsim|larrtl|lat|lAtail|latail|late|lates|lBarr|lbarr|lbbrk|lbrace|lbrack|lbrke|lbrksld|lbrkslu);" +color brightred "&(Lcaron|lcaron|Lcedil|lcedil|lceil|lcub|Lcy|lcy|ldca|ldquo|ldquor|ldrdhar|ldrushar|ldsh|lE|le);" +color brightred "&(LeftAngleBracket|LeftArrow|Leftarrow|leftarrow|LeftArrowBar|LeftArrowRightArrow|leftarrowtail);" +color brightred "&(LeftCeiling|LeftDoubleBracket|LeftDownTeeVector|LeftDownVector|LeftDownVectorBar|LeftFloor);" +color brightred "&(leftharpoondown|leftharpoonup|leftleftarrows|LeftRightArrow|Leftrightarrow|leftrightarrow);" +color brightred "&(leftrightarrows|leftrightharpoons|leftrightsquigarrow|LeftRightVector|LeftTee|LeftTeeArrow);" +color brightred "&(LeftTeeVector|leftthreetimes|LeftTriangle|LeftTriangleBar|LeftTriangleEqual|LeftUpDownVector);" +color brightred "&(LeftUpTeeVector|LeftUpVector|LeftUpVectorBar|LeftVector|LeftVectorBar|lEg|leg|leq|leqq|leqslant|les);" +color brightred "&(lescc|lesdot|lesdoto|lesdotor|lesg|lesges|lessapprox|lessdot|lesseqgtr|lesseqqgtr|LessEqualGreater);" +color brightred "&(LessFullEqual|LessGreater|lessgtr|LessLess|lesssim|LessSlantEqual|LessTilde|lfisht|lfloor|Lfr|lfr|lg);" +color brightred "&(lgE|lHar|lhard|lharu|lharul|lhblk|LJcy|ljcy|Ll|ll|llarr|llcorner|Lleftarrow|llhard|lltri|Lmidot|lmidot);" +color brightred "&(lmoust|lmoustache|lnap|lnapprox|lnE|lne|lneq|lneqq|lnsim|loang|loarr|lobrk|LongLeftArrow|Longleftarrow);" +color brightred "&(longleftarrow|LongLeftRightArrow|Longleftrightarrow|longleftrightarrow|longmapsto|LongRightArrow);" +color brightred "&(Longrightarrow|longrightarrow|looparrowleft|looparrowright|lopar|Lopf|lopf|loplus|lotimes|lowast);" +color brightred "&(lowbar|LowerLeftArrow|LowerRightArrow|loz|lozenge|lozf|lpar|lparlt|lrarr|lrcorner|lrhar|lrhard|lrm);" +color brightred "&(lrtri|lsaquo|Lscr|lscr|Lsh|lsh|lsim|lsime|lsimg|lsqb|lsquo|lsquor|Lstrok|lstrok|LT|Lt|lt|ltcc|ltcir);" +color brightred "&(ltdot|lthree|ltimes|ltlarr|ltquest|ltri|ltrie|ltrif|ltrPar|lurdshar|luruhar|lvertneqq|lvnE|macr|male);" +color brightred "&(malt|maltese|Map|map|mapsto|mapstodown|mapstoleft|mapstoup|marker|mcomma|Mcy|mcy|mdash|mDDot);" +color brightred "&(measuredangle|MediumSpace|Mellintrf|Mfr|mfr|mho|micro|mid|midast|midcir|middot|minus|minusb|minusd);" +color brightred "&(minusdu|MinusPlus|mlcp|mldr|mnplus|models|Mopf|mopf|mp|Mscr|mscr|mstpos|Mu|mu|multimap|mumap|nabla);" +color brightred "&(Nacute|nacute|nang|nap|napE|napid|napos|napprox|natur|natural|naturals|nbsp|nbump|nbumpe|ncap|Ncaron);" +color brightred "&(ncaron|Ncedil|ncedil|ncong|ncongdot|ncup|Ncy|ncy|ndash|ne|nearhk|neArr|nearr|nearrow|nedot);" +color brightred "&(NegativeMediumSpace|NegativeThickSpace|NegativeThinSpace|NegativeVeryThinSpace|nequiv|nesear|nesim);" +color brightred "&(NestedGreaterGreater|NestedLessLess|NewLine|nexist|nexists|Nfr|nfr|ngE|nge|ngeq|ngeqq|ngeqslant|nges);" +color brightred "&(nGg|ngsim|nGt|ngt|ngtr|nGtv|nhArr|nharr|nhpar|ni|nis|nisd|niv|NJcy|njcy|nlArr|nlarr|nldr|nlE|nle);" +color brightred "&(nLeftarrow|nleftarrow|nLeftrightarrow|nleftrightarrow|nleq|nleqq|nleqslant|nles|nless|nLl|nlsim|nLt);" +color brightred "&(nlt|nltri|nltrie|nLtv|nmid|NoBreak|NonBreakingSpace|Nopf|nopf|Not|not|NotCongruent|NotCupCap);" +color brightred "&(NotDoubleVerticalBar|NotElement|NotEqual|NotEqualTilde|NotExists|NotGreater|NotGreaterEqual);" +color brightred "&(NotGreaterFullEqual|NotGreaterGreater|NotGreaterLess|NotGreaterSlantEqual|NotGreaterTilde);" +color brightred "&(NotHumpDownHump|NotHumpEqual|notin|notindot|notinE|notinva|notinvb|notinvc|NotLeftTriangle);" +color brightred "&(NotLeftTriangleBar|NotLeftTriangleEqual|NotLess|NotLessEqual|NotLessGreater|NotLessLess);" +color brightred "&(NotLessSlantEqual|NotLessTilde|NotNestedGreaterGreater|NotNestedLessLess|notni|notniva|notnivb|notnivc);" +color brightred "&(NotPrecedes|NotPrecedesEqual|NotPrecedesSlantEqual|NotReverseElement|NotRightTriangle);" +color brightred "&(NotRightTriangleBar|NotRightTriangleEqual|NotSquareSubset|NotSquareSubsetEqual|NotSquareSuperset);" +color brightred "&(NotSquareSupersetEqual|NotSubset|NotSubsetEqual|NotSucceeds|NotSucceedsEqual|NotSucceedsSlantEqual);" +color brightred "&(NotSucceedsTilde|NotSuperset|NotSupersetEqual|NotTilde|NotTildeEqual|NotTildeFullEqual|NotTildeTilde);" +color brightred "&(NotVerticalBar|npar|nparallel|nparsl|npart|npolint|npr|nprcue|npre|nprec|npreceq|nrArr|nrarr|nrarrc);" +color brightred "&(nrarrw|nRightarrow|nrightarrow|nrtri|nrtrie|nsc|nsccue|nsce|Nscr|nscr|nshortmid|nshortparallel|nsim);" +color brightred "&(nsime|nsimeq|nsmid|nspar|nsqsube|nsqsupe|nsub|nsubE|nsube|nsubset|nsubseteq|nsubseteqq|nsucc|nsucceq);" +color brightred "&(nsup|nsupE|nsupe|nsupset|nsupseteq|nsupseteqq|ntgl|Ntilde|ntilde|ntlg|ntriangleleft|ntrianglelefteq);" +color brightred "&(ntriangleright|ntrianglerighteq|Nu|nu|num|numero|numsp|nvap|nVDash|nVdash|nvDash|nvdash|nvge|nvgt);" +color brightred "&(nvHarr|nvinfin|nvlArr|nvle|nvlt|nvltrie|nvrArr|nvrtrie|nvsim|nwarhk|nwArr|nwarr|nwarrow|nwnear|Oacute);" +color brightred "&(oacute|oast|ocir|Ocirc|ocirc|Ocy|ocy|odash|Odblac|odblac|odiv|odot|odsold|OElig|oelig|ofcir|Ofr|ofr);" +color brightred "&(ogon|Ograve|ograve|ogt|ohbar|ohm|oint|olarr|olcir|olcross|oline|olt|Omacr|omacr|Omega|omega|Omicron);" +color brightred "&(omicron|omid|ominus|Oopf|oopf|opar|OpenCurlyDoubleQuote|OpenCurlyQuote|operp|oplus|Or|or|orarr|ord);" +color brightred "&(order|orderof|ordf|ordm|origof|oror|orslope|orv|oS|Oscr|oscr|Oslash|oslash|osol|Otilde|otilde|Otimes);" +color brightred "&(otimes|otimesas|Ouml|ouml|ovbar|OverBar|OverBrace|OverBracket|OverParenthesis|par|para|parallel|parsim);" +color brightred "&(parsl|part|PartialD|Pcy|pcy|percnt|period|permil|perp|pertenk|Pfr|pfr|Phi|phi|phiv|phmmat|phone|Pi|pi);" +color brightred "&(pitchfork|piv|planck|planckh|plankv|plus|plusacir|plusb|pluscir|plusdo|plusdu|pluse|PlusMinus|plusmn);" +color brightred "&(plussim|plustwo|pm|Poincareplane|pointint|Popf|popf|pound|Pr|pr|prap|prcue|prE|pre|prec|precapprox);" +color brightred "&(preccurlyeq|Precedes|PrecedesEqual|PrecedesSlantEqual|PrecedesTilde|preceq|precnapprox|precneqq);" +color brightred "&(precnsim|precsim|Prime|prime|primes|prnap|prnE|prnsim|prod|Product|profalar|profline|profsurf|prop);" +color brightred "&(Proportion|Proportional|propto|prsim|prurel|Pscr|pscr|Psi|psi|puncsp|Qfr|qfr|qint|Qopf|qopf|qprime);" +color brightred "&(Qscr|qscr|quaternions|quatint|quest|questeq|QUOT|quot|rAarr|race|Racute|racute|radic|raemptyv|Rang);" +color brightred "&(rang|rangd|range|rangle|raquo|Rarr|rArr|rarr|rarrap|rarrb|rarrbfs|rarrc|rarrfs|rarrhk|rarrlp|rarrpl);" +color brightred "&(rarrsim|Rarrtl|rarrtl|rarrw|rAtail|ratail|ratio|rationals|RBarr|rBarr|rbarr|rbbrk|rbrace|rbrack|rbrke);" +color brightred "&(rbrksld|rbrkslu|Rcaron|rcaron|Rcedil|rcedil|rceil|rcub|Rcy|rcy|rdca|rdldhar|rdquo|rdquor|rdsh|Re|real);" +color brightred "&(realine|realpart|reals|rect|REG|reg|ReverseElement|ReverseEquilibrium|ReverseUpEquilibrium|rfisht);" +color brightred "&(rfloor|Rfr|rfr|rHar|rhard|rharu|rharul|Rho|rho|rhov|RightAngleBracket|RightArrow|Rightarrow|rightarrow);" +color brightred "&(RightArrowBar|RightArrowLeftArrow|rightarrowtail|RightCeiling|RightDoubleBracket|RightDownTeeVector);" +color brightred "&(RightDownVector|RightDownVectorBar|RightFloor|rightharpoondown|rightharpoonup|rightleftarrows);" +color brightred "&(rightleftharpoons|rightrightarrows|rightsquigarrow|RightTee|RightTeeArrow|RightTeeVector);" +color brightred "&(rightthreetimes|RightTriangle|RightTriangleBar|RightTriangleEqual|RightUpDownVector|RightUpTeeVector);" +color brightred "&(RightUpVector|RightUpVectorBar|RightVector|RightVectorBar|ring|risingdotseq|rlarr|rlhar|rlm|rmoust);" +color brightred "&(rmoustache|rnmid|roang|roarr|robrk|ropar|Ropf|ropf|roplus|rotimes|RoundImplies|rpar|rpargt|rppolint);" +color brightred "&(rrarr|Rrightarrow|rsaquo|Rscr|rscr|Rsh|rsh|rsqb|rsquo|rsquor|rthree|rtimes|rtri|rtrie|rtrif|rtriltri);" +color brightred "&(RuleDelayed|ruluhar|rx|Sacute|sacute|sbquo|Sc|sc|scap|Scaron|scaron|sccue|scE|sce|Scedil|scedil|Scirc);" +color brightred "&(scirc|scnap|scnE|scnsim|scpolint|scsim|Scy|scy|sdot|sdotb|sdote|searhk|seArr|searr|searrow|sect|semi);" +color brightred "&(seswar|setminus|setmn|sext|Sfr|sfr|sfrown|sharp|SHCHcy|shchcy|SHcy|shcy|ShortDownArrow|ShortLeftArrow);" +color brightred "&(shortmid|shortparallel|ShortRightArrow|ShortUpArrow|shy|Sigma|sigma|sigmaf|sigmav|sim|simdot|sime);" +color brightred "&(simeq|simg|simgE|siml|simlE|simne|simplus|simrarr|slarr|SmallCircle|smallsetminus|smashp|smeparsl|smid);" +color brightred "&(smile|smt|smte|smtes|SOFTcy|softcy|sol|solb|solbar|Sopf|sopf|spades|spadesuit|spar|sqcap|sqcaps|sqcup);" +color brightred "&(sqcups|Sqrt|sqsub|sqsube|sqsubset|sqsubseteq|sqsup|sqsupe|sqsupset|sqsupseteq|squ|Square|square);" +color brightred "&(SquareIntersection|SquareSubset|SquareSubsetEqual|SquareSuperset|SquareSupersetEqual|SquareUnion);" +color brightred "&(squarf|squf|srarr|Sscr|sscr|ssetmn|ssmile|sstarf|Star|star|starf|straightepsilon|straightphi|strns|Sub);" +color brightred "&(sub|subdot|subE|sube|subedot|submult|subnE|subne|subplus|subrarr|Subset|subset|subseteq|subseteqq);" +color brightred "&(SubsetEqual|subsetneq|subsetneqq|subsim|subsub|subsup|succ|succapprox|succcurlyeq|Succeeds);" +color brightred "&(SucceedsEqual|SucceedsSlantEqual|SucceedsTilde|succeq|succnapprox|succneqq|succnsim|succsim|SuchThat);" +color brightred "&(Sum|sum|sung|Sup|sup|sup1|sup2|sup3|supdot|supdsub|supE|supe|supedot|Superset|SupersetEqual|suphsol);" +color brightred "&(suphsub|suplarr|supmult|supnE|supne|supplus|Supset|supset|supseteq|supseteqq|supsetneq|supsetneqq);" +color brightred "&(supsim|supsub|supsup|swarhk|swArr|swarr|swarrow|swnwar|szlig|Tab|target|Tau|tau|tbrk|Tcaron|tcaron);" +color brightred "&(Tcedil|tcedil|Tcy|tcy|tdot|telrec|Tfr|tfr|there4|Therefore|therefore|Theta|theta|thetasym|thetav);" +color brightred "&(thickapprox|thicksim|ThickSpace|thinsp|ThinSpace|thkap|thksim|THORN|thorn|Tilde|tilde|TildeEqual);" +color brightred "&(TildeFullEqual|TildeTilde|times|timesb|timesbar|timesd|tint|toea|top|topbot|topcir|Topf|topf|topfork);" +color brightred "&(tosa|tprime|TRADE|trade|triangle|triangledown|triangleleft|trianglelefteq|triangleq|triangleright);" +color brightred "&(trianglerighteq|tridot|trie|triminus|TripleDot|triplus|trisb|tritime|trpezium|Tscr|tscr|TScy|tscy);" +color brightred "&(TSHcy|tshcy|Tstrok|tstrok|twixt|twoheadleftarrow|twoheadrightarrow|Uacute|uacute|Uarr|uArr|uarr);" +color brightred "&(Uarrocir|Ubrcy|ubrcy|Ubreve|ubreve|Ucirc|ucirc|Ucy|ucy|udarr|Udblac|udblac|udhar|ufisht|Ufr|ufr|Ugrave);" +color brightred "&(ugrave|uHar|uharl|uharr|uhblk|ulcorn|ulcorner|ulcrop|ultri|Umacr|umacr|uml|UnderBar|UnderBrace);" +color brightred "&(UnderBracket|UnderParenthesis|Union|UnionPlus|Uogon|uogon|Uopf|uopf|UpArrow|Uparrow|uparrow|UpArrowBar);" +color brightred "&(UpArrowDownArrow|UpDownArrow|Updownarrow|updownarrow|UpEquilibrium|upharpoonleft|upharpoonright|uplus);" +color brightred "&(UpperLeftArrow|UpperRightArrow|Upsi|upsi|upsih|Upsilon|upsilon|UpTee|UpTeeArrow|upuparrows|urcorn);" +color brightred "&(urcorner|urcrop|Uring|uring|urtri|Uscr|uscr|utdot|Utilde|utilde|utri|utrif|uuarr|Uuml|uuml|uwangle);" +color brightred "&(vangrt|varepsilon|varkappa|varnothing|varphi|varpi|varpropto|vArr|varr|varrho|varsigma|varsubsetneq);" +color brightred "&(varsubsetneqq|varsupsetneq|varsupsetneqq|vartheta|vartriangleleft|vartriangleright|Vbar|vBar|vBarv|Vcy);" +color brightred "&(vcy|VDash|Vdash|vDash|vdash|Vdashl|Vee|vee|veebar|veeeq|vellip|Verbar|verbar|Vert|vert|VerticalBar);" +color brightred "&(VerticalLine|VerticalSeparator|VerticalTilde|VeryThinSpace|Vfr|vfr|vltri|vnsub|vnsup|Vopf|vopf|vprop);" +color brightred "&(vrtri|Vscr|vscr|vsubnE|vsubne|vsupnE|vsupne|Vvdash|vzigzag|Wcirc|wcirc|wedbar|Wedge|wedge|wedgeq);" +color brightred "&(weierp|Wfr|wfr|Wopf|wopf|wp|wr|wreath|Wscr|wscr|xcap|xcirc|xcup|xdtri|Xfr|xfr|xhArr|xharr|Xi|xi|xlArr);" +color brightred "&(xlarr|xmap|xnis|xodot|Xopf|xopf|xoplus|xotime|xrArr|xrarr|Xscr|xscr|xsqcup|xuplus|xutri|xvee|xwedge);" +color brightred "&(Yacute|yacute|YAcy|yacy|Ycirc|ycirc|Ycy|ycy|yen|Yfr|yfr|YIcy|yicy|Yopf|yopf|Yscr|yscr|YUcy|yucy|Yuml);" +color brightred "&(yuml|Zacute|zacute|Zcaron|zcaron|Zcy|zcy|Zdot|zdot|zeetrf|ZeroWidthSpace|Zeta|zeta|Zfr|zfr|ZHcy|zhcy);" +color brightred "&(zigrarr|Zopf|zopf|Zscr|zscr|zwj|zwnj);" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/ini.nanorc b/common/nano/syntax/ini.nanorc index d89f729..7226dff 100644 --- a/common/nano/syntax/ini.nanorc +++ b/common/nano/syntax/ini.nanorc @@ -1,11 +1,32 @@ -syntax "INI" "\.(ini|desktop|lfl|override|cfg)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" +syntax "ini" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" header "^\[[A-Za-z]+\]$" -color brightcyan "\<(true|false)\>" -color cyan "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" -color red "[=;]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblue "(^|[[:space:]])(#([^{].*)?|;.*)$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color brightwhite "\<(true|false)\>" +color red "^[[:space:]]*[^=]*=" +color red "^[[:space:]]*\[.*\]$" +color yellow "[=;]" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/inputrc.nanorc b/common/nano/syntax/inputrc.nanorc index c2f6005..7a38c22 100644 --- a/common/nano/syntax/inputrc.nanorc +++ b/common/nano/syntax/inputrc.nanorc @@ -1,10 +1,31 @@ -syntax "Inputrc" "inputrc$" +syntax "inputrc" "inputrc$" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" color red "\<(off|none)\>" color green "\" -color brightblue "\" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color magenta "\\.?" +color cyan "\" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\.?" color brightblack "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/java.nanorc b/common/nano/syntax/java.nanorc index fe3f286..8b35766 100644 --- a/common/nano/syntax/java.nanorc +++ b/common/nano/syntax/java.nanorc @@ -1,22 +1,52 @@ -## Here is an example for Java. -## -syntax "Java" "\.java$" -magic "Java " +syntax "java" "\.java$" + +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" + +# Class +color red "class +[A-Za-z0-9]+ *((implements|extends) +[A-Za-z0-9.]+)?" + +# Annotation +color yellow "@[A-Za-z]+" + +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color blue "\<(boolean|byte|char|double|float|int|long|short|String|void)\>" +color red "\<(case|catch|default|do|else|finally|for|if)\>" +color red "\<(new|return|switch|this|throw|transient|try|while)\>" +color red "\<(abstract|class|extends|final|implements|import|instanceof)\>" +color red "\<(interface|native|package|private|protected|public|static)\>" +color red "\<(strictfp|super|synchronized|throws|volatile|null)\>" +color red "\<(break|continue)\>" +color brightwhite "\<(true|false)\>" +color yellow "[-+/*=<>?:!~%&|]" +color brightwhite "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\([btnfr]|'|\"|\\)" +color yellow "\\u[A-Fa-f0-9]{4}" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="/\*" end="\*/" comment "//" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" -color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" -color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" -color red ""[^"]*"" -color yellow "\<(true|false|null)\>" -icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" -color blue "//.*" -color blue start="^\s*/\*" end="\*/" -color brightblue start="/\*\*" end="\*/" - -# Highlighting for javadoc stuff -color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+" -color magenta "@return" -color magenta "@author.*" - -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/javascript.nanorc b/common/nano/syntax/javascript.nanorc index 2cdd4a2..66802a8 100644 --- a/common/nano/syntax/javascript.nanorc +++ b/common/nano/syntax/javascript.nanorc @@ -1,25 +1,59 @@ -syntax "JavaScript" "\.(js|ts)$" +syntax "JavaScript" "\.js$" + +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" + +color brightblue "\<[A-Z_]+\>" +color brightblue "(const|var|let)[[:space:]]+.+?[[:space:]]*=" +color white "\(?function[[:space:]]*\(.*?\)" +color yellow "[-+/*=<>!~%?:&|]" +color red "\?.+:" +color red "=>" +color brightwhite "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" +color brightwhite "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color brightwhite "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color red "\<(abstract|arguments|boolean|break|byte|case|catch|char|class|const|continue)\>" +color red "\<(debugger|default|delete|do|double|else|enum|eval|export|extends|false|final)\>" +color red "\<(finally|float|for|function|goto|if|implements|import|in|instanceof|int|interface)\>" +color red "\<(let|long|native|new|package|private|protected|public|return|short|static|super)\>" +color red "\<(switch|synchronized|this|throw|throws|transient|true|try|typeof|var|void|volatile)\>" +color red "\<(while|with|yield)\>" +color brightwhite "\<(null|undefined|NaN)\>" +color brightwhite "\<(true|false)\>" +color brightblue "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color brightblue "\<(Number|Object|RegExp|String)\>" +color white "[A-Za-z_][A-Za-z0-9_]+:" +color white "\?\." +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color green start="`" end="`" +color yellow "/[^*]([^/]|(\\/))*[^\\]/[gim]*" +color yellow "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="/\*" end="\*/" comment "//" -color blue "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" -color blue "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" -color blue "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]|)" -color cyan "\<(break|case|catch|continue|default|delete|do|else|finally)\>" -color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>" -color cyan "\<(switch|this|throw|try|typeof|var|void|while|with)\>" -color cyan "\<(null|undefined|NaN)\>" -color cyan "\<(import|as|from|export)\>" -color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>" -color brightcyan "\<(true|false)\>" -color green "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" -color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>" -color green "\<(Number|Object|RegExp|String)\>" -color red "[-+/*=<>!~%?:&|]" -color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*" -color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" -color brightblack "//.*" -color brightblack "/\*.+\*/" -color brightwhite,cyan "TODO:?" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" + diff --git a/common/nano/syntax/json.nanorc b/common/nano/syntax/json.nanorc index 1f79c18..5438a17 100644 --- a/common/nano/syntax/json.nanorc +++ b/common/nano/syntax/json.nanorc @@ -1,13 +1,32 @@ -syntax "JSON" "\.json$" +syntax "json" "\.json$" header "^\{$" -# You can't add a comment to JSON. -comment "" -color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" -color cyan "\" -color brightcyan "\<(true|false)\>" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" -color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color brightwhite "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" +color red "\" +color brightwhite "\<(true|false)\>" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color blue "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" +color yellow "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/kotlin.nanorc b/common/nano/syntax/kotlin.nanorc index bde7592..0644416 100644 --- a/common/nano/syntax/kotlin.nanorc +++ b/common/nano/syntax/kotlin.nanorc @@ -23,4 +23,22 @@ color red "^\s*//.*" color red start="^\s*/\*" end="\*/" ## Trailing whitespace -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/license b/common/nano/syntax/license deleted file mode 100644 index f05e2ce..0000000 --- a/common/nano/syntax/license +++ /dev/null @@ -1,16 +0,0 @@ - nano run control files - Copyright (C) 2022+ Galen Guyer - Copyright (C) 2014+ Anthony Scopatz et al. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . diff --git a/common/nano/syntax/lua.nanorc b/common/nano/syntax/lua.nanorc index bec44ad..9801286 100644 --- a/common/nano/syntax/lua.nanorc +++ b/common/nano/syntax/lua.nanorc @@ -1,80 +1,45 @@ -############################################################################## -# -# Lua syntax highlighting for Nano. -# -# Author: Matthew Wild -# License: GPL 2 or later -# -# Version: 2007-06-06 -# -# Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt -############################################################################## +syntax "lua" "\.lua$" +header "^#!.*lua(jit)?$" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*([({'"]|\[=*\[)" +color red "\<(do|end|while|repeat|until|if|elseif|then|else)\>" +color red "\<(for|in|function|local|return|nil)\>" +color red "\<(goto|break)\>" +color brightwhite "\<(true|false)\>" +color yellow "[-+:*/%^=#<>]|~=|\.\.|\[|\]|\<(not|and|or)\>" +color brightyellow "[`!@$&|?]|!=" +color white "\.{3,}|[({'"]" +color brightwhite "\<([0-9]+)(\.[0-9]+)?([Ee][+-]?[0-9]+)?\>|0x[0-9a-fA-F]*" +color red "::[A-Za-z_][A-Za-z0-9_]*::" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "\\([0-9]{1,3}|x[A-Fa-f0-9]{2}|[abefntrv'"\\]|\[|\])" +color green start="\[\[" end="\]\]" +color green start="\[=\[" end="\]=\]" +color green start="\[==\[" end="\]==\]" +color brightblack "^#!.*" "(^|[[:space:]])\-\-.*$" +color brightblack start="\-\-\[\[" end="\]\]" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -# Automatically use for '.lua' files -syntax "Lua" ".*\.lua$" -magic "Lua script" -comment "--" - -linter luacheck --no-color - -# General -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)\>" - -# Keywords -color brightyellow "\<(debug|string|math|table|io|coroutine|os|utf8|bit32)\>\." -color brightyellow "\<(_ENV|_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 "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>" -color brightyellow "math\.\<(abs|acos|asin|atan2|atan|ceil|cosh|cos|deg|exp|floor|fmod|frexp|huge|ldexp|log10|log|max|maxinteger|min|mininteger|modf|pi|pow|rad|random|randomseed|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|seeall|searchers|searchpath)\>" -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|codes|codepoint|len|offset)\>" -color brightyellow "coroutine\.\<(create|isyieldable|resume|running|status|wrap|yield)\>" -color brightyellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|getuservalue|setfenv|sethook|setlocal|setmetatable|setupvalue|setuservalue|traceback|upvalueid|upvaluejoin)\>" -color brightyellow "bit32\.\<(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)\>" - -# 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|include)|%q|%!|%Q|%r|%x)\>" - -# Numbers -color red "\<([0-9]+)\>" - -# Symbols -color brightmagenta "(\(|\)|\[|\]|\{|\})" - -# Strings -color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" - -# Multiline strings -color red start="\s*\[\[" end="\]\]" - -# Escapes -color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)." - -# Shebang -color brightcyan "^#!.*" - -# Simple comments -color green "\-\-.*$" - -# Multiline comments -color green start="\s*\-\-\s*\[\[" end="\]\]" - -# Trailing whitespaces -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/m3u.nanorc b/common/nano/syntax/m3u.nanorc index 3e237e3..659bc11 100644 --- a/common/nano/syntax/m3u.nanorc +++ b/common/nano/syntax/m3u.nanorc @@ -20,3 +20,21 @@ color normal "[,=]" # URLs color normal "^[^#].*" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/makefile.nanorc b/common/nano/syntax/makefile.nanorc index 5bda434..dce9f59 100644 --- a/common/nano/syntax/makefile.nanorc +++ b/common/nano/syntax/makefile.nanorc @@ -1,25 +1,43 @@ -syntax "Makefile" "([Mm]akefile|\.ma?k)$" +syntax "makefile" "([Mm]akefile|\.ma?k)$" header "^#!.*/(env +)?[bg]?make( |$)" -magic "makefile script" -comment "#" -color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" -color cyan "^(export|include|override)\>" -color brightmagenta "^[^:= ]+:" -color brightmagenta "^[^:+ ]+\+" -color red "[=,%]" "\+=|\?=|:=|&&|\|\|" -color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" -color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" -color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" -color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" -color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]" -color black "[()$]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))" -color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)" -color magenta "\$\$|\\.?" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color red "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" +color red "^(export|include|override)\>" +color red "^[^:= ]+:" +color yellow "[=,%]" "\+=|\?=|:=|&&|\|\|" +color cyan "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" +color cyan "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" +color cyan "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" +color cyan "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" +color cyan "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]" +color white "[()$]" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color blue "\$+(\{[^} ]+\}|\([^) ]+\))" +color blue "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)" +color yellow "\$\$|\\.?" color brightblack "(^|[[:space:]])#([^{].*)?$" color brightblack "^ @#.*" # Show trailing whitespace -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/man.nanorc b/common/nano/syntax/man.nanorc index 5239bea..47b2a1e 100644 --- a/common/nano/syntax/man.nanorc +++ b/common/nano/syntax/man.nanorc @@ -1,12 +1,30 @@ -## Here is an example for manpages. -## -syntax "Man" "\.[1-9]x?$" -magic "troff or preprocessor input" -comment ".\"" +syntax "man" "\.[1-9]x?$" -color green "\.(S|T)H.*$" -color brightgreen "\.(S|T)H" "\.TP" -color brightred "\.(BR?|I[PR]?).*$" -color brightblue "\.(BR?|I[PR]?|PP)" -color brightwhite "\\f[BIPR]" -color yellow "\.(br|DS|RS|RE|PD)" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color red "\.(S|T)H.*$" +color red "\.(BR?|I[PR]?).*$" +color red "\.(S|T)H|\.TP|\.(BR?|I[PR]?|PP)|\\f[BIPR]" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color green "\.(br|DS|RS|RE|PD)" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/markdown.nanorc b/common/nano/syntax/markdown.nanorc index f5d2954..9b95895 100644 --- a/common/nano/syntax/markdown.nanorc +++ b/common/nano/syntax/markdown.nanorc @@ -1,11 +1,8 @@ -syntax "Markdown" "\.(md|mkd|mkdn|markdown|mdx|mdown)$" +syntax "markdown" "\.(md|mkd|mkdn|markdown)$" -# Tables (Github extension) -color cyan ".*[ :]\|[ :].*" - -# quotes -color brightblack start="^>" end="^$" -color brightblack "^>.*" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" # Emphasis color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" @@ -13,39 +10,31 @@ color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" # Strong emphasis color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" -# strike-through -color red "(^|[[:space:]])~~[^ ][^~]*~~" +color red "^=====*$|^-----*$|^#{1,6}[^#].*$" +color brightwhite "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " +color white "^[[:space:]]+" +color yellow "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" +color brightblue "\!?\[[^]]*\]([[:space:]]*(\[[^]]*\]|\([^)]*\)))?" +color brightblue "^\[[^]]*\]:[[:space:]]*[^"]*" +color green "`[^`]*`|^ {4}[^-+*].*" +color brightblack "^>.*" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -# horizontal rules -color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$" - -# headlines -color brightwhite "^#{1,6} .*" - -# lists -color brightblue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " - -# leading whitespace -color black "^[[:space:]]+" - -# misc -color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" - -# links -color brightblue "\[[^]]+\]" -color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)" - -# images -color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])" - -# urls -color brightyellow "https?://[^ )>]+" - -# code -color yellow "`[^`]*`|^ {4}[^-+*].*" -# code blocks -color yellow start="^```[^$]" end="^```$" -color yellow "^```$" - -## Trailing spaces -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/nanorc.nanorc b/common/nano/syntax/nanorc.nanorc index 50976cd..e5b1bde 100644 --- a/common/nano/syntax/nanorc.nanorc +++ b/common/nano/syntax/nanorc.nanorc @@ -1,50 +1,43 @@ -## Syntax highlighting for nanorc files. +syntax "nanorc" "nanorc$" +header "^syntax[[:space:]]+"[^"]*"[[:space:]]+"" -syntax nanorc "[/.]nanorc(\.in)?$" -comment "#" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color blue "^i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" +color red "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct|quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>" +color red "^(bind|i?color|set|unset|syntax|header|magic)\>" +color red "^unbind\>" +color red "\<(start|end)=" -# Everything that does not get recolored is invalid -color brightred ".*" +color red "^~?(PLAIN|FUNCTION|STRING|COMMENT|TYPE|BOOLEAN|NUMBER|VARIABLE|OPERATOR|KEYWORD|MACRO|REGEXP|ESCAPE|DELIMITER|JUMP|WARNING|SECTION|TAG|ATTRIBUTE|CHARREF|PATH|URL|EMAIL|WHITESPACE):" +color yellow "^~|[:=]" +color red "^\+(TODO|LINT|STRING|BOOLEAN|FUNCTION|INI|(C|HASH)COMMENT|RESETALL|WHITESPACE|LONGLINE[0-9]*)([[:space:]]|$)" +# Make white spaces plain again +color white "[[:space:]]+" +color green ""[^"]*"" +color brightblue "^include[[:space:]]+.+?[[:space:]]*$" +color red "^include\>" +color yellow "\\.?" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" +color brightyellow "^.{120}.+$" -# Color names -color yellow "^[[:blank:]]*(i?color|set[[:blank:]]+((error|function|key|mini|number|prompt|scroller|selected|spotlight|status|stripe|title)color))[[:blank:]]+(bold,)?(italic,)?(((bright|light)?(white|black|red|blue|green|yellow|magenta|cyan))|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|rosy|beet|plum|sea|sky|slate|teal|sage|brown|ocher|sand|tawny|brick|crimson|grey|gray|#[[:xdigit:]]{3})?(,(((light)?(white|black|red|blue|green|yellow|magenta|cyan))|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|rosy|beet|plum|sea|sky|slate|teal|sage|brown|ocher|sand|tawny|brick|crimson|grey|gray|#[[:xdigit:]]{3}))?\>" - -# The arguments of two special commands -color brightmagenta "^[[:blank:]]*include[[:blank:]][^"]*([[:blank:]]|$)" -color brightgreen "^[[:blank:]]*extendsyntax[[:blank:]]+[[:alpha:]]+[[:blank:]]+(i?color|header|magic|comment|formatter|linter|tabgives)[[:blank:]]+.*" - -# The arguments of commands -color brightgreen "^[[:blank:]]*(set|unset)[[:blank:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|boldtext|bookstyle|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|historylog|indicator|jumpyscrolling|linenumbers|locking|magic|minibar|mouse|multibuffer|noconvert|nohelp|nonewlines|positionlog|preserve|quickblank|rawsequences|rebinddelete|regexp|saveonexit|showcursor|smarthome|softwrap|stateflags|tabstospaces|trimblanks|unix|wordbounds|zap|zero)\>" -color brightgreen "^[[:blank:]]*set[[:blank:]]+(backupdir|brackets|errorcolor|functioncolor|keycolor|matchbrackets|minicolor|numbercolor|operatingdir|promptcolor|punct|quotestr|scrollercolor|selectedcolor|speller|spotlightcolor|statuscolor|stripecolor|titlecolor|whitespace|wordchars)[[:blank:]]+" -color brightgreen "^[[:blank:]]*set[[:blank:]]+(fill[[:blank:]]+-?[[:digit:]]+|(guidestripe|tabsize)[[:blank:]]+[1-9][0-9]*)\>" -color brightgreen "^[[:blank:]]*bind[[:blank:]]+((\^([A-Za-z]|[]/@\^_`-]|Space)|([Ss][Hh]-)?[Mm]-[A-Za-z]|[Mm]-([][!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-9]|2[0-4])|Ins|Del)[[:blank:]]+([a-z]+|".*")[[:blank:]]+(main|help|search|replace(with)?|yesno|gotoline|writeout|insert|execute|browser|whereisfile|gotodir|spell|linter|all)\>" -color brightgreen "^[[:blank:]]*unbind[[:blank:]]+((\^([A-Za-z]|[]/@\^_`-]|Space)|([Ss][Hh]-)?[Mm]-[A-Za-z]|[Mm]-([][!"#$%&'()*+,./0-9:;<=>?@\^_`{|}~-]|Space))|F([1-9]|1[0-9]|2[0-4])|Ins|Del)[[:blank:]]+(main|help|search|replace(with)?|yesno|gotoline|writeout|insert|execute|browser|whereisfile|gotodir|spell|linter|all)\>" -color brightgreen "^[[:blank:]]*extendsyntax[[:blank:]]+[[:alpha:]]+[[:blank:]]+" -color brightgreen "^[[:blank:]]*(syntax[[:blank:]]+[^[:space:]]+|(formatter|linter)[[:blank:]]+.+)" - -# Strings -color brightmagenta "[[:blank:]](start=)?".+"" - -# Function names in string binds -color crimson "\{(help|cancel|exit|savefile|writeout|discardbuffer|insert|where(is|was)|find(previous|next|bracket)|replace)\}" -color crimson "\{(cut|copy|paste|zap|chopword(left|right)|cutrestoffile|execute|mark|speller|linter|formatter|(full)?justify)\}" -color crimson "\{(location|gotoline|(begin|end)para|comment|complete|(un)?indent|wordcount|(record|run)macro|anchor|undo|redo)\}" -color crimson "\{(left|right|up|down|home|end|(scroll|page)(up|down)|center|(prev|next)(word|block|anchor|buf))\}" -color crimson "\{(tab|enter|delete|backspace|verbatim|refresh|suspend|casesens|regexp|backwards|older|newer|(dos|mac)format)\}" -color crimson "\{(append|prepend|backup|flip(goto|replace|execute|pipe|convert|newbuffer)|browser|gotodir|(first|last)(file|line))\}" -color crimson "\{(nohelp|constantshow|softwrap|linenumbers|whitespacedisplay|nosyntax|zero)\}" -color crimson "\{(smarthome|autoindent|cutfromcursor|breaklonglines|tabstospaces|mouse|\{)\}" - -# Commands -color green "^[[:blank:]]*((un)?(bind|set)|include|syntax|header|magic|comment|formatter|linter|tabgives|extendsyntax)\>" -color magenta "^[[:blank:]]*i?color\>|[[:blank:]](start=|end=)" - -# Control codes -color bold,pink "[[:cntrl:]]" - -# Comments -color brightblue "^[[:blank:]]*#.*|[[:blank:]]#.{0,2}[^[:xdigit:]].*" -color cyan "^[[:blank:]]*##.*" - -# Trailing whitespace -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/nginx.nanorc b/common/nano/syntax/nginx.nanorc index 164b7e4..4512997 100644 --- a/common/nano/syntax/nginx.nanorc +++ b/common/nano/syntax/nginx.nanorc @@ -1,13 +1,168 @@ -syntax "Nginx" "nginx.*\.conf$" "\.nginx$" ".*\/sites\-available\/.*$" ".*\/sites\-enabled\/.*$" -header "^(server|upstream)[^{]*\{$" +syntax "nginx" "nginx.*\.conf$" "\.nginx$" +header "^(server|upstream)[a-z ]*\{$" -color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{" -color cyan "(^|[[:space:]{;])(absolute_redirect|accept_mutex|accept_mutex_delay|access_log|add_after_body|add_before_body|add_header|add_trailer|addition_types|aio|aio_write|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|auth_delay|auth_http|auth_http_header|auth_http_pass_client_cert|auth_http_timeout|auth_jwt|auth_jwt_claim_set|auth_jwt_header_set|auth_jwt_key_file|auth_jwt_key_request|auth_jwt_leeway|auth_jwt_type|auth_request|auth_request_set|autoindex|autoindex_exact_size|autoindex_format|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|debug_connection|debug_points|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|etag|events|expires|f4f|f4f_buffer_size|fastcgi_bind|fastcgi_buffer_size|fastcgi_buffering|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_background_update|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_age|fastcgi_cache_lock_timeout|fastcgi_cache_max_range_offset|fastcgi_cache_methods|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_purge|fastcgi_cache_revalidate|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_catch_stderr|fastcgi_connect_timeout|fastcgi_force_ranges|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_limit_rate|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_next_upstream_timeout|fastcgi_next_upstream_tries|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_pass_request_body|fastcgi_pass_request_headers|fastcgi_read_timeout|fastcgi_request_buffering|fastcgi_send_lowat|fastcgi_send_timeout|fastcgi_socket_keepalive|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|geoip_org|geoip_proxy|geoip_proxy_recursive|google_perftools_profiles|grpc_bind|grpc_buffer_size|grpc_connect_timeout|grpc_hide_header|grpc_ignore_headers|grpc_intercept_errors|grpc_next_upstream|grpc_next_upstream_timeout|grpc_next_upstream_tries|grpc_pass|grpc_pass_header|grpc_read_timeout|grpc_send_timeout|grpc_set_header|grpc_socket_keepalive|grpc_ssl_certificate|grpc_ssl_certificate_key|grpc_ssl_ciphers|grpc_ssl_conf_command|grpc_ssl_crl|grpc_ssl_name|grpc_ssl_password_file|grpc_ssl_protocols|grpc_ssl_server_name|grpc_ssl_session_reuse|grpc_ssl_trusted_certificate|grpc_ssl_verify|grpc_ssl_verify_depth|gunzip|gunzip_buffers|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|hash|health_check|health_check_timeout|hls|hls_buffers|hls_forward_args|hls_fragment|hls_mp4_buffer_size|hls_mp4_max_buffer_size|http|http2_body_preread_size|http2_chunk_size|http2_idle_timeout|http2_max_concurrent_pushes|http2_max_concurrent_streams|http2_max_field_size|http2_max_header_size|http2_max_requests|http2_push|http2_push_preload|http2_recv_buffer_size|http2_recv_timeout|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_interlace|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|image_filter_webp_quality|imap_auth|imap_capabilities|imap_client_buffer|include|index|internal|ip_hash|js_access|js_body_filter|js_content|js_filter|js_header_filter|js_import|js_include|js_path|js_preread|js_set|js_var|keepalive|keepalive_disable|keepalive_requests|keepalive_time|keepalive_timeout|large_client_header_buffers|least_conn|least_time|limit_conn|limit_conn_dry_run|limit_conn_log_level|limit_conn_status|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_dry_run|limit_req_log_level|limit_req_status|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|load_module|location|lock_file|log_format|log_not_found|log_subrequest|mail|map|map_hash_bucket_size|map_hash_max_size|master_process|match|max_errors|max_ranges|memcached_bind|memcached_buffer_size|memcached_connect_timeout|memcached_force_ranges|memcached_gzip_flag|memcached_next_upstream|memcached_next_upstream_timeout|memcached_next_upstream_tries|memcached_pass|memcached_read_timeout|memcached_send_timeout|memcached_socket_keepalive|merge_slashes|min_delete_depth|mirror|mirror_request_body|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_limit_rate|mp4_limit_rate_after|mp4_max_buffer_size|msie_padding|msie_refresh|multi_accept|ntlm|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|output_buffers|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|pop3_auth|pop3_capabilities|port_in_redirect|postpone_output|preread_buffer_size|preread_timeout|protocol|proxy_bind|proxy_buffer|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_background_update|proxy_cache_bypass|proxy_cache_convert_head|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_age|proxy_cache_lock_timeout|proxy_cache_max_range_offset|proxy_cache_methods|proxy_cache_min_uses|proxy_cache_path|proxy_cache_purge|proxy_cache_revalidate|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_flags|proxy_cookie_path|proxy_download_rate|proxy_force_ranges|proxy_headers_hash_bucket_size|proxy_headers_hash_max_size|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_limit_rate|proxy_max_temp_file_size|proxy_method|proxy_next_upstream|proxy_next_upstream_timeout|proxy_next_upstream_tries|proxy_no_cache|proxy_pass|proxy_pass_error_message|proxy_pass_header|proxy_pass_request_body|proxy_pass_request_headers|proxy_protocol|proxy_protocol_timeout|proxy_read_timeout|proxy_redirect|proxy_request_buffering|proxy_requests|proxy_responses|proxy_send_lowat|proxy_send_timeout|proxy_session_drop|proxy_set_body|proxy_set_header|proxy_smtp_auth|proxy_socket_keepalive|proxy_ssl|proxy_ssl_certificate|proxy_ssl_certificate_key|proxy_ssl_ciphers|proxy_ssl_conf_command|proxy_ssl_crl|proxy_ssl_name|proxy_ssl_password_file|proxy_ssl_protocols|proxy_ssl_server_name|proxy_ssl_session_reuse|proxy_ssl_trusted_certificate|proxy_ssl_verify|proxy_ssl_verify_depth|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|proxy_timeout|proxy_upload_rate|queue|random|random_index|read_ahead|real_ip_header|real_ip_recursive|recursive_error_pages|referer_hash_bucket_size|referer_hash_max_size|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|rewrite_log|root|satisfy|scgi_bind|scgi_buffer_size|scgi_buffering|scgi_buffers|scgi_busy_buffers_size|scgi_cache|scgi_cache_background_update|scgi_cache_bypass|scgi_cache_key|scgi_cache_lock|scgi_cache_lock_age|scgi_cache_lock_timeout|scgi_cache_max_range_offset|scgi_cache_methods|scgi_cache_min_uses|scgi_cache_path|scgi_cache_purge|scgi_cache_revalidate|scgi_cache_use_stale|scgi_cache_valid|scgi_connect_timeout|scgi_force_ranges|scgi_hide_header|scgi_ignore_client_abort|scgi_ignore_headers|scgi_intercept_errors|scgi_limit_rate|scgi_max_temp_file_size|scgi_next_upstream|scgi_next_upstream_timeout|scgi_next_upstream_tries|scgi_no_cache|scgi_param|scgi_pass|scgi_pass_header|scgi_pass_request_body|scgi_pass_request_headers|scgi_read_timeout|scgi_request_buffering|scgi_send_timeout|scgi_socket_keepalive|scgi_store|scgi_store_access|scgi_temp_file_write_size|scgi_temp_path|secure_link|secure_link_md5|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|slice|smtp_auth|smtp_capabilities|smtp_client_buffer|smtp_greeting_delay|source_charset|spdy_chunk_size|spdy_headers_comp|split_clients|ssi|ssi_last_modified|ssi_min_file_chunk|ssi_silent_errors|ssi_types|ssi_value_length|ssl|ssl_buffer_size|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_conf_command|ssl_crl|ssl_dhparam|ssl_early_data|ssl_ecdh_curve|ssl_engine|ssl_handshake_timeout|ssl_ocsp|ssl_ocsp_cache|ssl_ocsp_responder|ssl_password_file|ssl_prefer_server_ciphers|ssl_preread|ssl_protocols|ssl_reject_handshake|ssl_session_cache|ssl_session_ticket_key|ssl_session_tickets|ssl_session_timeout|ssl_stapling|ssl_stapling_file|ssl_stapling_responder|ssl_stapling_verify|ssl_trusted_certificate|ssl_verify_client|ssl_verify_depth|starttls|state|status|status_format|status_zone|sticky|sticky_cookie_insert|stream|stub_status|sub_filter|sub_filter_last_modified|sub_filter_once|sub_filter_types|subrequest_output_buffer_size|tcp_nodelay|tcp_nopush|thread_pool|timeout|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|upstream_conf|use|user|userid|userid_domain|userid_expires|userid_flags|userid_mark|userid_name|userid_p3p|userid_path|userid_service|uwsgi_bind|uwsgi_buffer_size|uwsgi_buffering|uwsgi_buffers|uwsgi_busy_buffers_size|uwsgi_cache|uwsgi_cache_background_update|uwsgi_cache_bypass|uwsgi_cache_key|uwsgi_cache_lock|uwsgi_cache_lock_age|uwsgi_cache_lock_timeout|uwsgi_cache_max_range_offset|uwsgi_cache_methods|uwsgi_cache_min_uses|uwsgi_cache_path|uwsgi_cache_purge|uwsgi_cache_revalidate|uwsgi_cache_use_stale|uwsgi_cache_valid|uwsgi_connect_timeout|uwsgi_force_ranges|uwsgi_hide_header|uwsgi_ignore_client_abort|uwsgi_ignore_headers|uwsgi_intercept_errors|uwsgi_limit_rate|uwsgi_max_temp_file_size|uwsgi_modifier1|uwsgi_modifier2|uwsgi_next_upstream|uwsgi_next_upstream_timeout|uwsgi_next_upstream_tries|uwsgi_no_cache|uwsgi_param|uwsgi_pass|uwsgi_pass_header|uwsgi_pass_request_body|uwsgi_pass_request_headers|uwsgi_read_timeout|uwsgi_request_buffering|uwsgi_send_timeout|uwsgi_socket_keepalive|uwsgi_ssl_certificate|uwsgi_ssl_certificate_key|uwsgi_ssl_ciphers|uwsgi_ssl_conf_command|uwsgi_ssl_crl|uwsgi_ssl_name|uwsgi_ssl_password_file|uwsgi_ssl_protocols|uwsgi_ssl_server_name|uwsgi_ssl_session_reuse|uwsgi_ssl_trusted_certificate|uwsgi_ssl_verify|uwsgi_ssl_verify_depth|uwsgi_store|uwsgi_store_access|uwsgi_temp_file_write_size|uwsgi_temp_path|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_aio_requests|worker_connections|worker_cpu_affinity|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|worker_shutdown_timeout|working_directory|xclient|xml_entities|xslt_last_modified|xslt_param|xslt_string_param|xslt_stylesheet|xslt_types|zone)([[:space:]]|$)" -color brightcyan "\<(on|off)\>" -color brightyellow "\$[A-Za-z][A-Za-z0-9_]*" -color red "[*]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color yellow start="'$" end="';$" -color brightblue "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color brightwhite "(^|[[:space:]])([0-9]+(ms|[kKmMshdwy])?[[:space:]]*?)+($|;)" +color red "(^|[[:space:]{;])(accept_mutex(_delay)?|access_log|add_(header|(after|before)_body))([[:space:]]|$)" +color red "(^|[[:space:]{;])(addition_types|aio(_write)?|alias|allow|ancient_browser(_value)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])auth_(basic|http_(header|pass_client_cert|timeout)|request(_set)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])(autoindex_(exact_size|format|localtime)|break|charset|charset_(map|types))([[:space:]]|$)" +color red "(^|[[:space:]{;])(autoindex|chunked_transfer_encoding)([[:space:]]|$)" +color red "(^|[[:space:]{;])client_(body_(buffer_size|in_(file_only|single_buffer)|temp_path|timeout))([[:space:]]|$)" +color red "(^|[[:space:]{;])client_(header_(buffer_size|timeout)|max_body_size)([[:space:]]|$)" +color red "(^|[[:space:]{;])(connection_pool_size|create_full_put_path|daemon|dav_(access|methods))([[:space:]]|$)" +color red "(^|[[:space:]{;])(debug_(connection|points)|default_type|deny|directio(_alignment)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])(disable_symlinks|empty_gif|env|error_(log|page)|etag|expires)([[:space:]]|$)" +color red "(^|[[:space:]{;])f4f(_buffer_size)?([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(bind|buffer(_size|ing|s)|busy_buffers_size|cache)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_cache_(bypass|key|lock|lock_(age|timeout)|methods|min_uses|path)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_cache_(purge|revalidate|use_stale|valid)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(catch_stderr|(connect|read|send)_timeout|force_ranges|hide_header)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(ignore_(client_abort|headers)|index|intercept_errors|keep_conn)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(limit_rate|max_temp_file_size|next_upstream)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(next_upstream_(timeout|tries)|no_cache|param|pass)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(pass_(header|request_(body|headers))|request_buffering|send_lowat)([[:space:]]|$)" +color red "(^|[[:space:]{;])fastcgi_(store|store_access|temp_(file_write_size|path))([[:space:]]|$)" +color red "(^|[[:space:]{;])(flv|geo|geoip_(city|country|org|proxy|proxy_recursive))([[:space:]]|$)" +color red "(^|[[:space:]{;])(gunzip|gunzip_buffers|gzip)([[:space:]]|$)" +color red "(^|[[:space:]{;])gzip_(buffers|comp_level|disable|http_version)([[:space:]]|$)" +color red "(^|[[:space:]{;])gzip_(min_length|proxied|static|types|vary)([[:space:]]|$)" +color red "(^|[[:space:]{;])(hash|health_check|health_check_timeout|hls)([[:space:]]|$)" +color red "(^|[[:space:]{;])hls_(buffers|forward_args|fragment|mp4_(max)?buffer_size)([[:space:]]|$)" +color red "(^|[[:space:]{;])http2_(chunk_size|idle_timeout|max_(concurrent_streams|(field|header)_size))([[:space:]]|$)" +color red "(^|[[:space:]{;])http2_recv_(buffer_size|timeout)([[:space:]]|$)" +color red "(^|[[:space:]{;])(if|if_modified_since|ignore_invalid_headers|image_filter)([[:space:]]|$)" +color red "(^|[[:space:]{;])image_filter_(buffer|interlace|jpeg_quality|sharpen|transparency)([[:space:]]|$)" +color red "(^|[[:space:]{;])imap_(auth|capabilities|client_buffer)([[:space:]]|$)" +color red "(^|[[:space:]{;])(index|internal|ip_hash|keepalive)([[:space:]]|$)" +color red "(^|[[:space:]{;])keepalive_(disable|requests|timeout)([[:space:]]|$)" +color red "(^|[[:space:]{;])(large_client_header_buffers|least_(conn|time))([[:space:]]|$)" +color red "(^|[[:space:]{;])limit_(conn|conn_(log_level|status|zone)|except|rate|rate_after|req|zone)([[:space:]]|$)" +color red "(^|[[:space:]{;])limit_req_(log_level|status|zone)([[:space:]]|$)" +color red "(^|[[:space:]{;])(lingering_(close|time|timeout)|listen|location)([[:space:]]|$)" +color red "(^|[[:space:]{;])(log_(format|not_found|subrequest))([[:space:]]|$)" +color red "(^|[[:space:]{;])(map|map_hash_(bucket|max)_size|master_process|match|max_ranges)([[:space:]]|$)" +color red "(^|[[:space:]{;])memcached_(bind|buffer_size|(connect|read|send)_timeout|force_ranges)([[:space:]]|$)" +color red "(^|[[:space:]{;])memcached_(gzip_flag|next_(upstream|upstream_(timeout|tries))|pass)([[:space:]]|$)" +color red "(^|[[:space:]{;])(merge_slashes|min_delete_depth|modern_browser)([[:space:]]|$)" +color red "(^|[[:space:]{;])(modern_browser_value|mp4)([[:space:]]|$)" +color red "(^|[[:space:]{;])mp4_((max_)?buffer_size|limit_rate(_after)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])(msie_(padding|refresh)|multi_accept|ntlm|open_file_cache)([[:space:]]|$)" +color red "(^|[[:space:]{;])(open_file_cache_(errors|min_uses|valid)|open_log_file_cache)([[:space:]]|$)" +color red "(^|[[:space:]{;])(output_buffers|override_charset|pcre_jit|perl|perl_(modules|require|set))([[:space:]]|$)" +color red "(^|[[:space:]{;])(pop3_(auth|capabilities)|port_in_redirect)([[:space:]]|$)" +color red "(^|[[:space:]{;])(postpone_output|protocol|proxy)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(bind|buffer(_size|ing|s)?|busy_buffers_size|cache)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_cache_(bypass|convert_head|key|lock|lock_(age|timeout)|methods)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_cache_(min_uses|path|purge|revalidate|use_stale|valid)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(cookie_(domain|path)|download_rate|force_ranges)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(headers_hash_(bucket|max)_size|hide_header|http_version)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(ignore_(client_abort|headers)|intercept_errors|limit_rate)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(max_temp_file_size|next_upstream(_timeout|_tries)?|no_cache|pass)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_pass_(error_message|header|request_(body|headers))([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_((connect|read|send)_timeout|redirect|request_buffering|responses)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(send_lowat|set_(body|header)|ssl)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_ssl_(ciphers|crl|name|protocols)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_ssl_(server_name|session_reuse|verify(_depth)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])proxy_(store(_access)?|temp_(file_write_size|path)|timeout|upload_rate)([[:space:]]|$)" +color red "(^|[[:space:]{;])(queue|random_index|read_ahead|real_ip_(header|recursive))([[:space:]]|$)" +color red "(^|[[:space:]{;])(recursive_error_pages|referer_hash_(bucket|max)_size|request_pool_size)([[:space:]]|$)" +color red "(^|[[:space:]{;])(reset_timedout_connection|resolver(_timeout)?|return|rewrite(_log)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])scgi_(bind|buffer(_size|ing|s)|busy_buffers_size|cache)([[:space:]]|$)" +color red "(^|[[:space:]{;])(sc|uws)gi_cache_(bypass|key|lock|lock_(age|timeout)|methods)([[:space:]]|$)" +color red "(^|[[:space:]{;])(sc|uws)gi_cache_(min_uses|path|purge|revalidate|use_stale|valid)([[:space:]]|$)" +color red "(^|[[:space:]{;])scgi_((connect|read|send)_timeout|force_ranges|hide_header)([[:space:]]|$)" +color red "(^|[[:space:]{;])scgi_(ignore_(client_abort|headers)|intercept_errors|limit_rate)([[:space:]]|$)" +color red "(^|[[:space:]{;])scgi_(max_temp_file_size|next_upstream|next_upstream_(timeout|tries))([[:space:]]|$)" +color red "(^|[[:space:]{;])scgi_(no_cache|param|pass|pass_(header|request_(body|headers)))([[:space:]]|$)" +color red "(^|[[:space:]{;])scgi_(request_buffering|store(_access)?|temp_(file_write_size|path))([[:space:]]|$)" +color red "(^|[[:space:]{;])(satisfy|secure_link|secure_link_(md5|secret)|send_(lowat|timeout))([[:space:]]|$)" +color red "(^|[[:space:]{;])(sendfile(_max_chunk)?|server|server_(name|tokens))([[:space:]]|$)" +color red "(^|[[:space:]{;])server_name(_in_redirect|s_hash_(bucket|max)_size)([[:space:]]|$)" +color red "(^|[[:space:]{;])(session_log|session_log_(format|zone)|set|set_real_ip_from|slice)([[:space:]]|$)" +color red "(^|[[:space:]{;])(smtp_(auth|capabilities)|source_charset|spdy_(chunk_size|headers_comp))([[:space:]]|$)" +color red "(^|[[:space:]{;])(split_clients|ssi|ssl)([[:space:]]|$)" +color red "(^|[[:space:]{;])ssi_(last_modified|min_file_chunk|silent_errors|types|value_length)([[:space:]]|$)" +color red "(^|[[:space:]{;])ssl_(buffer_size|ciphers)([[:space:]]|$)" +color red "(^|[[:space:]{;])ssl_(crl|dhparam|ecdh_curve|engine|handshake_timeout)([[:space:]]|$)" +color red "(^|[[:space:]{;])ssl_(prefer_server_ciphers|protocols)([[:space:]]|$)" +color red "(^|[[:space:]{;])ssl_session_(cache|ticket_key|tickets|timeout)([[:space:]]|$)" +color red "(^|[[:space:]{;])ssl_(stapling(_verify)?|verify_(client|depth))([[:space:]]|$)" +color red "(^|[[:space:]{;])(starttls|state|(stub_)?status|status_(format|zone)|sticky(_cookie_insert)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])(sub_filter|sub_filter_(last_modified|once|types)|tcp_no(delay|push))([[:space:]]|$)" +color red "(^|[[:space:]{;])(thread_pool|timeout|timer_resolution|try_files|types)([[:space:]]|$)" +color red "(^|[[:space:]{;])(types_hash_(bucket|max)_size|underscores_in_headers)([[:space:]]|$)" +color red "(^|[[:space:]{;])(uninitialized_variable_warn|upstream|use(r|id)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])userid_(domain|expires|mark|name|p3p|service)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_(bind|buffer(_size|ing|s)|busy_buffers_size|cache)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_((connect|read|send)_timeout|force_ranges|hide_header)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_(ignore_(client_abort|headers)|intercept_errors|limit_rate)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_(max_temp_file_size|modifier[12]|next_upstream)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_(next_upstream_(timeout|tries)|no_cache|param|pass)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_(pass_(header|request_(body|headers))|request_buffering)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_ssl_(ciphers|crl|name|protocols)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_ssl_(server_name|session_reuse|verify(_depth)?)([[:space:]]|$)" +color red "(^|[[:space:]{;])uwsgi_(store(_access)?|temp_(file_write_size|path))([[:space:]]|$)" +color red "(^|[[:space:]{;])(valid_referers|variables_hash_(bucket|max)_size)([[:space:]]|$)" +color red "(^|[[:space:]{;])worker_(aio_requests|connections|cpu_affinity)([[:space:]]|$)" +color red "(^|[[:space:]{;])worker_(priority|processes|rlimit_(core|nofile))([[:space:]]|$)" +color red "(^|[[:space:]{;])(xclient|xml_entities|zone)([[:space:]]|$)" +color red "(^|[[:space:]{;])xslt_(last_modified|(string_)?param|stylesheet|types)([[:space:]]|$)" +color red "\<(events|http|location|mail|server|stream)[[:space:]]*\{" + +# Context-sensitive keywords +color red "(^|[[:space:]{;])deny[[:space:]]+all[[:space:]]*([;#]|$)" +color red "(^|[[:space:]{;])gzip_proxied([[:space:]]+(off|expired|no-cache|no-store|private|no_last_modified|no_etag|auth|any))+[[:space:]]*([;#]|$)" +color red "(^|[[:space:]{;])(worker_cpu_affinity|worker_processes)[[:space:]]+auto[[:space:]]*([;#]|$)" +# Make white spaces plain again +color white "[[:space:]]+" +# Special cases for directives that take RegExp/path/URL as a single parameter +color brightblue start="(^|[[:space:]{;])(auth_basic_user_file|include|load_module|lock_file)([[:space:]]|$)" end=";" +color brightblue start="(^|[[:space:]{;])(pid|root|userid_path|working_directory)([[:space:]]|$)" end=";" +color brightblue start="(^|[[:space:]{;])(proxy|uwsgi)_ssl_(certificate(_key)?|trusted_certificate)([[:space:]]|$)" end=";" +color brightblue start="(^|[[:space:]{;])((proxy_|uwsgi_)?ssl_password|ssl_stapling)_file([[:space:]]|$)" end=";" +color brightblue start="(^|[[:space:]{;])ssl_((client_|trusted_)?certificate|certificate_key)([[:space:]]|$)" end=";" +color brightblue start="(^|[[:space:]{;])(auth_http|ssl_stapling_responder)([[:space:]]|$)" end=";" +color yellow start="(^|[[:space:]{;])fastcgi_split_path_info([[:space:]]|$)" end="(^|[^\]);" +color red "(^|[[:space:]{;])(auth_(basic_user_file|http)|fastcgi_split_path_info)([[:space:]]+|$)" +color red "(^|[[:space:]{;])(load_module|lock_file|pid|root|userid_path|working_directory)([[:space:]]+|$)" +color red "(^|[[:space:]{;])(proxy|uwsgi)_ssl_(certificate(_key)?|trusted_certificate)([[:space:]]+|$)" +color red "(^|[[:space:]{;])(proxy_|uwsgi_)?ssl_password_file|ssl_stapling_(file|responder)([[:space:]]+|$)" +color red "(^|[[:space:]{;])ssl_((client_|trusted_)?certificate|certificate_key|stapling_(file|responder))([[:space:]]+|$)" +# The 'include' directive should be highlighted as a macro because it includes other files +color red "(^|[[:space:]{;])include([[:space:]]+|$)" +color white "^[[:space:]]+" + +color yellow "[{};]+" +color yellow "~[[:space:]]+(\\.|[^ ])+" +color yellow "\\." +color brightwhite "\<(on|off)\>" +color yellow "~[[:space:]]+" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color green start="'$" end="';$" +color blue "\$[A-Za-z][A-Za-z0-9_]*" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/nmap.nanorc b/common/nano/syntax/nmap.nanorc index c573f42..0acec03 100644 --- a/common/nano/syntax/nmap.nanorc +++ b/common/nano/syntax/nmap.nanorc @@ -15,4 +15,22 @@ color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?( color magenta "^PORT *STATE *SERVICE" -color brightblue "^#.*" \ No newline at end of file +color brightblue "^#.*" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/patch.nanorc b/common/nano/syntax/patch.nanorc index bd282b7..ce98940 100644 --- a/common/nano/syntax/patch.nanorc +++ b/common/nano/syntax/patch.nanorc @@ -1,14 +1,29 @@ -## Here is an example for patch files. -## -syntax "Patch" "\.(patch|diff)$" -magic "diff output" -# You can't add comments in patch files. -comment "" +syntax "patch" "\.(patch|diff)$" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" color brightgreen "^\+.*" color green "^\+\+\+.*" -color brightblue "^ .*" color brightred "^-.*" color red "^---.*" -color brightyellow "^@@.*" +color blue "^@@.*" color magenta "^diff.*" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/php.nanorc b/common/nano/syntax/php.nanorc new file mode 100644 index 0000000..83954ee --- /dev/null +++ b/common/nano/syntax/php.nanorc @@ -0,0 +1,42 @@ +syntax "php" "\.php[2345s~]?$" +header "^(//|/\*).*[Pp][Hh][Pp]|<\?php\>" + +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color yellow "[-+/*=<>?:!~%&|]" +color red "(<\?(php)?|\?>)" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color blue "\<(float|global|double|bool|char|int|enum|const)\>" +color red "\<(class|new|private|public|function|for|foreach|if|while|do|var)\>" +color red "\<(return|else|elseif|case|default|switch)\>" +color red "\<(goto|break|continue)\>" +color brightwhite "\<(true|false)\>" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color blue "\$[A-Za-z_][A-Za-z0-9_]*" +color brightblack "(^|[[:space:]])//.*" +color brightblack start="/\*" end="\*/" +comment "//" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/pkg-config.nanorc b/common/nano/syntax/pkg-config.nanorc index 4c83ce8..6ba5e09 100644 --- a/common/nano/syntax/pkg-config.nanorc +++ b/common/nano/syntax/pkg-config.nanorc @@ -1,8 +1,29 @@ -syntax "PC" "\.pc$" +syntax "pkg-config" "\.pc$" -color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):" -color cyan "^(Requires|Libs)(\.private)?:" -color red "=" -color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color red "^(Name|Description|URL|Version|Conflicts|Cflags):" +color red "^(Requires|Libs)(\.private)?:" +color yellow "=" +color blue "\$\{[A-Za-z_][A-Za-z0-9_]*\}" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/pkgbuild.nanorc b/common/nano/syntax/pkgbuild.nanorc index 85d359c..30a2aa5 100644 --- a/common/nano/syntax/pkgbuild.nanorc +++ b/common/nano/syntax/pkgbuild.nanorc @@ -1,26 +1,43 @@ -## Arch PKGBUILD files -## -syntax "PKGBUILD" "^.*PKGBUILD$" -color green start="^." end="$" -color cyan "^.*(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" -color brightcyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>" -color brightcyan "(\$|\$\{|\$\()(pkgbase|epoch|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(\}|\))" -color cyan "^.*(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces).*=.*$" -color brightcyan "\<(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces)\>" -color brightcyan "(\$|\$\{|\$\()(depends|makedepends|checkdepends|optdepends|conflicts|provides|replaces)(\}|\))" -color cyan "^.*(groups|backup|noextract|options|validpgpkeys|changelog).*=.*$" -color brightcyan "\<(groups|backup|noextract|options|validpgpkeys|changelog)\>" -color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys|changelog)(\}|\))" -color cyan "^.*(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums).*=.*$" -color brightcyan "\<(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums)\>" -color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha224sums|sha256sums|sha384sums|sha512sums)(\}|\))" -color brightcyan "\<(startdir|srcdir|pkgdir)\>" -color cyan "\.install" -color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}" -color brightred "build\(\)" -color brightred "package_.*.*$" -color brightred "\<(configure|make|cmake|scons)\>" -color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>" +syntax "pkgbuild" "PKGBUILD$" "\.install$" -## Trailing whitespace -color ,green "[[:space:]]+$" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "^[A-Za-z0-9_+-]+[[:space:]]*\(\)" +color red "\<(case|do|done|elif|else|esac|fi|for|function|if)\>" +color red "\<(in|select|then|time|until|while)\>" +color cyan "\<(echo|exit|export|let|local|read|return|set|shift|umask|unset)\>" +color blue "\<(pkgname|pkgver|pkgrel|epoch|pkgdesc|arch|url|license)\>" +color blue "\<(groups|depends|makedepends|checkdepends|optdepends)\>" +color blue "\<(provides|conflicts|replaces|backup|options|^install)\>" +color blue "\<(changelog|source|noextract)\>" +color blue "\<(md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" +color blue "\<(srcdir|pkgdir)\>" +color red "\<(strip|docs|libtool|emptydirs|zipman|purge|upx)\>" +color red "\<(ccache|distcc|buildflags|makeflags)\>" +color yellow "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>" +color green ""(\\.|[^"])*"" +color blue "\$\{?[A-Za-z0-9_!@#$*?-]+\}?|`[^`]*`" +color green "'(\\.|[^'])*'" +color yellow "\\.?" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/powershell.nanorc b/common/nano/syntax/powershell.nanorc index e4e87e2..09f067b 100644 --- a/common/nano/syntax/powershell.nanorc +++ b/common/nano/syntax/powershell.nanorc @@ -37,4 +37,22 @@ icolor brightmagenta start="@\"" end="\"@" icolor brightmagenta start="@'" end="'@" ## Trailing whitespace -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/properties.nanorc b/common/nano/syntax/properties.nanorc index bb75d45..b52b925 100644 --- a/common/nano/syntax/properties.nanorc +++ b/common/nano/syntax/properties.nanorc @@ -1,6 +1,30 @@ syntax "properties" "\.properties$" -# property key -icolor green "^[^:=]+[:=]" -# comments -icolor blue "([[:space:]])*[#!].*$" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color red "^[[:space:]]*[^#!]([^:= ]|\\[:= ])*[:= ]" +color yellow "[:=]" +color yellow "\\([#!=: ]|$)" +color yellow "\\u[[:xdigit:]]{4}" +color brightblack "^[[:space:]]*[#!].*$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/puppet.nanorc b/common/nano/syntax/puppet.nanorc deleted file mode 100644 index 8511dc5..0000000 --- a/common/nano/syntax/puppet.nanorc +++ /dev/null @@ -1,38 +0,0 @@ -## Nano syntax highlighting for Puppet. -## -syntax "Puppet" "\.pp$" - -#This goes first, so the normal builtins will override in some classes -## Paramerers -color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)" -color brightgreen "\$[a-z:][a-z0-9_:]+" - -## List of built in types, also catches defines -color yellow "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|anchor)\>" -color yellow "\<(class|define|if|else|undef|inherits)\>" -color red "(=|-|~|>)" - -## Constants -color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" -## Ruby "symbols" -color magenta "([ ]|^):[0-9A-Z_]+\>" -## Regular expressions -color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" -## Shell command expansion is in `backticks` or like %x{this}. These are -## "double-quotish" (to use a perlism). -color brightblue "`[^`]*`" "%x\{[^}]*\}" -## Strings, double-quoted -color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" -## Expression substitution. These go inside double-quoted strings, -## "like ${this}". -color brightgreen "\$\{[^}]*\}" -## Strings, single-quoted -color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" -## Comments -color cyan "#[^{].*$" "#$" -color brightcyan "##[^{].*$" "##$" -## Some common markers -color brightcyan "(XXX|TODO|FIXME|\?\?\?)" -## Trailing spaces -color ,green "[[:space:]]+$" - diff --git a/common/nano/syntax/python.nanorc b/common/nano/syntax/python.nanorc index 014b26b..26a5a4d 100644 --- a/common/nano/syntax/python.nanorc +++ b/common/nano/syntax/python.nanorc @@ -1,56 +1,51 @@ -## Python syntax highlighting rules for Nano - -syntax "python" "\.py$" +syntax "python" "\.py$" "jhbuildrc$" header "^#!.*/(env +)?python[-0-9._]*( |$)" -magic "Python script" -comment "#" -linter pyflakes +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "def [ 0-9A-Z_]+" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color red "\<(as|assert|class|def|del|elif|else|except|exec|finally|for|from|global|if|import|lambda|map|pass|print|raise|try|while|with|yield|None)\>" +color red "\<(break|continue|return)\>" +color blue "\<(str|bytearray|bytes|list|tuple|set|frozenset|dict|int|float|complex|bool)\>" -## built-in objects -color cyan "\<(None|self|True|False)\>" -## built-in attributes -color cyan "\<(__builtin__|__dict__|__methods__|__members__|__class__|__bases__|__import__|__name__|__doc__|__self__|__debug__)\>" -## built-in functions -color cyan "\<(abs|append|apply|buffer|callable|chr|clear|close|closed|cmp|coerce|compile|complex|conjugate|copy|count|delattr|dir|divmod|eval|execfile|exec|extend|fileno|filter|float|flush|get|getattr|globals|has_key|hasattr|hash|hex|id|index|input|insert|int|intern|isatty|isinstance|issubclass|items|keys|len|list|locals|long|map|max|min|mode|name|oct|open|ord|pop|pow|print|range|raw_input|read|readline|readlines|reduce|reload|remove|repr|reverse|round|seek|setattr|slice|softspace|sort|str|tell|truncate|tuple|type|unichr|unicode|update|values|vars|write|writelines|xrange|zip|bool)\>" -## built-in functions that were previously keywords -color brightblue "\<(print|exec)\>([[:space:]]|$)" -## special method names -color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|__concat__|__contains__|__del__|__delattr__|__delitem__|__delslice__|__div__|__divmod__|__float__|__getattr__|__getitem__|__getslice__|__hash__|__hex__|__init__|__int__|__inv__|__invert__|__len__|__long__|__lshift__|__mod__|__mul__|__neg__|__nonzero__|__oct__|__or__|__pos__|__pow__|__radd__|__rand__|__rcmp__|__rdiv__|__rdivmod__|__repeat__|__repr__|__rlshift__|__rmod__|__rmul__|__ror__|__rpow__|__rrshift__|__rshift__|__rsub__|__rxor__|__setattr__|__setitem__|__setslice__|__str__|__sub__|__xor__|__bool__)\>" -## exception classes -color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>" -## types -color brightcyan "\<(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\>" -## definitions -color brightcyan "def [a-zA-Z_0-9]+" -## keywords -color brightblue "\<(and|as|assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|raise|return|try|with|while|yield)\>" +color brightwhite "[0-9]" -## decorators -color brightgreen "@.*[(]" +color yellow "[-+*/%|&=~!<>^.:;,]|\<(and|not|or|is|in)\>" +color red "@[A-Za-z0-9_]+" +color red "__[A-Za-z0-9_]+__" +color brightwhite "\<(True|False)\>" -## operators -color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" +color white "[(){}]" "\[" "\]" -## parentheses -color magenta "[(){}]" "\[" "\]" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color green "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" +color green "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" +color green start=""""[^"]" end=""""" +color green start="'''[^']" end="'''" +color yellow "\\.?" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -## numbers -icolor brightyellow "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b" - - -## strings -color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" -color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" - -## comments -color green "^#.*|[[:space:]]#.*$" - -## block comments -color yellow start=""""[^"]" end=""""" start="'''[^']" end="'''" - -## trailing spaces -color ,green "[[:space:]]+$" - -## reminders -color brightwhite,yellow "(FIXME|TODO|XXX)" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/rainbowindent.txt b/common/nano/syntax/rainbowindent.txt new file mode 100644 index 0000000..b043797 --- /dev/null +++ b/common/nano/syntax/rainbowindent.txt @@ -0,0 +1,17 @@ +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" \ No newline at end of file diff --git a/common/nano/syntax/readme.md b/common/nano/syntax/readme.md deleted file mode 100644 index 565baa9..0000000 --- a/common/nano/syntax/readme.md +++ /dev/null @@ -1,116 +0,0 @@ -# Improved Nano Syntax Highlighting Files - -This repository holds ``{lang}.nanorc`` files that have improved definitions of syntax highlighting for various languages. - -This repository is forked from [github.com/scopatz/nanorc](https://github.com/scopatz/nanorc) after almost 2 years of no activity from the maintainer. - -## Installation - -There are three ways to install this repo. - -### 1. Automatic installer - -Copy the following code to download and run the installer script: - -```sh -curl https://raw.githubusercontent.com/galenguyer/nano-syntax-highlighting/master/install.sh | sh -``` - -If your machine doesn't have `curl` command, use this code: - -```sh -wget https://raw.githubusercontent.com/galenguyer/nano-syntax-highlighting/master/install.sh -O- | sh -``` - -This automatically unpacks all the `.nanorc` files to `~/.nano`. - -#### Note - -Some syntax definitions which exist in Nano upstream may be preferable to the ones provided by this package. -The ` install.sh` script may be run with `-l` or `--lite` to insert the included syntax definitions from this package with *lower* precedence than the ones provided by the standard package. - -### 2. Package managers - -As this is a fork, it is not (yet) available in any official repositories. - - - -### 3. Clone repo (copy the files) - -The files should be placed inside of the `~/.nano/` directory. - -You can put the files in another directory inside the correct `.nano` folder. -For example: `~/.nano/nanorc/`. -For readability will use `$install_path` for the path of your choose (in *system wide* the path is always `/usr/share/nano-syntax-highlighting/`). - -For user, only run: - -`git clone git@github.com:galenguyer/nano-syntax-highlighting.git $install_path` or -`git clone https://github.com/galenguyer/nano-syntax-highlighting.git $install_path` - -For system wide, run: - -`sudo git clone https://github.com/galenguyer/nano-syntax-highlighting.git $install_path` - -## Configuration - -After installation, you need to inform `nano` to used the new highlight files. -The configuration file is located at `~/.nanorc`, for users, and at `/etc/nanorc`, for system wide. -If this file doesn't exist, create a new one. - -Again there are three ways: - -### 1. Include all - -Append the content of the folder in one line, with wildcard: - -`echo "include $install_path/*.nanorc" >> ~/.nanorc` or -`echo "include $install_path/*.nanorc" >> /etc/nanorc` - -### 2. Include/append our `nanorc` file - -Simply run: - -`cat $install_path/nanorc >> ~/.nanorc` or -`cat $install_path/nanorc >> /etc/nanorc` - -### 3. One by one - -Add your preferable languages one by one into the file. For example: - -``` -## C/C++ -include "~/.nano/c.nanorc" -``` - -## Tricks & Tweaks - -### MacOS - -`\<` and `\>` are regular character escapes on MacOS. -The bug is fixed in Nano, but this might be a problem if you are using an older version -If this is the case, replace them respectively with `[[:<:]]` and `[[:>:]]`. -This is reported in [Issue 52](https://github.com/scopatz/nanorc/issues/52). - -### Why not include the original files? - -Good question! It's due to the way that nano reads the files, the regex instructions should be in a _specific order_ which is evident in some nanorc files. -And if we use the `include` or `extendsyntax` commands, the colors or other things may not work as expected. -The best way to make changes is by copying and editing the original files. -Please see this [issue](https://savannah.gnu.org/bugs/index.php?5698). -But if some original nanorc file needs an update, feel free to [patch it](https://savannah.gnu.org/patch/?func=additem&group=nano)! - -### My shortcut is not working! - -Please see this [issue](https://savannah.gnu.org/bugs/?56994). - -## Acknowledgements - -Some of these files are derived from the original [Nano](https://www.nano-editor.org) editor [repo](https://git.savannah.gnu.org/cgit/nano.git) diff --git a/common/nano/syntax/rust.nanorc b/common/nano/syntax/rust.nanorc index 88a0be8..49361c8 100644 --- a/common/nano/syntax/rust.nanorc +++ b/common/nano/syntax/rust.nanorc @@ -39,4 +39,22 @@ color magenta start="#!\[" end="\]" color brightcyan "(XXX|TODO|FIXME|\?\?\?)" ## Trailing spaces -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/sed.nanorc b/common/nano/syntax/sed.nanorc index 286c8ca..12ae247 100644 --- a/common/nano/syntax/sed.nanorc +++ b/common/nano/syntax/sed.nanorc @@ -1,9 +1,30 @@ -syntax "SED" "\.sed$" +syntax "sed" "\.sed$" header "^#!.*bin/(env +)?sed( |$)" -color red "[|^$.*+]" -color brightyellow "\{[0-9]+,?[0-9]*\}" -color magenta "\\." +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color yellow "[|^$.*+]" +color blue "\{[0-9]+,?[0-9]*\}" +color yellow "\\." color brightblack "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/sh.nanorc b/common/nano/syntax/sh.nanorc index c418262..ce8ea16 100644 --- a/common/nano/syntax/sh.nanorc +++ b/common/nano/syntax/sh.nanorc @@ -1,23 +1,57 @@ -## Here is an example for Bourne shell scripts. -## -syntax "SH" "\.sh$" "\.ash" "\.bashrc" "bashrc" "\.bash_aliases" "bash_aliases" "\.bash_functions" "bash_functions" "\.bash_login" "\.bash_logout" "\.bash_profile" "bash_profile" "\.profile" "revise\..+$" -header "^#!.*/(env +)?(ba|da|a)?sh( |$)" -magic "(POSIX|Bourne-Again) shell script.*text" -comment "#" +syntax "sh" "\.sh$" "\.bash$" "bashrc$" "bash_profile$" "\.bashrc_all$" +header "^#!.*/(env +)?(ba|k|pdk)?sh[-0-9_]*( |$)" -linter dash -n +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "^[A-Za-z0-9_+-]+[[:space:]]*\(\)" +color cyan "^function [0-9A-Za-z_+-]+[[:space:]]*\(\)" +color red "\<(case|do|done|elif|else|esac|fi|for|function|if)\>" +color red "\<(in|select|then|time|until|while)\>" +color cyan "\<(echo|exit|export|let|local|read|return|set|shift|source|umask|unset)\>" +color cyan "\<(alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|enable|eval|exec|fc|fg|getopts|hash|help|history|jobs|kill|logout|popd|printf|pushd|pwd|shopt|suspend|test|times|trap|type|ulimit|unalias|wait)\>" -## keywords: -color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>" -color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" -color green "-[Ldefgruwx]\>" -color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" -## builtins: -color brightblue "\<(alias|bg|bind|break|builtin|caller|cd|command|compgen|complete|compopt|continue|declare|dirs|disown|echo|enable|eval|exec|exit|export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|local|logout|mapfile|popd|printf|pushd|pwd|read|readarray|readonly|return|set|shift|shopt|source|suspend|test|times|trap|true|type|typeset|ulimit|umask|unalias|unset|wait)\>" -## not buitins: -## cat|chmod|chown|cp|env|grep|install|ln|make|mkdir|mv|rm|sed|tar|touch -icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" -icolor brightred "\$\{?[0-9A-Z_!@#%$*?-]+\}?" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" -color cyan "(^|[[:space:]])#.*$" -color ,green "[[:space:]]+$" +# Unkeywordify commandline arguments +color white "(^|[[:space:]])--?(alias|bg|bind|break|builtin|case|cd|command|compgen|complete|continue)\>" +color white "(^|[[:space:]])--?(dirs|disown|do|done|echo|elif|else|enable|esac|eval|exec|exit|export)\>" +color white "(^|[[:space:]])--?(fc|fg|fi|for|function|getopts|hash|help|history|if|in|jobs|kill|let|local|logout)\>" +color white "(^|[[:space:]])--?(popd|printf|pushd|pwd|read|return|select|set|shift|shopt|source|suspend)\>" +color white "(^|[[:space:]])--?(test|then|time|times|trap|type|ulimit|umask|unalias|unset|until|wait|while)\>" +# Unkeywordify occurrences in paths +color white "/local\>" +color white "(^|[[:space:]])local/" +# Make white spaces plain again +color white "[[:space:]]+" + + +color yellow "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>" + +color green ""(\\"|[^"])*"" +color blue "\$[A-Za-z0-9_!@#$*?-]+" +color blue "\$\{(\\.|[^}])+\}" +color blue "`[^`]*`" +color yellow "\\.?" +color green "'[^']*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color brightwhite,cyan "\:?" +color brightwhite,cyan "\:?" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/sql.nanorc b/common/nano/syntax/sql.nanorc index 1ebd574..6892fa4 100644 --- a/common/nano/syntax/sql.nanorc +++ b/common/nano/syntax/sql.nanorc @@ -30,5 +30,23 @@ color blue "\<([0-9]+)\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow "`(\\.|[^\\`])*`" color brightblack "\-\-.*$" -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" color ,red " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/systemd.nanorc b/common/nano/syntax/systemd.nanorc index 0a2787a..20c140a 100644 --- a/common/nano/syntax/systemd.nanorc +++ b/common/nano/syntax/systemd.nanorc @@ -1,12 +1,33 @@ -syntax "Systemd" "\.(service|socket|timer)$" +syntax "systemd" "\.(service|socket|mount|slice|target|timer|path)$" header "^\[Unit\]$" -color cyan "^(Accept|After|Alias|AllowIsolate|Also|AmbientCapabilities|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateDevices|PrivateNetwork|PrivateTmp|PropagatesReloadTo|ProtectControlGroups|ProtectHome|ProtectKernelModules|ProtectKernelTunables|ProtectSystem|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RestrictAddressFamilies|RestrictNamespaces|RestrictRealtime|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallArchitectures|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" -color green "^\.include\>" -color red "=" -color brightmagenta "^\[(Unit|Install|Service|Socket)\]" -color brightyellow "\$MAINPID" -color brightcyan "\<(true|false)\>" -color brightblue "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color red "^(Accept|After|Alias|AllowIsolate|Also|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateNetwork|PrivateTmp|PropagatesReloadTo|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" +color cyan "^\.include\>" +color yellow "=" +color red "^\[(Unit|Install|Service|Socket|Mount|Timer|Path)\]" +color blue "\$MAINPID" +color brightwhite "\<(true|false)\>" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/toml.nanorc b/common/nano/syntax/toml.nanorc index 3bafa74..f3efa75 100644 --- a/common/nano/syntax/toml.nanorc +++ b/common/nano/syntax/toml.nanorc @@ -28,7 +28,25 @@ color brightblue "#.*" color ,red "^[[:space:]]*=.*" # Trailing whitespace -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" # MIT License diff --git a/common/nano/syntax/ts.nanorc b/common/nano/syntax/ts.nanorc index b504c1e..2bd0a64 100644 --- a/common/nano/syntax/ts.nanorc +++ b/common/nano/syntax/ts.nanorc @@ -44,4 +44,22 @@ color magenta start="/\*" end="\*/" color magenta "^\s*//.*$" ## Trailing whitespace -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/vi.nanorc b/common/nano/syntax/vi.nanorc index a2e2888..85a5cd2 100644 --- a/common/nano/syntax/vi.nanorc +++ b/common/nano/syntax/vi.nanorc @@ -1,10 +1,32 @@ -syntax "VI" "(^|/|\.)(ex|vim)rc$|\.vim" +syntax "vi" "(^|/|\.)(ex|vim)rc$|\.vim" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" -color cyan "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>" -color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>" -color red "[!&=]" -color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color cyan "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" +color white "[(]" +color red "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>" +color red "\<(snor|nun|nm|set|if|endif|let|unlet)\>" +color yellow "[!&=]" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" color brightblack "(^|[[:space:]])\"[^"]*$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/x11basic.nanorc b/common/nano/syntax/x11basic.nanorc deleted file mode 100644 index 2a8d236..0000000 --- a/common/nano/syntax/x11basic.nanorc +++ /dev/null @@ -1,172 +0,0 @@ -## Sytax highlighting for nano and pico for X11-Basic. (c) Markus Hoffmann 2019 - -# This file is part of X11-Basic, the basic interpreter for Unix/X -# ====================================================================== -# X11-Basic is free software and comes with NO WARRANTY - read the file -# COPYING for details - -syntax "x11basic" "\.(bas|xbas|LST|BAS)$" - -# Variable names - -icolor brightwhite "\<[A-Z_][A-Za-z0-9_]*(|\$|\%|\&|\||\(\))\>" - -# system vars -icolor cyan "\<(CCSAPLID|CCSERR|COLS|CRSCOL|CRSLIN|CTIMER|ERR|FALSE)\>" -icolor cyan "\<(GPS_ALT|GPS_LAT|GPS_LON|MOUSEK|MOUSES|MOUSEX|MOUSEY)\>" -icolor cyan "\<(PC|PI|ROWS|SP|STIMER|TIMER|TRUE)\>" - -# system string vars -icolor cyan "\<(DATE|FILEEVENT|INKEY|TERMINALNAME|TIME|TRACE)\$" - -#special system vars -icolor cyan "\<(ANDROID|GPIO|GPS|SENSOR|WIN32|UNIX)\?" - - -# system array vars - -# regular functions - -icolor green "\<(ABS|ACOS|ACOSH|ADD|AND|ARG|ARRPTR|ASC|ASIN|ASINH|ATAN|ATANH|ATN)\(" -icolor green "\<(BCHG|BCLR|BSET|BTST|BYTE)\(" -icolor green "\<(CALL|CALLD|CARD|CBRT|CEIL|COLOR_RGB|COMBIN|CONJ|COS|COSH|CRC|CVD|CVF|CVI|CVL|CVS)\(" -icolor green "\<(DEG|DET|DEVICE|DIV|DPEEK)\(" -icolor green "\<(EOF|EVAL|EVEN|EXEC|EXIST|EXP|EXPM1)\(" -icolor green "\<(FACT|FIX|FLOOR|FORK|FORM_ALERT|FORM_CENTER|FORM_DIAL|FORM_DO|FRAC|FREEFILE)\(" -icolor green "\<(GAMMA|GASDEV|GCD|GET_COLOR|GLOB|GPIO|GRAY)\(" -icolor green "\<(HYPOT)\(" -icolor green "\<(IMAG|INODE|INP|INSTR|INT|INVERT|IOCTL)\(" -icolor green "\<(JULIAN)\(" -icolor green "\<(LCM|LEN|LGAMMA|LISTSELECT|LN|LOC|LOF|LOG|LOG10|LOG1P|LOGB|LPEEK|LTEXTLEN)\(" -icolor green "\<(MALLOC|MAX|MIN|MOD|MODE|MSHRINK|MUL)\(" -icolor green "\<(NEXTPRIME|NLINK|NOT)\(" -icolor green "\<(OBJC_DRAW|OBJC_FIND|OBJC_OFFSET|ODD|OR)\(" -icolor green "\<(PEEK|POINT|POWM|PRED|PTST)\(" -icolor green "\<(RAD|RAND|RANDOM|REAL|REALLOC|RINSTR|RND|ROL|ROOT|ROR|ROUND|RSRC_GADDR)\(" -icolor green "\<(SENSOR|SGN|SHL|SHM_ATTACH|SHM_MALLOC|SHR|SIN|SINH|SIZE|SQR|SQRT|SRAND|SUB|SUCC|SWAP|SYM_ADR)\(" -icolor green "\<(TALLY|TAN|TANH|TRUNC)\(" -icolor green "\<(UBOUND)\(" -icolor green "\<(VAL|VARIAT|VARPTR|VRFY)\(" -icolor green "\<(WORD|WORT_SEP)\(" -icolor green "\<(XOR)\(" - -# question functions -icolor green "\<(DIM|EVENT|INP|TYP|VAL)\?\(" - -# special functions - -icolor green "\<(INP)\%\(" -icolor green "\<(INP)\&\(" - - - -# string functions -icolor green "\<(ARID|ARIE)\$\(" -icolor green "\<(BIN|BWTD|BWTE)\$\(" -icolor green "\<(CALL|CHR|COMPRESS)\$\(" -icolor green "\<(DECLOSE|DECRYPT|DIR)\$\(" -icolor green "\<(ENCLOSE|ENCRYPT|ENV|ERR)\$\(" -icolor green "\<(FSFIRST|FSNEXT)\$\(" -icolor green "\<(HASH|HEX)\$\(" -icolor green "\<(INLINE|INPUT)\$\(" -icolor green "\<(JULDATE)\$\(" -icolor green "\<(LEFT|LEFTOF|LINEINPUT|LOWER)\$\(" -icolor green "\<(MID|MKA|MKD|MKF|MKI|MKL|MKS|MTFD|MTFE)\$\(" -icolor green "\<(OCT)\$\(" -icolor green "\<(PARAM|PNGDECODE|PNGENCODE|PRG)\$\(" -icolor green "\<(REPLACE|REVERSE|RADIX|RIGHT|RIGHTOF|RLD|RLE)\$\(" -icolor green "\<(SIGN|SPACE|STR|STRING|SYSTEM)\$\(" -icolor green "\<(TERMINALNAME|TRIM)\$\(" -icolor green "\<(UCASE|UNCOMPRESS|UNIXDATE|UNIXTIME|UPPER|USING)\$\(" -icolor green "\<(WORD)\$\(" -icolor green "\<(XTRIM)\$\(" - -# array functions - -icolor green "\<(0|1|CONVOLUT|CVA|FFT|INV|SMUL|SOLVE|TRANS)\(" - - - -# special commands - -icolor brightmagenta "(^|^[[:space:]]*)(DIM|LOCAL|LET)\>" -icolor cyan "(^|^[[:space:]]*)DATA.*$" - -icolor red "(^|^[[:space:]]*)ENDFUNCTION\>" -icolor red "(^|^[[:space:]]*)(RETURN|BREAK|CONTINUE|EXIT\ IF)\>" -icolor red "(^|^[[:space:]]*)(FUNCTION|PROCEDURE|DEFFN)\>" - -icolor blue "(^|^[[:space:]]*)(endselect|select|default|endif|else\ if|else|case|do|loop|next|for|if|while|wend|repeat|until|goto|gosub|spawn|void)\>" -icolor brightred "(^|^[[:space:]]*)(END|QUIT|STOP|TRON|TROFF|ECHO|EDIT|NEW|RUN)\>" - - -# regular commands - -icolor brightgreen "(^|^[[:space:]]*)(ABSOLUTE|ADD|AFTER|ALERT|ARRAYCOPY|ARRAYFILL)\>" -icolor brightgreen "(^|^[[:space:]]*)(BEEP|BELL|BGET|BLOAD|BMOVE|BOTTOMW|BOUNDARY|BOX|BPUT|BSAVE)\>" -icolor brightgreen "(^|^[[:space:]]*)(CALL|CHAIN|CHDIR|CHMOD|CIRCLE|CLEAR|CLEARW|CLIP|CLOSE|CLOSEW|CLR|CLS|COLOR|CONNECT|COPYAREA|CURVE)\>" -icolor brightgreen "(^|^[[:space:]]*)(DEC|DEFFILL|DEFLINE|DEFMARK|DEFMOUSE|DEFTEXT|DELAY|DIV|DPOKE|DRAW|DUMP)\>" -icolor brightgreen "(^|^[[:space:]]*)(ELLIPSE|ERASE|ERROR|EVAL|EVENT|EVERY|EXEC)\>" -icolor brightgreen "(^|^[[:space:]]*)(FFT|FILESELECT|FILL|FIT|FIT_LINEAR|FIT_POLY|FLUSH|FREE|FULLW)\>" -icolor brightgreen "(^|^[[:space:]]*)(GET|GET_GEOMETRY|GET_LOCATION|GET_SCREENSIZE|GPIO|GPRINT|GPS|GRAPHMODE)\>" -icolor brightgreen "(^|^[[:space:]]*)(HELP|HIDEK|HIDEM|HOME)\>" -icolor brightgreen "(^|^[[:space:]]*)(INC|INFOW|INPUT)\>" -icolor brightgreen "(^|^[[:space:]]*)(KEYEVENT|KILL)\>" -icolor brightgreen "(^|^[[:space:]]*)(LINE|LINEINPUT|LINK|LIST|LOAD|LOCATE|LPOKE|LTEXT)\>" -icolor brightgreen "(^|^[[:space:]]*)(MEMDUMP|MENU|MENUDEF|MENUKILL|MENUSET|MERGE|MFREE|MKDIR|MOUSE|MOUSEEVENT|MOTIONEVENT|MOVEW|MSYNC|MUL)\>" -icolor brightgreen "(^|^[[:space:]]*)(NOOP|NOP|NOROOTWINDOW)\>" -icolor brightgreen "(^|^[[:space:]]*)(OBJC_ADD|OBJC_DELETE|ON|OPEN|OPENW|OUT)\>" -icolor brightgreen "(^|^[[:space:]]*)(PAUSE|PBOX|PCIRCLE|PELLIPSE|PIPE|PLAYSOUND|PLAYSOUNDFILE|PLIST|PLOT|POKE|POLYFILL|POLYLINE|POLYMARK|PRBOX|PRINT|PUT|PUTBACK|PUT_BITMAP)\>" -icolor brightgreen "(^|^[[:space:]]*)(RANDOMIZE|RBOX|READ|RECEIVE|RELSEEK|RENAME|RESTORE|RMDIR|ROOTWINDOW|RSRC_FREE|RSRC_LOAD)\>" -icolor brightgreen "(^|^[[:space:]]*)(SAVE|SAVESCREEN|SAVEWINDOW|SCOPE|SCREEN|SEEK|SEND|SENSOR|SETFONT|SETMOUSE|SGET|SHELL|SHM_DETACH|SHM_FREE|SHOWK|SHOWM|SHOEPAGE|SIZEW|SORT|SOUND|SPEAK|SPLIT|SPUT|SUB|SWAP|SYSTEM)\>" -icolor brightgreen "(^|^[[:space:]]*)(TEXT|TITLEW|TOPW|TOUCH)\>" -icolor brightgreen "(^|^[[:space:]]*)(UNLINK|UNMAP|USEWINDOW)\>" -icolor brightgreen "(^|^[[:space:]]*)(VERSION|VSYNC)\>" -icolor brightgreen "(^|^[[:space:]]*)(WATCH|WAVE|WORT_SEP)\>" -icolor brightgreen "(^|^[[:space:]]*)(XLOAD|XRUN)\>" - -## commands with a blank in it - -icolor brightblue "(^|^[[:space:]]*)(ON\ ERROR\ CONT)" -icolor brightblue "(^|^[[:space:]]*)(ON\ BREAK\ CONT)" -icolor brightred "(^|^[[:space:]]*)(ECHO\ (ON|OFF))" - - -## keywords -icolor brightblue "\<(and|or|not|to|xor|not|then|step|var|tab|using)\>" - -## operators -color white "[+*=\^]" "<" ">" "/" "-" -color brightred "[@\~]" - - -## number constants -icolor brightyellow "\b(([1-9][0-9]+)|0+)\.[0-9]+j?\b" "\b([1-9][0-9]*[Lj]?)\b" "\b0o?[0-7]*L?\b" "\b0x[1-9a-f][0-9a-f]*L?\b" "\b0b[01]+\b" -icolor brightyellow "[\ ,\(]\#[1-9][0-9]*\b" - -## parentheses -color magenta "[(){}]" "\[" "\]" - -# labels -icolor red "(^|^[[:space:]]*)[^\ ^=.]*:" - -# Comments. -color yellow "(^|^[[:space:]]*)'.*$" -icolor yellow "(^|^[[:space:]]*)REM.*$" -color yellow "!.*$" - -icolor brightwhite,blue "(^|^[[:space:]]*)PROGRAM.*$" - -#shebang line -icolor brightwhite,green "^\#\!.*$" - - - -# Strings -color yellow "<[^= ]*>" ""(\\.|[^"])*"" - -## trailing spaces -color ,green "[[:space:]]+$" - -## reminders -color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/common/nano/syntax/xml.nanorc b/common/nano/syntax/xml.nanorc index 6d4e8f0..b8fb96d 100644 --- a/common/nano/syntax/xml.nanorc +++ b/common/nano/syntax/xml.nanorc @@ -1,25 +1,33 @@ -## Here is an example for xml files. -## +syntax "xml" "\.([jrs]html?|sgml?|xml|opml|xslt?|plist)$" +header "<\?xml" -syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$" -header "<\?xml.*version=.*\?>" -magic "(XML|SGML) (sub)?document" -comment "" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color red start="<" end=">" +color red " [a-z_-]+=" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightyellow "&" +color yellow "&(#[0-9]+|#x[0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);" +color brightblack start="" +color brightblack start="" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" -color white "^.+$" -# Attributes -color green start="<" end=">" -color brightgreen "=\"[^\"]*\"" -# Opening tags -color brightcyan "<[^/][^> ]*" -color brightcyan ">" -# Closing tags -color cyan " ]*>" -# Self-closing part -color cyan "/>" -color yellow start="" -color yellow start="" -color red "&[^;]*;" - -## Trailing spaces -color ,green "[[:space:]]+$" +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/xresources.nanorc b/common/nano/syntax/xresources.nanorc index 7773642..1f9daf6 100644 --- a/common/nano/syntax/xresources.nanorc +++ b/common/nano/syntax/xresources.nanorc @@ -1,10 +1,31 @@ -syntax "Xresources" "X(defaults|resources)$" +syntax "xresources" "X(defaults|resources)$" -color green "^[[:alnum:]]+\*" -color brightyellow "\*[[:alnum:]]+\:" -color blue "\<[0-9]+\>" -color red "[*:=]" -color brightcyan "\<(true|false)\>" +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color blue "^[[:alnum:]]+\*" +color blue "\*[[:alnum:]]+\:" +color brightwhite "\<[0-9]+\>" +color yellow "[*:=]" +color brightwhite "\<(true|false)\>" color brightblack "(^|[[:space:]])#([^{].*)?$" -color ,green "[[:space:]]+$" -color ,red " + +| + +" +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/yaml.nanorc b/common/nano/syntax/yaml.nanorc index bf2314b..cf622ba 100644 --- a/common/nano/syntax/yaml.nanorc +++ b/common/nano/syntax/yaml.nanorc @@ -1,24 +1,34 @@ syntax "yaml" "\.ya?ml$" -#comment "#" header "^---" "%YAML" -# Values -color green "(:|^|\s)+\S+" - -# Keys -color red "(^|\s+).*+\s*:(\s|$)" - -# Special values -color yellow "[:-]\s+(true|false|null)\s*$" -color yellow "[:-]\s+[0-9]+\.?[0-9]*(\s*($|#))" -color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " - -# Separator -color brightwhite "^\s*-" -color brightwhite ":(\s|$)" - -# Comments -color brightblue "(^|[[:space:]])#.*$" - -# Trailing whitespace +# Resets everything back to plain text coloring. +# Can be used at the start of each theme file. +color white "^.*$" +color blue "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " +color brightwhite "\<(YES|yes|Y|y|ON|on|NO|no|N|n|OFF|off)\>" +color brightwhite "\<(true|false)\>" +color yellow ":[[:space:]]" "\[" "\]" ":[[:space:]]+[|>]" "^[[:space:]]*- " +color blue "[[:space:]][\*&][A-Za-z0-9]+" +color green ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color red "^---" "^\.\.\." "^%YAML" "^%TAG" color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/zig.nanorc b/common/nano/syntax/zig.nanorc index 1baad37..5d94a17 100644 --- a/common/nano/syntax/zig.nanorc +++ b/common/nano/syntax/zig.nanorc @@ -7,3 +7,24 @@ color blue "\<([iu][0-9]{1,5}|f16|f32|f64|f128)\>" color magenta "\"[^\"]*\"" comment "//" tabgives " " + +color ,red "[[:space:]]+$" +color brightyellow " + +| + +" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/nano/syntax/zsh.nanorc b/common/nano/syntax/zsh.nanorc index 9578667..a4f077d 100644 --- a/common/nano/syntax/zsh.nanorc +++ b/common/nano/syntax/zsh.nanorc @@ -39,4 +39,22 @@ color cyan "(^|[[:space:]])#.*$" color brightcyan "(^|[[:space:]])##.*$" ## Trailing spaces -color ,green "[[:space:]]+$" +color ,red "[[:space:]]+$" + +# rainbow indent +color ,brightblack "^[[:space:]]{32}" +color ,black "^[[:space:]]{30}" +color ,brightblack "^[[:space:]]{28}" +color ,black "^[[:space:]]{26}" +color ,brightblack "^[[:space:]]{24}" +color ,black "^[[:space:]]{22}" +color ,brightblack "^[[:space:]]{20}" +color ,black "^[[:space:]]{18}" +color ,brightblack "^[[:space:]]{16}" +color ,black "^[[:space:]]{14}" +color ,brightblack "^[[:space:]]{12}" +color ,black "^[[:space:]]{10}" +color ,brightblack "^[[:space:]]{8}" +color ,black "^[[:space:]]{6}" +color ,brightblack "^[[:space:]]{4}" +color ,black "^[[:space:]]{2}" diff --git a/common/vscode/vscode.css b/common/vscode/vscode.css new file mode 100644 index 0000000..828ff71 --- /dev/null +++ b/common/vscode/vscode.css @@ -0,0 +1,110 @@ +.windows, +.monaco-editor .view-lines { + font-family: "Terminus (TTF) for Windows", "Sazanami Gothic", "UnifontBitmap", + "Terminus (TTF)", "Unifont" !important; +} + +.monaco-workbench, +.monaco-workbench .part > .content, +.monaco-pane-view .pane > .pane-header h3.title, +.monaco-workbench .part > .title > .title-label h2, +.monaco-workbench + .part.editor + > .content + .editor-group-container + > .title + .tabs-container + > .tab + .tab-label + a, +.monaco-workbench + .part.editor + > .content + .editor-group-container + > .title + .title-label + a, +.monaco-workbench .workbench-hover, +.monaco-icon-label + > .monaco-icon-label-container + > .monaco-icon-description-container + > .label-description, +.monaco-icon-label:after, +.monaco-count-badge, +.monaco-workbench + .activitybar + > .content + :not(.monaco-menu) + > .monaco-action-bar + .badge + .badge-content, +.settings-editor + > .settings-header + > .settings-header-controls + .settings-tabs-widget + > .monaco-action-bar + .action-item + .action-label, +.monaco-editor .view-lines, +.extension-editor + > .body + > .navbar + > .monaco-action-bar + > .actions-container + > .action-item + > .action-label, +.extension-editor + > .body + > .content + > .details + > .additional-details-container + .categories-container + > .categories + > .category, +.extension-editor + > .body + > .content + > .details + > .additional-details-container + .tags-container + > .tags + > .tag, +.extension-editor > .header, +.extension-editor code:not(:empty), +.monaco-action-bar .action-label, +.extension-list-item > .details > .footer > .author > .publisher-name, +.extension-list-item + > .details + > .header-container + > .header + > .install-count:not(:empty), +.extension-ratings.small, +.extension-list-item + > .details + > .header-container + > .header + > .activation-status:not(:empty) { + font-size: 12px !important; +} + +.settings-editor + > .settings-body + .settings-tree-container + .settings-group-title-label.settings-group-level-1, +.monaco-workbench + .activitybar + > .content + :not(.monaco-menu) + > .monaco-action-bar + .action-label.codicon { + font-size: 24px !important; +} + +.explorer-folders-view .editor-group, +.explorer-folders-view .explorer-item, +.open-editors .editor-group, +.open-editors .open-editor, +.open-editors .monaco-list .monaco-list-row { + height: 18px !important; + line-height: 18px !important; +} diff --git a/windows/home/AppData/Roaming/bug.n/Config.ini b/windows/home/AppData/Roaming/bug.n/Config.ini index 8b1d297..2ebf644 100644 --- a/windows/home/AppData/Roaming/bug.n/Config.ini +++ b/windows/home/AppData/Roaming/bug.n/Config.ini @@ -72,6 +72,7 @@ Config_fontColor_#3=a2baa8;dedbeb;dedbeb;dedbeb;dedbeb;dedbeb;dedbeb;dedbeb;dedb Config_barTransparency=off Config_barCommands= +Config_barTaskbarBlend=0 Config_readinBat=0 Config_readinCpu=0 Config_readinDate=0 @@ -102,7 +103,10 @@ Config_borderWidth=1 Config_borderPadding=-1 Config_showTaskBar=1 Config_showBorder=0 -Config_selBorderColor=ad8ee6 +; 0x00BBGGRR, 0 = disabled +Config_selBorderColor=0 +Config_classicThemeFixes=1 +Config_classicThemeTaskbar=1 ;; Window arrangement Config_viewNames=1;2;3;4;5;6;7;8;9 @@ -110,11 +114,11 @@ Config_layout_#1=[]=;tile Config_layout_#2=[M];monocle Config_layout_#3=><>; Config_layoutCount=3 -Config_layoutAxis_#1=1 +Config_layoutAxis_#1=-1 Config_layoutAxis_#2=2 Config_layoutAxis_#3=2 Config_layoutGapWidth=8 -Config_layoutMFactor=0.6 +Config_layoutMFactor=0.5 Config_areaTraceTimeout=0 Config_continuouslyTraceAreas=0 Config_dynamicTiling=1 @@ -205,6 +209,11 @@ Config_rule=Qt5QWindowIcon;Window Detective;;0;1;;0;0;0; Config_rule=MozillaDialogClass;Picture-in-Picture;;0;1;;0;0;0; Config_rule=Qt5QWindowIcon;IDA.*;;0;1;;0;0;0; Config_rule=ytWindow;f.lux.*;;0;1;;0;0;0; +Config_rule=IrfanView;;;0;1;;0;0;0; +Config_rule=HwndWrapper[EarTrumpet.exe.+;EarTrumpet;;0;1;;0;0;0; +Config_rule=ShockwaveFlash;;;0;1;;0;0;0; +Config_rule=ImlWinCls;Flashpoint Shockwave Projector;;0;1;;0;0;0; +Config_rule=OpenGL;Teardown;;0;1;;0;0;0; ;; Configuration management Config_autoSaveSession=auto @@ -262,8 +271,8 @@ Config_hotkey=#+Left:: Config_hotkey=#+Right:: ;; View/Tag management -;Config_hotkey=#+n::View_toggleMargins() -;Config_hotkey=#BackSpace::Monitor_activateView(-1) +Config_hotkey=#+n:: +Config_hotkey=#BackSpace:: ;; Monitor management Config_hotkey=#.::Manager_activateMonitor(0, +1)