nano syntaxes, vscode css, bug.n backlog

This commit is contained in:
Cynthia Foxwell 2023-04-02 22:13:24 -06:00
parent c220f6bf3f
commit 81b6091ef6
62 changed files with 2331 additions and 1147 deletions

View File

@ -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:]]+$"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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}"

View File

@ -1,17 +1,232 @@
syntax "colorTest" "ColorTest$"
syntax "colortest" "ColorTest$"
color black "\<PLAIN\>"
color white "\<PLAIN\>"
color cyan "\<FUNCTION\>"
color green "\<STRING\>"
color brightblack "\<COMMENT\>"
color blue "\<TYPE\>"
color brightwhite "\<BOOLEAN\>"
color brightwhite "\<NUMBER\>"
color blue "\<VARIABLE\>"
color yellow "\<OPERATOR\>"
color red "\<KEYWORD\>"
color red "\<MACRO\>"
color yellow "\<REGEXP\>"
color yellow "\<ESCAPE\>"
color white "\<DELIMITER\>"
color red "\<JUMP\>"
color brightyellow "\<WARNING\>"
color red "\<SECTION\>"
color white "\<TAG\>"
color red "\<ATTRIBUTE\>"
color brightred "\<CHARREF\>"
color brightblue "\<PATH\>"
color brightblue "\<URL\>"
color brightblue "\<EMAIL\>"
color ,red "\<WHITESPACE\>"
color red "\<red\>"
color green "\<green\>"
color yellow "\<yellow\>"
color blue "\<blue\>"
color white "\<iPLAIN\>"
color cyan "\<iFUNCTION\>"
color green "\<iSTRING\>"
color brightblack "\<iCOMMENT\>"
color blue "\<iTYPE\>"
color brightwhite "\<iBOOLEAN\>"
color brightwhite "\<iNUMBER\>"
color blue "\<iVARIABLE\>"
color yellow "\<iOPERATOR\>"
color red "\<iKEYWORD\>"
color red "\<iMACRO\>"
color yellow "\<iREGEXP\>"
color yellow "\<iESCAPE\>"
color white "\<iDELIMITER\>"
color red "\<iJUMP\>"
color brightyellow "\<iWARNING\>"
color red "\<iSECTION\>"
color white "\<iTAG\>"
color red "\<iATTRIBUTE\>"
color brightred "\<iCHARREF\>"
color brightblue "\<iPATH\>"
color brightblue "\<iURL\>"
color brightblue "\<iEMAIL\>"
color ,red "\<iWHITESPACE\>"
color black "\<black\>"
color red "\<red\>"
color green "\<green\>"
color yellow "\<yellow\>"
color blue "\<blue\>"
color magenta "\<magenta\>"
color cyan "\<cyan\>"
color cyan "\<cyan\>"
color white "\<white\>"
color brightred "\<brightred\>"
color brightgreen "\<brightgreen\>"
color brightyellow "\<brightyellow\>"
color brightblue "\<brightblue\>"
color brightblack "\<brightblack\>"
color brightred "\<brightred\>"
color brightgreen "\<brightgreen\>"
color brightyellow "\<brightyellow\>"
color brightblue "\<brightblue\>"
color brightmagenta "\<brightmagenta\>"
color brightcyan "\<brightcyan\>"
color brightcyan "\<brightcyan\>"
color brightwhite "\<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}"

View File

@ -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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
color ,red "[[:space:]]+$"
color brightyellow " + +| + +"

View File

@ -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}"

View File

@ -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}"

View File

@ -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="\*/"

View File

@ -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}"

View File

@ -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}"

View File

@ -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="^```"

View File

@ -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}"

View File

@ -1,3 +0,0 @@
syntax "gitignore" ".gitignore$"
icolor brightblue "^[[:space:]]*#.*$"

View File

@ -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 "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
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 "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -1,41 +1,255 @@
## HTML syntax highlighting rules for Nano
syntax "html" "\.html?$"
header "<!doctype html"
syntax "HTML" "\.html?(.j2)?(.twig)?$"
magic "HTML document"
comment "<!--|-->"
# 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="</([biu]|em|strong)>"
# 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:]]*\<on(abort|afterprint|before(print|unload)|blur|canplay(through)?|(cue|duration|hash|rate|volume)?change|(dbl)?click|contextmenu|copy|cut|drag(end|enter|leave|over|start)?|drop|emptied|ended|error|focus|input|invalid|key(down|press|up)|load(ed(meta)?data|start)?|mouse(down|move|out|over|up|wheel)|(off|on)line|page(hide|show)|paste|pause|play(ing)?|popstate|progress|reset|resize|scroll|search|seek(ed|ing)|select|show|stalled|storage|submit|suspend|timeupdate|toggle|unload|waiting|wheel)[[:space:]]*(=|$)"
## Named character references and entities
color red "&#?[[:alnum:]]*;"
## Template strings (not in the HTML spec, but very commonly used)
color magenta "\{[^\}]*\}\}?"
color brightgreen "[[:space:]]((end)?if|(end)?for|in|not|(end)?block)[[:space:]]"
#
# Elements
#
## Comments
color green start="<!--" end="-->"
# Obsolete elements
color brightyellow "</?(bgsound|blink|command|eventsource|listing|nobr|plaintext|spacer|xmp)([[:space:]]+>?|>|[[:space:]]*$)"
# Normal elements valid in HTML5
color white "</?(a|abbr|address|article|aside|audio|b|bd[io]|blockquote|body|button|canvas|caption|cite|code|colgroup|datalist|d[dlt]|del|details|dfn|dialog|div|em|fieldset|figcaption|figure|footer|form|h[1-6]|head(er)?|hgroup|html|i|iframe|ins|kbd|label|legend|li|main|map|mark|menu|meter|nav|object|[ou]l|optgroup|option|output|p|pre|progress|q|r[pt]|ruby|s|samp|(no)?script|section|select|small|span|strong|style|su[bp]|summary|table|t(body|foot|head)|t[dhr]|template|textarea|time|title|u|var|video)([[:space:]]+>?|>|[[: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 "</?(acronym|applet|big|center|content|dir|(base)?font|frame(set)?|isindex|marquee|noframes|shadow|strike|tt)([[:space:]]+>?|>|[[: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="<!--" end="-->"
color brightblack "<!(doctype|DOCTYPE)[^>]*>"
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}"

View File

@ -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}"

View File

@ -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 "\<on\>"
color brightblue "\<set|\$include\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\.?"
color cyan "\<set|\$include\>"
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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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 "\<null\>"
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 "\<null\>"
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}"

View File

@ -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}"

View File

@ -1,16 +0,0 @@
nano run control files
Copyright (C) 2022+ Galen Guyer <galen@galenguyer.com>
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 <http://www.gnu.org/licenses/>.

View File

@ -1,80 +1,45 @@
##############################################################################
#
# Lua syntax highlighting for Nano.
#
# Author: Matthew Wild <mwild1 (at) gmail.com>
# 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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

File diff suppressed because one or more lines are too long

View File

@ -15,4 +15,22 @@ color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?(
color magenta "^PORT *STATE *SERVICE"
color brightblue "^#.*"
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}"

View File

@ -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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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:]]+$"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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}"

View File

@ -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.
<!-- The follow table lists all systems with this package published.
Feel free to add your official package manager.
> Systems that are based in others' package managers or repositories are compatible. For example: `pacman` based systems are compatible with `Arch Linux`.
| System | Command |
| ---------- | ---------------------------------------- |
| Arch Linux | `pacman -S nano-syntax-highlighting` | -->
### 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)

View File

@ -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}"

View File

@ -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}"

View File

@ -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 "\<TODO\>:?"
color brightwhite,cyan "\<FIXME\>:?"
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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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

View File

@ -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}"

View File

@ -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}"

View File

@ -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)"

View File

@ -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="<!--" end="-->"
color brightblack start="<!DOCTYPE" end=">"
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="<!DOCTYPE" end="[/]?>"
color yellow start="<!--" end="-->"
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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

View File

@ -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}"

110
common/vscode/vscode.css Normal file
View File

@ -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;
}

View File

@ -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)