diff --git a/Dockerfile.nanorc b/Dockerfile.nanorc new file mode 100644 index 0000000..053951e --- /dev/null +++ b/Dockerfile.nanorc @@ -0,0 +1,26 @@ +## Syntax highlighting for Dockerfiles +syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$" + +## Keywords +icolor red "^(FROM|RUN|CMD|LABEL|MAINTAINER|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ARG|ONBUILD|STOPSIGNAL|HEALTHCHECK|SHELL)[[:space:]]" + +## Brackets & parenthesis +color brightgreen "(\(|\)|\[|\])" + +## Double ampersand +color brightmagenta "&&" + +## Comments +icolor cyan "^[[:space:]]*#.*$" + +## Blank space at EOL +color ,green "[[:space:]]+$" + +## Strings, single-quoted +color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" + +## Strings, double-quoted +color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" + +## Single and double quotes +color brightyellow "('|\")" diff --git a/apacheconf.nanorc b/apacheconf.nanorc new file mode 100644 index 0000000..4bda18a --- /dev/null +++ b/apacheconf.nanorc @@ -0,0 +1,47 @@ +# Apache files +syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess|apache2\.conf|\.conf$" +color yellow ".+" +color brightcyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)" +color brightcyan "(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)" +color brightcyan "(Allow|AllowCONNECT|AllowEncodedSlashes|AllowOverride|Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID)" +color brightcyan "(Anonymous_VerifyEmail|AssignUserID|AuthAuthoritative|AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm)" +color brightcyan "(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)" +color brightcyan "(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)" +color brightcyan "(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)" +color brightcyan "(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)" +color brightcyan "(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)" +color brightcyan "(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)" +color brightcyan "(CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckSpelling|ChildPerUserID|ContentDigest|CookieDomain|CookieExpires|CookieLog|CookieName)" +color brightcyan "(CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavLockDB|DavMinTimeout|DefaultIcon|DefaultLanguage|DefaultType)" +color brightcyan "(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)" +color brightcyan "(DocumentRoot|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|Example|ExpiresActive|ExpiresByType)" +color brightcyan "(ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FileETag|Files|FilesMatch|ForceLanguagePriority|ForceType|ForensicLog|Group|Header)" +color brightcyan "(HeaderName|HostnameLookups|IdentityCheck|IfDefine|IfModule|IfVersion|ImapBase|ImapDefault|ImapMenu|Include|IndexIgnore|IndexOptions|IndexOrderDefault)" +color brightcyan "(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)" +color brightcyan "(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)" +color brightcyan "(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)" +color brightcyan "(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)" +color brightcyan "(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)" +color brightcyan "(MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads)" +color brightcyan "(MMapFile|ModMimeUsePathInfo|MultiviewsMatch|NameVirtualHost|NoProxy|NumServers|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|PassEnv|PidFile)" +color brightcyan "(ProtocolEcho|Proxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyIOBufferSize|ProxyMatch|ProxyMaxForwards|ProxyPass|ProxyPassReverse)" +color brightcyan "(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)" +color brightcyan "(RedirectPermanent|RedirectTemp|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader)" +color brightcyan "(Require|RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule|RLimitCPU|RLimitMEM|RLimitNPROC)" +color brightcyan "(Satisfy|ScoreBoardFile|Script|ScriptAlias|ScriptAliasMatch|ScriptInterpreterSource|ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock|SecureListen)" +color brightcyan "(SendBufferSize|ServerAdmin|ServerAlias|ServerLimit|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetEnv|SetEnvIf|SetEnvIfNoCase|SetHandler)" +color brightcyan "(SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSLCACertificateFile|SSLCACertificatePath)" +color brightcyan "(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)" +color brightcyan "(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)" +color brightcyan "(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)" +color brightcyan "(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)" +color brightcyan "(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)" +color brightcyan "(VirtualDocumentRootIP|VirtualHost|VirtualScriptAlias|VirtualScriptAliasIP|Win32DisableAcceptEx|XBitHack)" +color yellow "<[^>]+>" +color brightcyan ")" +color green "\"(\\.|[^\"])*\"" +color white "#.*" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/asciidoc.nanorc b/asciidoc.nanorc new file mode 100644 index 0000000..1f9d2cc --- /dev/null +++ b/asciidoc.nanorc @@ -0,0 +1,47 @@ +syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$" + +# main header +color brightred "^=[[:space:]].+$" +# h1 +color red "^==[[:space:]].*$" +color red "^----+$" +# h2 +color magenta "^===[[:space:]].*$" +color magenta "^~~~~+$" +# h4 +color green "^====[[:space:]].*$" +color green "^\^\^\^\^+$" +# h5 +color brightblue "^=====[[:space:]].*$" +color brightblue "^\+\+\+\++$" + +# attributes +color brightgreen ":.*:" +color brightred "\{[a-z0-9]*\}" +color red "\\\{[a-z0-9]*\}" +color red "\+\+\+\{[a-z0-9]*\}\+\+\+" + +# Paragraph Title +color yellow "^\..*$" + +# source +color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]" + +# Other markup +color yellow ".*[[:space:]]\+$" +color yellow "_[^_]+_" +color yellow "\*[^\*]+\*" +color yellow "\+[^\+]+\+" +color yellow "`[^`]+`" +color yellow "\^[^\^]+\^" +color yellow "~[^~]+~" +color yellow "'[^']+'" + +color cyan "`{1,2}[^']+'{1,2}" + +# bullets +color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]" + +# anchors +color brightwhite "\[\[.*\]\]" +color brightwhite "<<.*>>" diff --git a/asm.nanorc b/asm.nanorc new file mode 100644 index 0000000..fe33444 --- /dev/null +++ b/asm.nanorc @@ -0,0 +1,20 @@ +syntax "asm" "\.(S|s|asm)$" +color red "\<[Aa-Zz_]{2,}\>" +color brightgreen "\.(data|subsection|text)" +color green "\.(align|file|globl|global|hidden|section|size|type|weak)" +color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" +icolor brightred "^[[:space:]]*[.0-9Aa-Zz_]*:" +color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" + +## Strings +# NOTE: Very resource intensive. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" + +## Highlight comments +color brightblue ";.*" +color brightblue "//.*" +color brightblue start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/bash.nanorc b/bash.nanorc new file mode 100644 index 0000000..0f5c8ff --- /dev/null +++ b/bash.nanorc @@ -0,0 +1,31 @@ +# Bash only syntax highlighting +# +syntax "bash" "\.bash$" "\.bash_(profile|aliases|functions|login|logout)$" "(\.|/)profile$" +header "^#!.*/(ba|k|pdk)?sh[-0-9_]*" + +## Control +color magenta "\<(if|else|for|function|case|esac|in|select|until|while|do|elif|then|set|\.|done|fi)\>" + +## Brackets and redirects +color yellow "[(){}[;|<>]" +color yellow "\]" + +## Builtins +color red "\<(source|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|suspend|test|times|trap|type|ulimit|umask|unalias|wait)\>" + +## Unix Commands +color red "\<(arch|awk|bash|bunzip2|bzcat|bzcmp|bzdiff|bzegrep|bzfgrep|bzgrep|bzip2|bzip2recover|bzless|bzmore|cat|chattr|chgrp|chmod|chown|chvt|cp|date|dd|deallocvt|df|dir|dircolors|dmesg|dnsdomainname|domainname|du|dumpkeys|echo|ed|egrep|false|fgconsole|fgrep|fuser|gawk|getkeycodes|gocr|grep|groups|gunzip|gzexe|gzip|hostname|igawk|install|kbd_mode|kbdrate|killall|last|lastb|link|ln|loadkeys|loadunimap|login|ls|lsattr|lsmod|lsmod.old|mapscrn|mesg|mkdir|mkfifo|mknod|mktemp|more|mount|mv|nano|netstat|nisdomainname|openvt|pgawk|pidof|ping|ps|pstree|pwd|rbash|readlink|red|resizecons|rm|rmdir|run-parts|sash|sed|setfont|setkeycodes|setleds|setmetamode|setserial|sh|showkey|shred|sleep|ssed|stat|stty|su|sync|tar|tempfile|touch|true|umount|uname|unicode_start|unicode_stop|unlink|utmpdump|uuidgen|vdir|wall|wc|ypdomainname|zcat|zcmp|zdiff|zegrep|zfgrep|zforce|zgrep|zless|zmore|znew|zsh)\>" + +## More Unix Commands +color red "\<(aclocal|aconnect|aplay|apm|apmsleep|apropos|ar|arecord|as|as86|autoconf|autoheader|automake|awk|basename|bc|bison|c\+\+|cal|cat|cc|cdda2wav|cdparanoia|cdrdao|cd-read|cdrecord|chfn|chgrp|chmod|chown|chroot|chsh|clear|cmp|co|col|comm|cp|cpio|cpp|cut|dc|dd|df|diff|diff3|dir|dircolors|directomatic|dirname|du|env|expr|fbset|file|find|flex|flex\+\+|fmt|free|ftp|funzip|fuser|g\+\+|gawk|gc|gcc|gdb|getent|getopt|gettext|gettextize|gimp|gimp-remote|gimptool|gmake|gs|head|hexdump|id|install|join|kill|killall|ld|ld86|ldd|less|lex|ln|locate|lockfile|logname|lp|lpr|ls|lynx|m4|make|man|mkdir|mknod|msgfmt|mv|namei|nasm|nawk|nc|nice|nl|nm|nm86|nmap|nohup|nop|od|passwd|patch|pcregrep|pcretest|perl|perror|pidof|pr|printf|procmail|prune|ps2ascii|ps2epsi|ps2frag|ps2pdf|ps2ps|psbook|psmerge|psnup|psresize|psselect|pstops|rcs|rev|rm|scp|sed|seq|setterm|shred|size|size86|skill|slogin|snice|sort|sox|split|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|stat|strings|strip|sudo|suidperl|sum|tac|tail|tee|test|tr|uniq|unlink|unzip|updatedb|updmap|uptime|users|vmstat|w|wc|wget|whatis|whereis|which|who|whoami|write|xargs|yacc|yes|zip|zsoelim)\>" + +## Strings +color blue "\"(\\.|[^\"])*\"" +color blue "'(\\.|[^\'])*'" + +## Variables +# NOTE: Keep this section below the Strings section, such that Variables are highlighted inside strings. +color cyan start="[$@%]" end="([[:alnum:]]|_)*" + +## Comments +color green "#.*$" diff --git a/c.nanorc b/c.nanorc new file mode 100644 index 0000000..d05f482 --- /dev/null +++ b/c.nanorc @@ -0,0 +1,52 @@ +## 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)" +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}'" + +## +## 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:]]+$" diff --git a/changelogs.nanorc b/changelogs.nanorc new file mode 100644 index 0000000..6d9ec57 --- /dev/null +++ b/changelogs.nanorc @@ -0,0 +1,18 @@ +syntax "changelogs" "ChangeLog*$" "HISTORY$" "NEWS$" + +color green "\+" +color red "\-" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]" +# NOTE: Alphabetical timezone codes are goofy, and this is hardly an exhaustive list of them. +color blue "\<(CEST|CET|CST|CDT|EDT|UTC)\>" +color yellow "[0-9]\..*$" +color cyan "\*.*$" +color brightblue "\<(pre.*$|beta.*$|rc.*$|release.*$)\>" +color green "#.*$" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" +color magenta "[.0-9A-Za-z_]*[[:space:]]*[.0-9A-Za-z_]*[[:space:]]<" +color brightyellow "<(\\.|[^\"])*>" +color brightwhite "commit[[:space:]]*[.0-9A-Z_]*$" diff --git a/cmake.nanorc b/cmake.nanorc new file mode 100644 index 0000000..728d14a --- /dev/null +++ b/cmake.nanorc @@ -0,0 +1,26 @@ +## CMake syntax highlighter for GNU Nano +## +syntax "CMake" "(CMakeLists\.txt|\.cmake)$" +comment "#" + +icolor green "^[[:space:]]*[A-Z0-9_]+" +icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" + +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:]]+$" diff --git a/conf.nanorc b/conf.nanorc new file mode 100644 index 0000000..cf9f58a --- /dev/null +++ b/conf.nanorc @@ -0,0 +1,11 @@ +## Here is an example for nanorc files. +## +syntax "Conf" "\.c[o]?nf$" +## Possible errors and parameters +## Strings +icolor white ""(\\.|[^"])*"" +## Comments +icolor brightblue "^[[:space:]]*#.*$" +icolor cyan "^[[:space:]]*##.*$" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/configfiles.nanorc b/configfiles.nanorc new file mode 100644 index 0000000..c0da07a --- /dev/null +++ b/configfiles.nanorc @@ -0,0 +1,17 @@ +syntax "configfiles" "(\.|/)conf$" "(\.|/)ample$" "(\.|/)globals$" "xfce.*$" "syslog-ng" "sudoers" +color brightwhite "\<(alias)\>" +color blue "<(\\.|[^'])*>" +color magenta "[a-zA-Z0-9\_]+=" +color white ">(\\.|[^'><])*" "\<(logfile)\>" "\<(driftfile)\>" "\<(restrict)\>" +color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" +color magenta "'(\\.|[^'])*'" +color brightwhite "[0-9]" +color brightwhite "[<>]" +color magenta "Section" "EndSection" "SubSection" "EndSubSection" +color red "\<(root)\>" +color brightred,blue "^.*-->" start="" + diff --git a/css.nanorc b/css.nanorc new file mode 100644 index 0000000..04d4a97 --- /dev/null +++ b/css.nanorc @@ -0,0 +1,13 @@ +## Here is an example for css files. +## + +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 ";|:|\{|\}" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/csv.nanorc b/csv.nanorc new file mode 100644 index 0000000..14d7d9c --- /dev/null +++ b/csv.nanorc @@ -0,0 +1,16 @@ +# Rainbow CSV highlighting rules (12 column coverage) +# Inspired by https://github.com/mechatroner/rainbow_csv +syntax "CSV" "\.csv$" + +color brightmagenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightcyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightblue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightyellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightgreen "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color brightred "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?([^,]*,?))?" +color cyan "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color magenta "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color blue "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?([^,]*,)?" +color yellow "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?([^,]*,)?" +color green "^("([^"]*"")*[^"]*",?)("([^"]*"")*[^"]*",?)|^([^,]*,)?([^,]*,)?" +color red "^("([^"]*"")*[^"]*",?)|^([^,]*,?))?" diff --git a/default.nanorc b/default.nanorc new file mode 100644 index 0000000..ed8b207 --- /dev/null +++ b/default.nanorc @@ -0,0 +1,5 @@ +syntax "default" +color green "^#.*" +color brightgreen "^##.*" +color yellow "^###.*" +#color green "^[ \t]*#.* diff --git a/dotenv.nanorc b/dotenv.nanorc new file mode 100644 index 0000000..dff22f6 --- /dev/null +++ b/dotenv.nanorc @@ -0,0 +1,22 @@ +# Supports `.env` files +syntax "dotenv" "\/\.env(\.old|\.bak|.example|~)?$" + +## Keys +color cyan "^\s*[A-Z0-9_]+" + +## Values +color brightyellow "=.*$" +color ,red "[\'\"].*$" +color brightwhite "[\'\"].*[\'\"]$" + +## Equal sign +color green "=" + +## Booleans +color brightmagenta "(TRUE|true|FALSE|false)\s*($|;)" + +## Comments +color brightyellow ";.*$" + +## Spaces in front of tabs. +color ,red " + +" diff --git a/dummy.nanorc b/dummy.nanorc new file mode 100644 index 0000000..e7791b4 --- /dev/null +++ b/dummy.nanorc @@ -0,0 +1,39 @@ +########################################################################## +# +# +# Dummy ruleset +# +# +# If you want to create your own rules you can use this simple example: +# +# syntax "Dummy" "(\.|/)foo$" -> this creates the ruleset "Dummy" and it +# matches all filenames ending with foo +# "foo" -> this matches foo exactly +# "foo.*$" -> this matches files beginning with foo +# +# +# +# After you selected the files you can define rulesets for this file: +# +# +# color blue "#.*$" -> colors all after "#" blue on this line +# color red "\@" -> colors all "@" red, \ means to handle it _not_ +# as a special sign +# color yellow "\<(profi)\>" -> colors only the word profi yellow +# color yellow "profi" -> colors all strings "profi" yellow, also in +# profile +# color black "[0-9]" -> colors all numbers black +# color magenta "'(\\.|[^'])*'" -> colors all between ' and ' magenta, +# but only on the same line +# color red "[A-Z0-9\_]+=" -> matches everything folowed by = +# color green "setenv|export" -> matches the string setenv OR export +# color cyan "^.*(foobar).*$" -> colors the whole line cyan, by matching foobar +# on that line +# +# color brightred,blue start="" +# +# -> colors all between brightred on blue +# even if there are more lines between +# +# +########################################################################### diff --git a/etc-hosts.nanorc b/etc-hosts.nanorc new file mode 100644 index 0000000..eb8a51e --- /dev/null +++ b/etc-hosts.nanorc @@ -0,0 +1,15 @@ +## Make /etc/hosts nicer to read, see `man hosts 5` to see the format +syntax "/etc/hosts" "hosts" + +# IPv4 +color yellow "^[0-9\.]+\s" + +# IPv6 +icolor green "^[0-9a-f:]+\s" + +# interpunction +color normal "[.:]" + +# comments +color brightblack "^#.*" + diff --git a/etc-stuff.nanorc b/etc-stuff.nanorc new file mode 100644 index 0000000..95c244b --- /dev/null +++ b/etc-stuff.nanorc @@ -0,0 +1,367 @@ +#syntax "etcconf.d" "conf.d/(\.|/)" +#color magenta "\".*$" +#color blue "#.*$" + +syntax "group" "group$" +color green "[0-9]\:.*$" +color brightwhite "[0-9]" +icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" + +syntax "modules" "modules.conf$" "modules.d/(\.|/)" +color brightwhite "[0-9]" +color red "alias" +color brightred "(probeall|options)" +color green "#.*$" + +syntax "modprobe" "modprobe.conf$" +color brightwhite "[0-9]" +color red "alias" +color brightred "options" +color magenta "[a-zA-Z0-9\_]+=" +color green "#.*$" + +syntax "hosts" "hosts$" +#color brightwhite "[0-9]" +color yellow "^[[:space:]]*[.0-9A-Z_]*.*$" +color brightblue "^[[:space:]]*[.0-9A-Z_]*" +color red "127.0.0.1" +color cyan "\:\:" +color green "#.*$" + +syntax "mplayer" "mplayer.conf$" +color brightgreen "\=.*$" +color brightred "no" +color cyan "\=" +color green "#.*$" + +syntax "mplayerplugin" "mplayerplug\-in.conf$" +color brightgreen "\=.*$" +color brightred "0" +color cyan "\=" +color green "#.*$" + +syntax "sensors" "sensors.conf$" +color brightyellow "\".*$" +color yellow "\<(label|compute|set|chip)\>" +color green "#.*$" + +syntax "sysctl" "sysctl.conf$" +color brightwhite "[0-9]" +color cyan "\=" +color green "#.*$" + +syntax "dircolors" "DIR_COLORS$" +color yellow "\<(TERM|NORMAL|FILE|DIR|LINK|FIFO|SOCK|DOOR|BLK|CHR|ORPHAN|MISSING|SETUID|SETGID)\>" +color yellow "\<(STICKY|EXEC|STICKY_OTHER_WRITABLE|OTHER_WRITABLE)\>" +color brightblack "[0-9][0-9]\;.*$" +color cyan "\.[.0-9A-Z_]*[[:space:]]" +color green "#.*$" + +syntax "modes" "fb.modes$" +color yellow "\<(mode|endmode)\>" +color cyan "\<(geometry|timings|hsync|vsync|double)\>" +color green "#.*$" + +syntax "serial" "serial.conf$" +color brightwhite "[0-9]" +color cyan "\<(uart|port|irq|fourport)\>" +color green "#.*$" + +syntax "services" "services$" +color cyan "/tcp" +color magenta "udp" +color brightblack "/" +color brightwhite "[0-9]" +color green "#.*$" + +syntax "crontab" "crontab$" +color brightwhite "[0-9]" +color cyan "\*" +color yellow "[[:space:]]/.*$" +color brightblack "(&|>)" +color green "#.*$" + +syntax "nscd" "nscd.conf$" +color cyan "(passwd|group|hosts)" +color yellow "([0-9]|yes)" +color green "#.*$" + +syntax "rsync" "rsyncd.conf$" +color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)" +color cyan "(log\ format|syslog\ facility|timeout)" +color yellow "(path|comment|exclude)" +color brightyellow start="\[" end="\]" +color green "#.*$" + +syntax "lilo" "lilo.conf$" +color cyan "(boot|map|install|menu\-scheme|timeout|delay|prompt|vga|default)" +color brightwhite "[0-9]" +color magenta "(lba32|linear|compact|image)" +color brightyellow "(root|label|read\-only)" +color yellow "\/.*$" +color green "#.*$" + +syntax "hdparm" "hdparm$" +color cyan "(pata|sata)_all_args" +color cyan "[A-Za-z0-9]*_args" +color magenta "\".*$" +color green "#.*$" + +syntax "ini" "\.ini$" +color yellow "\[.*]" +color green "\;.*$" + +syntax "smbconf" "smb.conf$" +color brightcyan "\=.*$" +color cyan "\/.*$" +color brightred "(no|No)" +color brightgreen "(yes|Yes)" +color brightyellow "(workgroup.*$|hosts\ allow.*$|interfaces.*$|netbios\ name.*$)" +color yellow "\[.*]|\=" +icolor magenta "^[[:space:]]*[.A-Z]*" +icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*" +icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*" +color green "\;.*$" +color green "#.*$" + +syntax "mke2fs" "mke2fs.conf$" +color cyan "(base_features|blocksize|inode_ratio)" +color yellow "(small|floppy|news|largefile|largefile4)" +color brightwhite "[0-9]" +color brightyellow start="\[" end="\]" +color blue "\{|\}" +color brightblack "\=" +color green "#.*$" + +syntax "squidconf" "squid.conf$" +color brightyellow "(http_port|hierarchy_stoplist|maximum_object_size|cache_dir|dns_testnames)" +color brightyellow "(coredump_dir|pipeline_prefetch|cache_mgr|visible_hostname|ftp_user|client_netmask)" +color cyan "(acl|refresh_pattern|quick_abort_(min|max)|(cache|memory)_replacement_policy|(access|cache|cache_store)_log|cache_host)" +color yellow "((http|icp|snmp)_access|snmp_port|parent|sibling|anonymize_headers|fake_user_agent)" +color brightgreen "(allow|transparent|[[:space:]]on)" +color brightred "(deny|reload\-into\-ims|override\-expire|override\-lastmod|[[:space:]]off)" +color magenta "(src|dst|method)" +color brightcyan "(seconds|minutes|hours|(G|M|K)B)" +color brightblack "[0-9]" +color green "#.*$" + +syntax "distcchosts" "/etc/distcc/hosts$" +color brightblue "[0-9]" +color yellow "localhost" +color magenta "(/|@|:)" +color green "#.*$" + +syntax "logrotate" "logrotate.conf$" +color brightwhite "[0-9]" +color magenta start="/" end="[[:space:]]" +color cyan "(create|compress|include|notifempty|nomail|noolddir|\{|\})" +color yellow "(weekly|daily|rotate|postrotate|sharedscripts)" +color magenta "logrotate" +color green "#.*$" + +syntax "ppppears" "/etc/ppp/peers/(\.|/)" +color brightwhite "user.*$" +color brightyellow "user" +color brightyellow start="\"" end="\"" +color yellow "lcp\-(echo\-(interval|failure)|max\-configure|restart)" +color yellow "(debug|sync|no(ccp|pcomp|accomp)|deflate|bsdcomp|usepeerdns|pty)" +color cyan "(lock|defaultroute|noipdefault|noauth|holdoff|maxfail|persist|asyncmap|detach|updetach|cdtrcts)" +color brightwhite "[0-9]" +color magenta "(\@|\,|\.)" +color green "#.*$" + +syntax "dhcpconf" "dhcpd.conf$" +icolor brightgreen "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*|ad\-hoc|interim" +color cyan "(authoritative|ddns\-update\-style|subnet|host|log\-facility)" +color brightblue "(netmask|routers|option|(netbios|domain)-nam(e|e-servers)|(default|max)-lease-time)|range|broadcast\-address|subnet-mask" +color brightyellow start="\"" end="\"" +color yellow "(hardware|ethernet|fixed\-address)" +color brightblack "\:|\;|\{|\})"" +color green "#.*$" + +syntax "hibernateconf" "/etc/hibernate/common.conf$" +color magenta "^[[:space:]]*[.A-Z]*" +color brightwhite start="'" end="'" +color brightgreen "yes" +color brightred "no" +color brightcyan "auto" +color green "#.*$" +color brightcyan "##.*$" +color yellow "###.*$" +color cyan "####.*$" + +syntax "nsswitch" "nsswitch.conf$" +icolor cyan "^[[:space:]]*[.0-9A-Z_]*:" +color magenta "\:" +color green "#.*$" + +syntax "sane" "sane.d/(\.|/)" +color brightgreen "(scsi|usb|parport|auto)" +color brightred "option" +color yellow "(override|vendor|model)" +color cyan "/.*$" +color green "#.*$" + +syntax "syslogconf" "syslog.conf$" +icolor cyan "(\*|\;|\.|\,|\\)" +color magenta "/.*$" +color brightblue "-.*$" +color brightwhite "\=" +color green "#.*$" + +syntax "udevrules" "\.rules$" +color brightwhite "[0-9]" +color brightblack "(ACTION|SUBSYSTEM|DEVPATH|OPTIONS|WAIT_FOR_SYSFS|ENV|KERNEL|NAME|MODE|GROUP|SYMLINK|DRIVERS|PROGRAM|RUN)" +color brightblack "(GOTO|IMPORT|ATTRS|SUBSYSTEMS|DVB|IR|BUS|SYSFS|ATTR|LABEL)" +color yellow "(add|net|scsi|drivers|module|address|bus|devices|ioerr_cnt|ignore_device|svga|video|tt(y(S|USB)|y|s)|last_rule)" +color yellow "(pnp|(au|ra)dio|tape|disk|snd|microcode|f(b|d|loppy|irmware)|usb|lp|kbd|parport|block|ide|misc|netlink|input)" +color yellow "(mouse|event|joystick|psmouse|atkbd|spkr|pcspkr|ir|dvb|persistent|storage|end|scanner|sound|dialout|console)" +color yellow "(cdrom|cdrw|dvd|dvdrw|isdn|pty|vcs|vcsa|ippp|dcbri|ircomm|capi|card|nvidia|rtc|agpgart|psaux|ptmx|sd|dasd)" +color yellow "(ataraid|cciss|ida|rd|3dfx|control|hw|pcm|midi|timer|seq|cpu|msr|dm|i2c|mice|js|ts|loop|md|uinput|inotify|aoe)" +color brightyellow "(ID_(SERIAL|PATH|CLASS|EDD|CDROM|CDROM_(DVD|DVD_R|CD_RW))|program|parent|removable|GENERATED|COMMENT)" +color brightyellow "(id(Vendor|Product)|PHYSDEVBUS|(UDEV|UDEVD)_EVENT|INTERFACE_NEW|MODALIAS|modalias|alias|name)" +color brightred "(\%(k|r|c|n))" +color blue "(\;|\.|\"|\,)" +color brightblue "(\=|\*|\?)" +color green "#.*$" + +syntax "mailalias" "/etc/mail/aliases$" +icolor brightblue "^[[:space:]]*[.0-9A-Z_]*:" +icolor brightblue "^[[:space:]]*[.0-9A-Z_]*\-[.0-9A-Z_]*:" +color yellow "(\/.*$|root)" +color green "#.*$" + +syntax "wifiradar" "wifi-radar.conf$" +color brightwhite "[0-9]" +color yellow "((f|F)alse|eth[.0-9])|yes|no|[[:space:]]auto|ssid" +color brightgreen start="\[" end="\]" +color green "#.*$" + +syntax "irssi" "irssi.conf$" +icolor brightwhite "(^[[:space:]]*[.0-9A-Z_]*[[:space:]]=|address|name|chatnet|port|autojoin)" +color brightblue ""(\\.|[^\"])*"" +color yellow "(\{|\}|\;)" +color brightblack "\=" +color brightgreen "(Y|y)es|[0-9]" +color brightred "No" +color blue "\"" +color cyan "(servers|chatnets|channels|aliases|statusbar)" +color green "#.*$" + +syntax "proftpd" "proftpd.conf$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightyellow "ServerType|DefaultServer|ServerIdent|Port[[:space:]]|Umask|MaxInstances|User|Group" +color yellow "(UserAlias|UseFtpUsers)" +color brightgreen "([[:space:]]on|[0-9]|AllowAll)" +color brightred "(off|DenyAll)" +icolor cyan start="<" end=">" +icolor cyan start=""" end=""" +color cyan "xinetd|inetd|standalone" +color green "#.*$" + +syntax "xinetd" "xinetd.conf$" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightgreen "([0-9]|yes)" +color brightred "(off|no)" +color magenta "defaults" +color brightblack "=" +color brightyellow "(\{|\})" +color cyan "/.*$" +color green "#.*$" + +syntax "xinetd.d" "xinetd.d/(\.|/)" +icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color brightgreen "([0-9]|yes)" +color brightred "(off|[[:space:]]no)" +color brightblack "=" +color brightyellow "(\{|\})" +color cyan "/.*$" +color green "#.*$" + +syntax "localegen" "locale(.gen|s.build)" +color cyan "ISO.*$" +color yellow "UTF.*$" +color green "#.*$" + +syntax "clamd" "clamd.conf$" +color brightblack "[0-9]M" +color brightwhite "[0-9]" +color yellow "^[[:space:]]*[.0-9A-Z_]*" +color cyan "^[[:space:]]*[.0-9A-Z_]*[[:space:]]" +color green "#.*$" + +syntax "grcconf" "grc.conf$" +color cyan "conf\..*$" +color yellow "\(.*$|\\.*$" +color green "#.*$" + +syntax "freshclamconf" "freshclam.conf$" +icolor brightcyan "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z_]*" +color cyan "\/.*$|[0-9]" +icolor yellow "^[[:space:]]*[.A-Z]*" +color green "#.*$" + +syntax "colorlightbg" "colordiffrc-lightbg$" +color brightblue "=.*$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color brightblack "=" +color green "#.*$" + +syntax "etc-limits" "limits$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color green "#.*$" + +syntax "screenrc" "screenrc$" +icolor yellow "^[[:space:]]*[.A-Z_]*" +color blue ""(\\.|[^\"])*"" +color brightwhite "[0-9]" +color red "[[:space:]]off" +color brightgreen "[[:space:]]on" +color magenta "'.*$" +color magenta "[A-Z0-9\_]+=" +color green "#.*$" + +syntax "fdparm" "fdprm$" +icolor brightgreen "^[[:space:]]*[0-9\/a-z]*" +color green "#.*$" + +syntax "securetty" "securetty$" +color cyan "console" +color brightwhite "[0-9]" +color red "vc" +color brightgreen "tt(y|yS|s)" +color green "#.*$" + +syntax "logindefs" "login.defs" + +icolor yellow "^[[:space:]]*[0-9\/a-z_]*" +color brightwhite "[0-9]" +color brightred "no" +color brightgreen "yes" +color green "#.*$" + +syntax "mysql" "my.cnf" +icolor yellow "^[[:space:]]*[0-9\/a-z_\-]*" +color cyan start="\[" end="\]" +color green "#.*$" + +syntax "manconf" "man.conf$" +icolor yellow "^[[:space:]]*[.A-Z_0-9]*" +color brightgreen "/.*$" +color green "#.*$" + +syntax "sshdconf" "sshd_config$" +icolor yellow "^[[:space:]]*[.A-Z_0-9]*" +color brightwhite "[0-9]" +color brightblue "/.*$" +color brightred "no" +color brightgreen "yes" +color green "#.*$" + +syntax "protocols" "protocols$" +icolor brightgreen "[0-9][[:space:]][[:space:]]*[.A-Z0-9-]*" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9]" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9]" +icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9][.0-9]" +icolor yellow "^[[:space:]]*[.A-Z0-9-]*" +color green "#.*$" diff --git a/git.nanorc b/git.nanorc new file mode 100644 index 0000000..0aaf475 --- /dev/null +++ b/git.nanorc @@ -0,0 +1,80 @@ +syntax "git-config" "git(config|modules)$|\.git/config$" + +color brightcyan "\<(true|false)\>" +color cyan "^[[:space:]]*[^=]*=" +color brightmagenta "^[[:space:]]*\[.*\]$" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightblack "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " +" + +# 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 + +# 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" + +# Commit message +color yellow ".*" + +# Comments +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:" + +# Untracked filenames +color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$" + +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}" + diff --git a/html.nanorc b/html.nanorc new file mode 100644 index 0000000..01bb24a --- /dev/null +++ b/html.nanorc @@ -0,0 +1,41 @@ +## HTML syntax highlighting rules for Nano + +syntax "HTML" "\.html?(.j2)?(.twig)?$" +magic "HTML document" +comment "" + +## Emphasis tags +color brightwhite start="<([biu]|em|strong)[^>]*>" end="" + +## 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:]=>]" + +## Strings +color yellow ""(\\.|[^"])*"" + +## 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:]]" + +## Comments +color green start="" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Reminders +color brightwhite,yellow "(FIXME|TODO|XXX)" diff --git a/ini.nanorc b/ini.nanorc new file mode 100644 index 0000000..d89f729 --- /dev/null +++ b/ini.nanorc @@ -0,0 +1,11 @@ +syntax "INI" "\.(ini|desktop|lfl|override|cfg)$" "(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 " + +| + +" diff --git a/initscript.nanorc b/initscript.nanorc new file mode 100644 index 0000000..89708ec --- /dev/null +++ b/initscript.nanorc @@ -0,0 +1,33 @@ +syntax "initscript" "/etc/init.d/(\.|/)" + +## Bash related syntax +color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" +color green "(\{|\}|\(\)|\;|\]|\[|`|\\|\$|<|>|!|=|&)" +color green "-(e|d|f|r|g|u|w|x|L)\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" + +## Variables +# NOTE: Official portage variables are in red, others in bright red. +color brightred "\$\{?[a-zA-Z_0-9]+\}?" +color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>" +color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\" "\" "\" + +## Portage commands +color magenta "\ [!a-zA-Z0-9_+ -]*" "inherit.*" +color brightblue "\" +color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +color brightblue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\" "\" +color brightblue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +color brightblue "\<(doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" + +## Common commands used in ebuilds +color blue "\" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" + +## Comments +# NOTE: Not reliable. +color yellow "#.*$" + +## Strings +# NOTE: Not reliable. +color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" diff --git a/java.nanorc b/java.nanorc new file mode 100644 index 0000000..fe3f286 --- /dev/null +++ b/java.nanorc @@ -0,0 +1,22 @@ +## Here is an example for Java. +## +syntax "Java" "\.java$" +magic "Java " +comment "//" + +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:]]+$" diff --git a/javascript.nanorc b/javascript.nanorc new file mode 100644 index 0000000..2cdd4a2 --- /dev/null +++ b/javascript.nanorc @@ -0,0 +1,25 @@ +syntax "JavaScript" "\.(js|ts)$" +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 " + +| + +" diff --git a/js.nanorc b/js.nanorc new file mode 100644 index 0000000..8991928 --- /dev/null +++ b/js.nanorc @@ -0,0 +1,56 @@ +### all *js files ( e.g. Firefox user.js, prefs.js ) + +## Old version + +#syntax "JavaScript" "(\.|/|)js$" +#color green "//.*$" start="\/\*" end="\*\/" +#color blue "'(\\.|[^'])*'" +#color red ""(\\.|[^\"])*"" +#color brightgreen "\<(true)\>" +#color brightred "\<(false)\>" "http\:\/\/.*$" +#color brightmagenta "[0-9](\\.|[^\"])*)" + +## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting + +syntax "JavaScript" "\.(js)$" +header "^#!.*\/(env +)node" +comment "//" + +## Default +color white "^.+$" + +## Decimal, cotal and hexadecimal numbers +color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" + +## Floating point number with at least one digit before decimal point +color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" +color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" + +## Keywords +color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" +color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" +color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" +color green "\<(import|as|from|export)\>" +color green "\<(const|let|class|extends|of|get|set|await|async|yield)\>" + +## Type specifiers +color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" +color red "\<(WeakMap|Map|WeakSet|Set|Symbol|Promise)\>" +color red "\<(Number|Object|RegExp|String)\>" +color red "\<(true|false)\>" + +## String +color brightyellow "L?\"(\\"|[^"])*\"" +color brightyellow "L?'(\'|[^'])*'" +color brightcyan "L?`(\`|[^`])*`" +color brightwhite,blue start="\$\{" end="\}" + +## Trailing spaces +color ,green "[[:space:]]+$" + +## Escapes +color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" + +## Comments +color brightblue start="^\s*/\*" end="\*/" +color brightblue "^\s*//.*$" diff --git a/json.nanorc b/json.nanorc new file mode 100644 index 0000000..1f79c18 --- /dev/null +++ b/json.nanorc @@ -0,0 +1,13 @@ +syntax "JSON" "\.json$" +header "^\{$" +# You can't add a comment to JSON. +comment "" + +color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" +color cyan "\" +color brightcyan "\<(true|false)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" +color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/log-stuff.nanorc b/log-stuff.nanorc new file mode 100644 index 0000000..0bce339 --- /dev/null +++ b/log-stuff.nanorc @@ -0,0 +1,39 @@ +syntax "logs" "midentd.log$" "mldonkey.log$" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]" +color cyan "\].*$" +color brightblack start="\[" end="\]" + +syntax "emergelog" "emerge.log$" +color brightwhite "[0-9]" +color yellow ">>>.*$" +color cyan "\*\*\*.*$" +color magenta "\:\:\:.*$" +color green start="\(" end="\)" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color blue "[0-9][0-9][0-9][0-9]" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" + +syntax "ntplog" "ntp.log$" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" +color brightwhite "[0-9]" +color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" +color cyan "\].*$" +color brightblack start="\[" end="\]" + +syntax "cronlog" "cron.log$" +color cyan "/.*$" +color brightblue "[0-9][0-9]\-[.A-Z_]*\-[0-9][0-9]" +color brightwhite "[0-9][0-9]\:[0-9][0-9]" +color magenta "(FILE|USER)" +color yellow "(pid|cmd)" + +syntax "miniserv" "miniserv.log$" "miniserv.error$" +color cyan "Bad\ Request.*$" +color brightred "Access\ denied.*$" +color brightwhite "[0-9]" +color green "(POST|GET|HTTP)" +color brightred "\"" +color yellow "(\:|\+|/|\.|\-)" +color green ".*started$" diff --git a/lua.nanorc b/lua.nanorc new file mode 100644 index 0000000..bec44ad --- /dev/null +++ b/lua.nanorc @@ -0,0 +1,80 @@ +############################################################################## +# +# Lua syntax highlighting for Nano. +# +# Author: Matthew Wild +# License: GPL 2 or later +# +# Version: 2007-06-06 +# +# Notes: Originally based on Ruby syntax rc by Josef 'Jupp' Schugt +############################################################################## + + +# 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:]]+$" diff --git a/makefile.nanorc b/makefile.nanorc new file mode 100644 index 0000000..cf98c7f --- /dev/null +++ b/makefile.nanorc @@ -0,0 +1,12 @@ +syntax "makefile" "(m|M)akefile$" "\.mak$" +color brightgreen "((C|CXX|LD)FLAGS)|LIBADD|LIBS|include" +icolor cyan start="\{" end="\}" +icolor cyan start="\(" end="\)" +color brightyellow "\$" +color green "#.*$" + +color red "[:=]" +color magenta "\<(if|ifeq|else|endif)\>" +color blue "\$\{.*}" +color brightblue "\w+:" +color green "#.*$" diff --git a/markdown.nanorc b/markdown.nanorc new file mode 100644 index 0000000..ef7e676 --- /dev/null +++ b/markdown.nanorc @@ -0,0 +1,54 @@ +syntax "Markdown" "\.(md|mkd|mkdn|markdown)$" + +# Tables (Github extension) +color cyan ".*[ :]\|[ :].*" + +# quotes +color brightblack start="^>" end="^$" +color brightblack "^>.*" + +# Emphasis +color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" + +# Strong emphasis +color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" + +# strike-through +color red "(^|[[:space:]])~~[^ ][^~]*~~" + +# horizontal rules +color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$" + +# headlines +color brightmagenta "^#{1,6}.*" + +# lists +color blue "^[[: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 "^```$" + +# done tasks +color brightblack "\[x\]" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/nginx.nanorc b/nginx.nanorc new file mode 100644 index 0000000..6735073 --- /dev/null +++ b/nginx.nanorc @@ -0,0 +1,13 @@ +syntax "Nginx" "nginx.*\.conf$" "\.nginx$" ".*\/sites\-available\/.*$" ".*\/sites\-enabled\/.*$" +header "^(server|upstream)[^{]*\{$" + +color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{" +color cyan "(^|[[:space:]{;])(access_log|add_after_body|add_before_body|add_header|addition_types|aio|alias|allow|ancient_browser|ancient_browser_value|auth_basic|auth_basic_user_file|autoindex|autoindex_exact_size|autoindex_localtime|break|charset|charset_map|charset_types|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|create_full_put_path|daemon|dav_access|dav_methods|default_type|deny|directio|directio_alignment|disable_symlinks|empty_gif|env|error_log|error_page|expires|fastcgi_buffer_size|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_timeout|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_connect_timeout|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_read_timeout|fastcgi_send_timeout|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geo|geoip_city|geoip_country|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_static|gzip_types|gzip_vary|if|if_modified_since|ignore_invalid_headers|image_filter|image_filter_buffer|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|include|index|internal|ip_hash|keepalive|keepalive_disable|keepalive_requests|keepalive_timeout|large_client_header_buffers|limit_conn|limit_conn_log_level|limit_conn_zone|limit_except|limit_rate|limit_rate_after|limit_req|limit_req_log_level|limit_req_zone|limit_zone|lingering_close|lingering_time|lingering_timeout|listen|location|log_format|log_not_found|log_subrequest|map|map_hash_bucket_size|map_hash_max_size|master_process|max_ranges|memcached_buffer_size|memcached_connect_timeout|memcached_next_upstream|memcached_pass|memcached_read_timeout|memcached_send_timeout|merge_slashes|min_delete_depth|modern_browser|modern_browser_value|mp4|mp4_buffer_size|mp4_max_buffer_size|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|open_log_file_cache|optimize_server_names|override_charset|pcre_jit|perl|perl_modules|perl_require|perl_set|pid|port_in_redirect|postpone_output|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_bypass|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_timeout|proxy_cache_min_uses|proxy_cache_path|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_max_temp_file_size|proxy_next_upstream|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_read_timeout|proxy_redirect|proxy_send_timeout|proxy_set_header|proxy_ssl_session_reuse|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|proxy_cache_methods|proxy_pass_request_body|proxy_pass_request_headers|proxy_cache_convert_head|proxy_cache_lock_age|proxy_cache_max_range_offset|proxy_send_lowat|proxy_set_body|proxy_socket_keepalive|proxy_ssl_trusted_certificate|random_index|read_ahead|real_ip_header|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|return|rewrite|root|satisfy|satisfy_any|secure_link_secret|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server|server|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|set|set_real_ip_from|source_charset|split_clients|ssi|ssi_silent_errors|ssi_types|ssl|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_engine|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_timeout|ssl_verify_client|ssl_verify_depth|ssl_ecdh_curve|ssl_session_tickets|ssl_stapling|ssl_stapling_verify|ssl_stapling_file|ssl_stapling_responder|ssl_buffer_size|ssl_early_data|ssl_password_file|ssl_session_ticket_key|ssl_trusted_certificate|sub_filter|sub_filter_once|sub_filter_types|tcp_nodelay|tcp_nopush|timer_resolution|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|uninitialized_variable_warn|upstream|user|userid|userid_domain|userid_expires|userid_name|userid_p3p|userid_path|userid_service|valid_referers|variables_hash_bucket_size|variables_hash_max_size|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|working_directory|xml_entities|xslt_stylesheet|xslt_types)([[:space:]]|$)" +color brightcyan "\<(on|off)\>" +color brightyellow "\$[A-Za-z][A-Za-z0-9_]*" +color red "[*]" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow start="'$" end="';$" +color brightblue "(^|[[:space:]])#([^{].*)?$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/nmap.nanorc b/nmap.nanorc new file mode 100644 index 0000000..c573f42 --- /dev/null +++ b/nmap.nanorc @@ -0,0 +1,18 @@ +syntax "NMAP" "\.nmap$" + +color yellow "^Nmap scan report for.*" +color brightwhite "^Not shown.*" +color brightwhite "^Host is up.*" +color brightwhite "^All.*" + +color yellow "^[0-9]+/(tcp|udp).*$" +color cyan "^[0-9]+/(tcp|udp)" + +color brightgreen "(Host is )?(open|up)" +color white "\(([0-9]+\.[0-9]+s latency)\)\." +color brightyellow "filtered" +color brightred "(Host is )?(All .* scanned ports on .*)?(^Not shown: [0-9]+ )?(closed|down)( ports)?" + +color magenta "^PORT *STATE *SERVICE" + +color brightblue "^#.*" \ No newline at end of file diff --git a/passwd.nanorc b/passwd.nanorc new file mode 100644 index 0000000..b459610 --- /dev/null +++ b/passwd.nanorc @@ -0,0 +1,11 @@ +syntax "passwd" "(\.|/)passwd$" "(\.|/)shadow$" +color white ".*$" +color blue "\:.*$" +color yellow "\:*\:" +color cyan "/.*$" +color red "/bin/false" +color brightred "root" +color brightgreen "/bin/.*sh" +color brightwhite "[0-9]" +color magenta "\:\/.*\:" + diff --git a/patch.nanorc b/patch.nanorc new file mode 100644 index 0000000..1e14b25 --- /dev/null +++ b/patch.nanorc @@ -0,0 +1,8 @@ +syntax "patch" "\.(patch|diff)$" +color brightgreen "^\+.*" +color green "^\+\+\+.*" +color brightblue "^ .*" +color brightred "^-.*" +color red "^---.*" +color brightyellow "^@@.*" +color magenta "^diff.*" diff --git a/perl.nanorc b/perl.nanorc new file mode 100644 index 0000000..d23c26e --- /dev/null +++ b/perl.nanorc @@ -0,0 +1,10 @@ +syntax "perl" "\.p[lm]$" +color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" +color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" +icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" +color yellow "qq\|.*\|" +color yellow ""([^"\\]++|\\.)*+"" +color white "[sm]/.*/" +color white start="(^use| = new)" end=";" +color green "#.*" +color yellow start="<< 'STOP'" end="STOP" diff --git a/php.nanorc b/php.nanorc new file mode 100644 index 0000000..693695f --- /dev/null +++ b/php.nanorc @@ -0,0 +1,61 @@ +## PHP Syntax Highlighting +syntax "PHP" "\.php[2345s~]?$|\.module$" +magic "PHP script" +comment "//" +color white start="<\?(php|=)?" end="\?>" +# Constructs +color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)" +color brightblue "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}" +color brightblue "[a-zA-Z0-9_]+:" +# Variables +color green "\$[a-zA-Z_0-9$]*|[=!<>]" +color green "\->[a-zA-Z_0-9$]*|[=!<>]" +# Functions +color brightblue "([a-zA-Z0-9_-]*)\(" +# Special values +color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)$" +color brightmagenta "[^a-z0-9_-]{1}(true|false|null|TRUE|FALSE|NULL)[^a-z0-9_-]{1}" +# Special Characters +color yellow "[.,{}();]" +color cyan "\[" +color cyan "\]" +# Numbers +color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*" +color magenta "0x[0-9a-zA-Z]*" +# Special Variables +color brightblue "(\$this|parent::|self::|\$this->)" +color magenta ";" +# Comparison operators +color yellow "(<|>)" +# Assignment operator +color brightblue "=" +# Bitwise Operations +color magenta "(&|\||\^)" +color magenta "(<<|>>)" +# Comparison operators +color yellow "(==|===|!=|<>|!==|<=|>=|<=>)" +# Logical Operators +color yellow "( and | or | xor |!|&&|\|\|)" +# And/Or/SRO/etc +color cyan "(\;\;|\|\||::|=>|->)" +# Double quoted STRINGS! +color red "(\"[^\"]*\")" +# Heredoc (typically ends with a semicolon). +color red start="<<<['\"]?[A-Z][A-Z0-9_]*['\"]?" end="^[A-Z][A-Z0-9_]*;" +# Inline Variables +color white "\{\$[^}]*\}" +# Single quoted string +color red "('[^']*')" +# Online Comments +color brightyellow "^(#.*|//.*)$" +color brightyellow "[ | ](#.*|//.*)$" +# PHP Tags +color red "(<\?(php)?|\?>)" +# General HTML +color red start="\?>" end="<\?(php|=)?" +# trailing whitespace +color ,green "[[:space:]]+$" +# multi-line comments +color brightyellow start="/\*" end="\*/" +# Nowdoc +color red start="<<<'[A-Z][A-Z0-9_]*'" end="^[A-Z][A-Z0-9_]*;" diff --git a/powershell.nanorc b/powershell.nanorc new file mode 100644 index 0000000..db459ee --- /dev/null +++ b/powershell.nanorc @@ -0,0 +1,34 @@ +## Nano syntax highlighting file for PowerShell +## Written by Rashil Gandhi https://github.com/rashil2000 + +syntax "PowerShell" "\.[pP][sS][1]$" "\.[pP][sS][mM][1]$" + +## Commands +icolor cyan "\<(Add-AppPackage|Add-AppPackageVolume|Add-AppProvisionedPackage|Add-ProvisionedAppPackage|Add-ProvisionedAppxPackage|Add-ProvisioningPackage|Add-TrustedProvisioningCertificate|Apply-WindowsUnattend|Disable-PhysicalDiskIndication|Disable-StorageDiagnosticLog|Dismount-AppPackageVolume|Enable-PhysicalDiskIndication|Enable-StorageDiagnosticLog|Flush-Volume|Get-AppPackage|Get-AppPackageDefaultVolume|Get-AppPackageLastError|Get-AppPackageLog|Get-AppPackageManifest|Get-AppPackageVolume|Get-AppProvisionedPackage|Get-DiskSNV|Get-PhysicalDiskSNV|Get-ProvisionedAppPackage|Get-ProvisionedAppxPackage|Get-StorageEnclosureSNV|Initialize-Volume|Mount-AppPackageVolume|Move-AppPackage|Move-SmbClient|Optimize-AppProvisionedPackages|Optimize-ProvisionedAppPackages|Optimize-ProvisionedAppxPackages|Remove-AppPackage|Remove-AppPackageVolume|Remove-AppProvisionedPackage|Remove-EtwTraceSession|Remove-ProvisionedAppPackage|Remove-ProvisionedAppxPackage|Remove-ProvisioningPackage|Remove-TrustedProvisioningCertificate|Set-AppPackageDefaultVolume|Set-AppPackageProvisionedDataFile|Set-AutologgerConfig|Set-EtwTraceSession|Set-ProvisionedAppPackageDataFile|Set-ProvisionedAppXDataFile|Write-FileSystemCache|A:|Add-BitLockerKeyProtector|Add-DnsClientNrptRule|Add-DtcClusterTMMapping|Add-EtwTraceProvider|Add-InitiatorIdToMaskingSet|Add-MpPreference|Add-MpPreference|Add-NetEventNetworkAdapter|Add-NetEventPacketCaptureProvider|Add-NetEventProvider|Add-NetEventVFPProvider|Add-NetEventVmNetworkAdapter|Add-NetEventVmSwitch|Add-NetEventVmSwitchProvider|Add-NetEventWFPCaptureProvider|Add-NetIPHttpsCertBinding|Add-NetLbfoTeamMember|Add-NetLbfoTeamNic|Add-NetNatExternalAddress|Add-NetNatStaticMapping|Add-NetSwitchTeamMember|Add-OdbcDsn|Add-PartitionAccessPath|Add-PhysicalDisk|Add-PoshGitToProfile|Add-Printer|Add-PrinterDriver|Add-PrinterPort|Add-SshKey|Add-StorageFaultDomain|Add-TargetPortToMaskingSet|Add-VirtualDiskToMaskingSet|Add-VpnConnection|Add-VpnConnectionRoute|Add-VpnConnectionTriggerApplication|Add-VpnConnectionTriggerDnsConfiguration|Add-VpnConnectionTriggerTrustedNetwork|AfterAll|AfterEach|Assert-MockCalled|Assert-VerifiableMocks|B:|Backup-BitLockerKeyProtector|BackupToAAD-BitLockerKeyProtector|BeforeAll|BeforeEach|Block-FileShareAccess|Block-SmbShareAccess|C:|cd..|cd\|Clear-BitLockerAutoUnlock|Clear-Disk|Clear-DnsClientCache|Clear-FileStorageTier|Clear-Host|Clear-PcsvDeviceLog|Clear-StorageBusDisk|Clear-StorageDiagnosticInfo|Close-SmbOpenFile|Close-SmbSession|Compress-Archive|Configuration|Connect-IscsiTarget|Connect-VirtualDisk|Context|ConvertFrom-SddlString|Copy-NetFirewallRule|Copy-NetIPsecMainModeCryptoSet|Copy-NetIPsecMainModeRule|Copy-NetIPsecPhase1AuthSet|Copy-NetIPsecPhase2AuthSet|Copy-NetIPsecQuickModeCryptoSet|Copy-NetIPsecRule|D:|Debug-FileShare|Debug-MMAppPrelaunch|Debug-StorageSubSystem|Debug-Volume|Describe|Disable-BitLocker|Disable-BitLockerAutoUnlock|Disable-DAManualEntryPointSelection|Disable-DeliveryOptimizationVerboseLogs|Disable-DscDebug|Disable-MMAgent|Disable-NetAdapter|Disable-NetAdapterBinding|Disable-NetAdapterChecksumOffload|Disable-NetAdapterEncapsulatedPacketTaskOffload|Disable-NetAdapterIPsecOffload|Disable-NetAdapterLso|Disable-NetAdapterPacketDirect|Disable-NetAdapterPowerManagement|Disable-NetAdapterQos|Disable-NetAdapterRdma|Disable-NetAdapterRsc|Disable-NetAdapterRss|Disable-NetAdapterSriov|Disable-NetAdapterUso|Disable-NetAdapterVmq|Disable-NetDnsTransitionConfiguration|Disable-NetFirewallRule|Disable-NetIPHttpsProfile|Disable-NetIPsecMainModeRule|Disable-NetIPsecRule|Disable-NetNatTransitionConfiguration|Disable-NetworkSwitchEthernetPort|Disable-NetworkSwitchFeature|Disable-NetworkSwitchVlan|Disable-OdbcPerfCounter|Disable-PhysicalDiskIdentification|Disable-PnpDevice|Disable-PSTrace|Disable-PSWSManCombinedTrace|Disable-ScheduledTask|Disable-SmbDelegation|Disable-StorageBusCache|Disable-StorageBusDisk|Disable-StorageEnclosureIdentification|Disable-StorageEnclosurePower|Disable-StorageHighAvailability|Disable-StorageMaintenanceMode|Disable-WdacBidTrace|Disable-WSManTrace|Disconnect-IscsiTarget|Disconnect-VirtualDisk|Dismount-DiskImage|E:|Enable-BitLocker|Enable-BitLockerAutoUnlock|Enable-DAManualEntryPointSelection|Enable-DeliveryOptimizationVerboseLogs|Enable-DscDebug|Enable-GitColors|Enable-MMAgent|Enable-NetAdapter|Enable-NetAdapterBinding|Enable-NetAdapterChecksumOffload|Enable-NetAdapterEncapsulatedPacketTaskOffload|Enable-NetAdapterIPsecOffload|Enable-NetAdapterLso|Enable-NetAdapterPacketDirect|Enable-NetAdapterPowerManagement|Enable-NetAdapterQos|Enable-NetAdapterRdma|Enable-NetAdapterRsc|Enable-NetAdapterRss|Enable-NetAdapterSriov|Enable-NetAdapterUso|Enable-NetAdapterVmq|Enable-NetDnsTransitionConfiguration|Enable-NetFirewallRule|Enable-NetIPHttpsProfile|Enable-NetIPsecMainModeRule|Enable-NetIPsecRule|Enable-NetNatTransitionConfiguration|Enable-NetworkSwitchEthernetPort|Enable-NetworkSwitchFeature|Enable-NetworkSwitchVlan|Enable-OdbcPerfCounter|Enable-PhysicalDiskIdentification|Enable-PnpDevice|Enable-PSTrace|Enable-PSWSManCombinedTrace|Enable-ScheduledTask|Enable-SmbDelegation|Enable-StorageBusCache|Enable-StorageBusDisk|Enable-StorageEnclosureIdentification|Enable-StorageEnclosurePower|Enable-StorageHighAvailability|Enable-StorageMaintenanceMode|Enable-WdacBidTrace|Enable-WSManTrace|Expand-Archive|Expand-GitCommand|Export-ODataEndpointProxy|Export-ScheduledTask|F:|Find-Command|Find-Command|Find-Command|Find-DSCResource|Find-DSCResource|Find-DscResource|Find-Module|Find-Module|Find-Module|Find-NetIPsecRule|Find-NetRoute|Find-RoleCapability|Find-RoleCapability|Find-RoleCapability|Find-Script|Find-Script|Find-Script|Flush-EtwTraceSession|Format-Hex|Format-Volume|G:|Get-AliasPattern|Get-AppBackgroundTask|Get-AppxLastError|Get-AppxLog|Get-AutologgerConfig|Get-BitLockerVolume|Get-ClusteredScheduledTask|Get-ComputerName|Get-CredsFromCredentialProvider|Get-CredsFromCredentialProvider|Get-DAClientExperienceConfiguration|Get-DAConnectionStatus|Get-DAEntryPointTableItem|Get-DedupProperties|Get-DeliveryOptimizationPerfSnap|Get-DeliveryOptimizationPerfSnapThisMonth|Get-DeliveryOptimizationStatus|Get-Disk|Get-DiskImage|Get-DiskStorageNodeView|Get-DnsClient|Get-DnsClientCache|Get-DnsClientGlobalSetting|Get-DnsClientNrptGlobal|Get-DnsClientNrptPolicy|Get-DnsClientNrptRule|Get-DnsClientServerAddress|Get-DOConfig|Get-DODownloadMode|Get-DOPercentageMaxBackgroundBandwidth|Get-DOPercentageMaxForegroundBandwidth|Get-DscConfiguration|Get-DscConfigurationStatus|Get-DscLocalConfigurationManager|Get-DscResource|Get-Dtc|Get-DtcAdvancedHostSetting|Get-DtcAdvancedSetting|Get-DtcClusterDefault|Get-DtcClusterTMMapping|Get-DtcDefault|Get-DtcLog|Get-DtcNetworkSetting|Get-DtcTransaction|Get-DtcTransactionsStatistics|Get-DtcTransactionsTraceSession|Get-DtcTransactionsTraceSetting|Get-EtwTraceProvider|Get-EtwTraceSession|Get-FileHash|Get-FileIntegrity|Get-FileShare|Get-FileShareAccessControlEntry|Get-FileStorageTier|Get-FormattedRootLocation|Get-FullPath|Get-GitBranch|Get-GitDirectory|Get-GitStatus|Get-HnsEndpoint|Get-HnsNamespace|Get-HnsNetwork|Get-HnsPolicyList|Get-InitiatorId|Get-InitiatorPort|Get-InstalledModule|Get-InstalledModule|Get-InstalledModule|Get-InstalledScript|Get-InstalledScript|Get-InstalledScript|Get-IscsiConnection|Get-IscsiSession|Get-IscsiTarget|Get-IscsiTargetPortal|Get-IseSnippet|Get-LogProperties|Get-MaskingSet|Get-MMAgent|Get-MockDynamicParameters|Get-MpComputerStatus|Get-MpComputerStatus|Get-MpPreference|Get-MpPreference|Get-MpThreat|Get-MpThreat|Get-MpThreatCatalog|Get-MpThreatCatalog|Get-MpThreatDetection|Get-MpThreatDetection|Get-NCSIPolicyConfiguration|Get-Net6to4Configuration|Get-NetAdapter|Get-NetAdapterAdvancedProperty|Get-NetAdapterBinding|Get-NetAdapterChecksumOffload|Get-NetAdapterEncapsulatedPacketTaskOffload|Get-NetAdapterHardwareInfo|Get-NetAdapterIPsecOffload|Get-NetAdapterLso|Get-NetAdapterPacketDirect|Get-NetAdapterPowerManagement|Get-NetAdapterQos|Get-NetAdapterRdma|Get-NetAdapterRsc|Get-NetAdapterRss|Get-NetAdapterSriov|Get-NetAdapterSriovVf|Get-NetAdapterStatistics|Get-NetAdapterUso|Get-NetAdapterVmq|Get-NetAdapterVMQQueue|Get-NetAdapterVPort|Get-NetCompartment|Get-NetConnectionProfile|Get-NetDnsTransitionConfiguration|Get-NetDnsTransitionMonitoring|Get-NetEventNetworkAdapter|Get-NetEventPacketCaptureProvider|Get-NetEventProvider|Get-NetEventSession|Get-NetEventVFPProvider|Get-NetEventVmNetworkAdapter|Get-NetEventVmSwitch|Get-NetEventVmSwitchProvider|Get-NetEventWFPCaptureProvider|Get-NetFirewallAddressFilter|Get-NetFirewallApplicationFilter|Get-NetFirewallInterfaceFilter|Get-NetFirewallInterfaceTypeFilter|Get-NetFirewallPortFilter|Get-NetFirewallProfile|Get-NetFirewallRule|Get-NetFirewallSecurityFilter|Get-NetFirewallServiceFilter|Get-NetFirewallSetting|Get-NetIPAddress|Get-NetIPConfiguration|Get-NetIPHttpsConfiguration|Get-NetIPHttpsState|Get-NetIPInterface|Get-NetIPsecDospSetting|Get-NetIPsecMainModeCryptoSet|Get-NetIPsecMainModeRule|Get-NetIPsecMainModeSA|Get-NetIPsecPhase1AuthSet|Get-NetIPsecPhase2AuthSet|Get-NetIPsecQuickModeCryptoSet|Get-NetIPsecQuickModeSA|Get-NetIPsecRule|Get-NetIPv4Protocol|Get-NetIPv6Protocol|Get-NetIsatapConfiguration|Get-NetLbfoTeam|Get-NetLbfoTeamMember|Get-NetLbfoTeamNic|Get-NetNat|Get-NetNatExternalAddress|Get-NetNatGlobal|Get-NetNatSession|Get-NetNatStaticMapping|Get-NetNatTransitionConfiguration|Get-NetNatTransitionMonitoring|Get-NetNeighbor|Get-NetOffloadGlobalSetting|Get-NetPrefixPolicy|Get-NetQosPolicy|Get-NetRoute|Get-NetSwitchTeam|Get-NetSwitchTeamMember|Get-NetTCPConnection|Get-NetTCPSetting|Get-NetTeredoConfiguration|Get-NetTeredoState|Get-NetTransportFilter|Get-NetUDPEndpoint|Get-NetUDPSetting|Get-NetView|Get-NetworkSwitchEthernetPort|Get-NetworkSwitchFeature|Get-NetworkSwitchGlobalData|Get-NetworkSwitchVlan|Get-OdbcDriver|Get-OdbcDsn|Get-OdbcPerfCounter|Get-OffloadDataTransferSetting|Get-OperationValidation|Get-Partition|Get-PartitionSupportedSize|Get-PcsvDevice|Get-PcsvDeviceLog|Get-PhysicalDisk|Get-PhysicalDiskStorageNodeView|Get-PhysicalExtent|Get-PhysicalExtentAssociation|Get-PnpDevice|Get-PnpDeviceProperty|Get-PrintConfiguration|Get-Printer|Get-PrinterDriver|Get-PrinterPort|Get-PrinterProperty|Get-PrintJob|Get-PromptPath|Get-PSRepository|Get-PSRepository|Get-PSRepository|Get-ResiliencySetting|Get-ScheduledTask|Get-ScheduledTaskInfo|Get-ShortPath|Get-SmbBandWidthLimit|Get-SmbClientConfiguration|Get-SmbClientNetworkInterface|Get-SmbConnection|Get-SmbDelegation|Get-SmbGlobalMapping|Get-SmbMapping|Get-SmbMultichannelConnection|Get-SmbMultichannelConstraint|Get-SmbOpenFile|Get-SmbServerCertificateMapping|Get-SmbServerConfiguration|Get-SmbServerNetworkInterface|Get-SmbSession|Get-SmbShare|Get-SmbShareAccess|Get-SmbWitnessClient|Get-SshAgent|Get-SshPath|Get-StartApps|Get-StorageAdvancedProperty|Get-StorageBusBinding|Get-StorageBusDisk|Get-StorageChassis|Get-StorageDiagnosticInfo|Get-StorageEnclosure|Get-StorageEnclosureStorageNodeView|Get-StorageEnclosureVendorData|Get-StorageExtendedStatus|Get-StorageFaultDomain|Get-StorageFileServer|Get-StorageFirmwareInformation|Get-StorageHealthAction|Get-StorageHealthReport|Get-StorageHealthSetting|Get-StorageHistory|Get-StorageJob|Get-StorageNode|Get-StoragePool|Get-StorageProvider|Get-StorageRack|Get-StorageReliabilityCounter|Get-StorageScaleUnit|Get-StorageSetting|Get-StorageSite|Get-StorageSubSystem|Get-StorageTier|Get-StorageTierSupportedSize|Get-SupportedClusterSizes|Get-SupportedFileSystems|Get-TargetPort|Get-TargetPortal|Get-TestDriveItem|Get-Theme|Get-ThemesLocation|Get-VcsInfo|Get-VCSStatus|Get-Verb|Get-VirtualDisk|Get-VirtualDiskSupportedSize|Get-VirtualEnvName|Get-Volume|Get-VolumeCorruptionCount|Get-VolumeScrubPolicy|Get-VpnConnection|Get-VpnConnectionTrigger|Get-WdacBidTrace|Get-WindowsUpdateLog|Get-WUAVersion|Get-WUIsPendingReboot|Get-WULastInstallationDate|Get-WULastScanSuccessDate|Grant-FileShareAccess|Grant-SmbShareAccess|H:|help|Hide-VirtualDisk|I:|Import-IseSnippet|Import-PowerShellDataFile|ImportSystemModules|In|Initialize-Disk|InModuleScope|Install-Dtc|Install-Module|Install-Module|Install-Module|Install-Script|Install-Script|Install-Script|Install-WUUpdates|Invoke-AsWorkflow|Invoke-Mock|Invoke-NullCoalescing|Invoke-OperationValidation|Invoke-Pester|It|J:|K:|L:|Lock-BitLocker|M:|mkdir|Mock|more|Mount-DiskImage|Move-SmbWitnessClient|N:|New-AutologgerConfig|New-DAEntryPointTableItem|New-DscChecksum|New-EapConfiguration|New-EtwTraceSession|New-FileShare|New-Fixture|New-Guid|New-IscsiTargetPortal|New-IseSnippet|New-MaskingSet|New-NetAdapterAdvancedProperty|New-NetEventSession|New-NetFirewallRule|New-NetIPAddress|New-NetIPHttpsConfiguration|New-NetIPsecDospSetting|New-NetIPsecMainModeCryptoSet|New-NetIPsecMainModeRule|New-NetIPsecPhase1AuthSet|New-NetIPsecPhase2AuthSet|New-NetIPsecQuickModeCryptoSet|New-NetIPsecRule|New-NetLbfoTeam|New-NetNat|New-NetNatTransitionConfiguration|New-NetNeighbor|New-NetQosPolicy|New-NetRoute|New-NetSwitchTeam|New-NetTransportFilter|New-NetworkSwitchVlan|New-Partition|New-PesterOption|New-PSWorkflowSession|New-ScheduledTask|New-ScheduledTaskAction|New-ScheduledTaskPrincipal|New-ScheduledTaskSettingsSet|New-ScheduledTaskTrigger|New-ScriptFileInfo|New-ScriptFileInfo|New-ScriptFileInfo|New-SmbGlobalMapping|New-SmbMapping|New-SmbMultichannelConstraint|New-SmbServerCertificateMapping|New-SmbShare|New-StorageBusBinding|New-StorageBusCacheStore|New-StorageFileServer|New-StoragePool|New-StorageSubsystemVirtualDisk|New-StorageTier|New-TemporaryFile|New-VirtualDisk|New-VirtualDiskClone|New-VirtualDiskSnapshot|New-Volume|New-VpnServerAddress|O:|Open-NetGPO|Optimize-StoragePool|Optimize-Volume|oss|Out-Default|P:|Pause|prompt|PSConsoleHostReadLine|Publish-Module|Publish-Module|Publish-Module|Publish-Script|Publish-Script|Publish-Script|Q:|R:|Read-PrinterNfcTag|Register-ClusteredScheduledTask|Register-DnsClient|Register-IscsiSession|Register-PSRepository|Register-PSRepository|Register-PSRepository|Register-ScheduledTask|Register-StorageSubsystem|Remove-AutologgerConfig|Remove-BitLockerKeyProtector|Remove-DAEntryPointTableItem|Remove-DnsClientNrptRule|Remove-DscConfigurationDocument|Remove-DtcClusterTMMapping|Remove-EtwTraceProvider|Remove-FileShare|Remove-HnsEndpoint|Remove-HnsNamespace|Remove-HnsNetwork|Remove-HnsPolicyList|Remove-InitiatorId|Remove-InitiatorIdFromMaskingSet|Remove-IscsiTargetPortal|Remove-MaskingSet|Remove-MpPreference|Remove-MpPreference|Remove-MpThreat|Remove-MpThreat|Remove-NetAdapterAdvancedProperty|Remove-NetEventNetworkAdapter|Remove-NetEventPacketCaptureProvider|Remove-NetEventProvider|Remove-NetEventSession|Remove-NetEventVFPProvider|Remove-NetEventVmNetworkAdapter|Remove-NetEventVmSwitch|Remove-NetEventVmSwitchProvider|Remove-NetEventWFPCaptureProvider|Remove-NetFirewallRule|Remove-NetIPAddress|Remove-NetIPHttpsCertBinding|Remove-NetIPHttpsConfiguration|Remove-NetIPsecDospSetting|Remove-NetIPsecMainModeCryptoSet|Remove-NetIPsecMainModeRule|Remove-NetIPsecMainModeSA|Remove-NetIPsecPhase1AuthSet|Remove-NetIPsecPhase2AuthSet|Remove-NetIPsecQuickModeCryptoSet|Remove-NetIPsecQuickModeSA|Remove-NetIPsecRule|Remove-NetLbfoTeam|Remove-NetLbfoTeamMember|Remove-NetLbfoTeamNic|Remove-NetNat|Remove-NetNatExternalAddress|Remove-NetNatStaticMapping|Remove-NetNatTransitionConfiguration|Remove-NetNeighbor|Remove-NetQosPolicy|Remove-NetRoute|Remove-NetSwitchTeam|Remove-NetSwitchTeamMember|Remove-NetTransportFilter|Remove-NetworkSwitchEthernetPortIPAddress|Remove-NetworkSwitchVlan|Remove-OdbcDsn|Remove-Partition|Remove-PartitionAccessPath|Remove-PhysicalDisk|Remove-Printer|Remove-PrinterDriver|Remove-PrinterPort|Remove-PrintJob|Remove-SmbBandwidthLimit|Remove-SmbGlobalMapping|Remove-SmbMapping|Remove-SmbMultichannelConstraint|Remove-SmbServerCertificateMapping|Remove-SmbShare|Remove-StorageBusBinding|Remove-StorageFaultDomain|Remove-StorageFileServer|Remove-StorageHealthIntent|Remove-StorageHealthSetting|Remove-StoragePool|Remove-StorageTier|Remove-TargetPortFromMaskingSet|Remove-VirtualDisk|Remove-VirtualDiskFromMaskingSet|Remove-VpnConnection|Remove-VpnConnectionRoute|Remove-VpnConnectionTriggerApplication|Remove-VpnConnectionTriggerDnsConfiguration|Remove-VpnConnectionTriggerTrustedNetwork|Rename-DAEntryPointTableItem|Rename-MaskingSet|Rename-NetAdapter|Rename-NetFirewallRule|Rename-NetIPHttpsConfiguration|Rename-NetIPsecMainModeCryptoSet|Rename-NetIPsecMainModeRule|Rename-NetIPsecPhase1AuthSet|Rename-NetIPsecPhase2AuthSet|Rename-NetIPsecQuickModeCryptoSet|Rename-NetIPsecRule|Rename-NetLbfoTeam|Rename-NetSwitchTeam|Rename-Printer|Repair-FileIntegrity|Repair-VirtualDisk|Repair-Volume|Reset-DAClientExperienceConfiguration|Reset-DAEntryPointTableItem|Reset-DtcLog|Reset-NCSIPolicyConfiguration|Reset-Net6to4Configuration|Reset-NetAdapterAdvancedProperty|Reset-NetDnsTransitionConfiguration|Reset-NetIPHttpsConfiguration|Reset-NetIsatapConfiguration|Reset-NetTeredoConfiguration|Reset-PhysicalDisk|Reset-StorageReliabilityCounter|Resize-Partition|Resize-StorageTier|Resize-VirtualDisk|Restart-NetAdapter|Restart-PcsvDevice|Restart-PrintJob|Restore-DscConfiguration|Restore-NetworkSwitchConfiguration|Resume-BitLocker|Resume-PrintJob|Resume-StorageBusDisk|Revoke-FileShareAccess|Revoke-SmbShareAccess|S:|SafeGetCommand|Save-EtwTraceSession|Save-Module|Save-Module|Save-Module|Save-NetGPO|Save-NetworkSwitchConfiguration|Save-Script|Save-Script|Save-Script|Send-EtwTraceSession|Set-ClusteredScheduledTask|Set-CursorForRightBlockWrite|Set-CursorUp|Set-DAClientExperienceConfiguration|Set-DAEntryPointTableItem|Set-Disk|Set-DnsClient|Set-DnsClientGlobalSetting|Set-DnsClientNrptGlobal|Set-DnsClientNrptRule|Set-DnsClientServerAddress|Set-DtcAdvancedHostSetting|Set-DtcAdvancedSetting|Set-DtcClusterDefault|Set-DtcClusterTMMapping|Set-DtcDefault|Set-DtcLog|Set-DtcNetworkSetting|Set-DtcTransaction|Set-DtcTransactionsTraceSession|Set-DtcTransactionsTraceSetting|Set-DynamicParameterVariables|Set-EtwTraceProvider|Set-FileIntegrity|Set-FileShare|Set-FileStorageTier|Set-InitiatorPort|Set-IscsiChapSecret|Set-LogProperties|Set-MMAgent|Set-MpPreference|Set-MpPreference|Set-NCSIPolicyConfiguration|Set-Net6to4Configuration|Set-NetAdapter|Set-NetAdapterAdvancedProperty|Set-NetAdapterBinding|Set-NetAdapterChecksumOffload|Set-NetAdapterEncapsulatedPacketTaskOffload|Set-NetAdapterIPsecOffload|Set-NetAdapterLso|Set-NetAdapterPacketDirect|Set-NetAdapterPowerManagement|Set-NetAdapterQos|Set-NetAdapterRdma|Set-NetAdapterRsc|Set-NetAdapterRss|Set-NetAdapterSriov|Set-NetAdapterUso|Set-NetAdapterVmq|Set-NetConnectionProfile|Set-NetDnsTransitionConfiguration|Set-NetEventPacketCaptureProvider|Set-NetEventProvider|Set-NetEventSession|Set-NetEventVFPProvider|Set-NetEventVmSwitchProvider|Set-NetEventWFPCaptureProvider|Set-NetFirewallAddressFilter|Set-NetFirewallApplicationFilter|Set-NetFirewallInterfaceFilter|Set-NetFirewallInterfaceTypeFilter|Set-NetFirewallPortFilter|Set-NetFirewallProfile|Set-NetFirewallRule|Set-NetFirewallSecurityFilter|Set-NetFirewallServiceFilter|Set-NetFirewallSetting|Set-NetIPAddress|Set-NetIPHttpsConfiguration|Set-NetIPInterface|Set-NetIPsecDospSetting|Set-NetIPsecMainModeCryptoSet|Set-NetIPsecMainModeRule|Set-NetIPsecPhase1AuthSet|Set-NetIPsecPhase2AuthSet|Set-NetIPsecQuickModeCryptoSet|Set-NetIPsecRule|Set-NetIPv4Protocol|Set-NetIPv6Protocol|Set-NetIsatapConfiguration|Set-NetLbfoTeam|Set-NetLbfoTeamMember|Set-NetLbfoTeamNic|Set-NetNat|Set-NetNatGlobal|Set-NetNatTransitionConfiguration|Set-NetNeighbor|Set-NetOffloadGlobalSetting|Set-NetQosPolicy|Set-NetRoute|Set-NetTCPSetting|Set-NetTeredoConfiguration|Set-NetUDPSetting|Set-NetworkSwitchEthernetPortIPAddress|Set-NetworkSwitchPortMode|Set-NetworkSwitchPortProperty|Set-NetworkSwitchVlanProperty|Set-Newline|Set-OdbcDriver|Set-OdbcDsn|Set-Partition|Set-PcsvDeviceBootConfiguration|Set-PcsvDeviceNetworkConfiguration|Set-PcsvDeviceUserPassword|Set-PhysicalDisk|Set-PrintConfiguration|Set-Printer|Set-PrinterProperty|Set-Prompt|Set-PSRepository|Set-PSRepository|Set-PSRepository|Set-ResiliencySetting|Set-ScheduledTask|Set-SmbBandwidthLimit|Set-SmbClientConfiguration|Set-SmbPathAcl|Set-SmbServerConfiguration|Set-SmbShare|Set-StorageBusProfile|Set-StorageFileServer|Set-StorageHealthSetting|Set-StoragePool|Set-StorageProvider|Set-StorageSetting|Set-StorageSubSystem|Set-StorageTier|Set-TestInconclusive|Set-Theme|Setup|Set-VirtualDisk|Set-Volume|Set-VolumeScrubPolicy|Set-VpnConnection|Set-VpnConnectionIPsecConfiguration|Set-VpnConnectionProxy|Set-VpnConnectionTriggerDnsConfiguration|Set-VpnConnectionTriggerTrustedNetwork|Should|Show-Colors|Show-NetFirewallRule|Show-NetIPsecRule|Show-StorageHistory|Show-ThemeColors|Show-ThemeSymbols|Show-VirtualDisk|Start-AppBackgroundTask|Start-AutologgerConfig|Start-Dtc|Start-DtcTransactionsTraceSession|Start-EtwTraceSession|Start-MpScan|Start-MpScan|Start-MpWDOScan|Start-MpWDOScan|Start-NetEventSession|Start-PcsvDevice|Start-ScheduledTask|Start-SshAgent|Start-StorageDiagnosticLog|Start-Trace|Start-WUScan|Stop-DscConfiguration|Stop-Dtc|Stop-DtcTransactionsTraceSession|Stop-EtwTraceSession|Stop-NetEventSession|Stop-PcsvDevice|Stop-ScheduledTask|Stop-SshAgent|Stop-StorageDiagnosticLog|Stop-StorageJob|Stop-Trace|Suspend-BitLocker|Suspend-PrintJob|Suspend-StorageBusDisk|Sync-NetIPsecRule|T:|TabExpansion|TabExpansion2|Test-Administrator|Test-Dtc|Test-NetConnection|Test-NotDefaultUser|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-ScriptFileInfo|Test-VirtualEnv|tgit|U:|Unblock-FileShareAccess|Unblock-SmbShareAccess|Uninstall-Dtc|Uninstall-Module|Uninstall-Module|Uninstall-Module|Uninstall-Script|Uninstall-Script|Uninstall-Script|Unlock-BitLocker|Unregister-AppBackgroundTask|Unregister-ClusteredScheduledTask|Unregister-IscsiSession|Unregister-PSRepository|Unregister-PSRepository|Unregister-PSRepository|Unregister-ScheduledTask|Unregister-StorageSubsystem|Update-AllBranches|Update-AutologgerConfig|Update-Disk|Update-DscConfiguration|Update-EtwTraceSession|Update-HostStorageCache|Update-IscsiTarget|Update-IscsiTargetPortal|Update-Module|Update-Module|Update-Module|Update-ModuleManifest|Update-ModuleManifest|Update-ModuleManifest|Update-MpSignature|Update-MpSignature|Update-NetIPsecRule|Update-Script|Update-Script|Update-Script|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-ScriptFileInfo|Update-SmbMultichannelConnection|Update-StorageFirmware|Update-StoragePool|Update-StorageProviderCache|V:|vimdiff|W:|Write-ColorPreview|Write-DtcTransactionsTraceSession|Write-GitStatus|Write-PrinterNfcTag|Write-Prompt|Write-VcsStatus|Write-VolumeCache|Write-WithPrompt|X:|Y:|Z:|Add-AppxPackage|Add-AppxProvisionedPackage|Add-AppxVolume|Add-BitsFile|Add-CertificateEnrollmentPolicyServer|Add-Computer|Add-Content|Add-History|Add-JobTrigger|Add-KdsRootKey|Add-LocalGroupMember|Add-Member|Add-PSSnapin|Add-Type|Add-WindowsCapability|Add-WindowsDriver|Add-WindowsImage|Add-WindowsPackage|Checkpoint-Computer|Clear-Content|Clear-EventLog|Clear-History|Clear-Item|Clear-ItemProperty|Clear-KdsCache|Clear-RecycleBin|Clear-Tpm|Clear-Variable|Clear-WindowsCorruptMountPoint|Compare-Object|Complete-BitsTransfer|Complete-DtcDiagnosticTransaction|Complete-Transaction|Confirm-SecureBootUEFI|Connect-PSSession|Connect-WSMan|ConvertFrom-Csv|ConvertFrom-Json|ConvertFrom-SecureString|ConvertFrom-String|ConvertFrom-StringData|Convert-Path|Convert-String|ConvertTo-Csv|ConvertTo-Html|ConvertTo-Json|ConvertTo-ProcessMitigationPolicy|ConvertTo-SecureString|ConvertTo-TpmOwnerAuth|ConvertTo-Xml|Copy-Item|Copy-ItemProperty|Debug-Job|Debug-Process|Debug-Runspace|Delete-DeliveryOptimizationCache|Disable-AppBackgroundTaskDiagnosticLog|Disable-ComputerRestore|Disable-JobTrigger|Disable-LocalUser|Disable-PSBreakpoint|Disable-PSRemoting|Disable-PSSessionConfiguration|Disable-RunspaceDebug|Disable-ScheduledJob|Disable-TlsCipherSuite|Disable-TlsEccCurve|Disable-TlsSessionTicketKey|Disable-TpmAutoProvisioning|Disable-WindowsErrorReporting|Disable-WindowsOptionalFeature|Disable-WSManCredSSP|Disconnect-PSSession|Disconnect-WSMan|Dismount-AppxVolume|Dismount-WindowsImage|Enable-AppBackgroundTaskDiagnosticLog|Enable-ComputerRestore|Enable-JobTrigger|Enable-LocalUser|Enable-PSBreakpoint|Enable-PSRemoting|Enable-PSSessionConfiguration|Enable-RunspaceDebug|Enable-ScheduledJob|Enable-TlsCipherSuite|Enable-TlsEccCurve|Enable-TlsSessionTicketKey|Enable-TpmAutoProvisioning|Enable-WindowsErrorReporting|Enable-WindowsOptionalFeature|Enable-WSManCredSSP|Enter-PSHostProcess|Enter-PSSession|Exit-PSHostProcess|Exit-PSSession|Expand-WindowsCustomDataImage|Expand-WindowsImage|Export-Alias|Export-BinaryMiLog|Export-Certificate|Export-Clixml|Export-Console|Export-Counter|Export-Csv|Export-FormatData|Export-ModuleMember|Export-PfxCertificate|Export-ProvisioningPackage|Export-PSSession|Export-StartLayout|Export-StartLayoutEdgeAssets|Export-TlsSessionTicketKey|Export-Trace|Export-WindowsCapabilitySource|Export-WindowsDriver|Export-WindowsImage|Find-Package|Find-PackageProvider|ForEach-Object|Format-Custom|Format-List|Format-SecureBootUEFI|Format-Table|Format-Wide|Get-Acl|Get-Alias|Get-AppxDefaultVolume|Get-AppxPackage|Get-AppxPackageManifest|Get-AppxProvisionedPackage|Get-AppxVolume|Get-AuthenticodeSignature|Get-BitsTransfer|Get-Certificate|Get-CertificateAutoEnrollmentPolicy|Get-CertificateEnrollmentPolicyServer|Get-CertificateNotificationTask|Get-ChildItem|Get-CimAssociatedInstance|Get-CimClass|Get-CimInstance|Get-CimSession|Get-Clipboard|Get-CmsMessage|Get-Command|Get-ComputerInfo|Get-ComputerRestorePoint|Get-Content|Get-ControlPanelItem|Get-Counter|Get-Credential|Get-Culture|Get-DAPolicyChange|Get-Date|Get-DeliveryOptimizationLog|Get-DeliveryOptimizationLogAnalysis|Get-Event|Get-EventLog|Get-EventSubscriber|Get-ExecutionPolicy|Get-FormatData|Get-Help|Get-History|Get-Host|Get-HotFix|Get-Item|Get-ItemProperty|Get-ItemPropertyValue|Get-Job|Get-JobTrigger|Get-KdsConfiguration|Get-KdsRootKey|Get-LocalGroup|Get-LocalGroupMember|Get-LocalUser|Get-Location|Get-Member|Get-Module|Get-NonRemovableAppsPolicy|Get-Package|Get-PackageProvider|Get-PackageSource|Get-PfxCertificate|Get-PfxData|Get-PmemDisk|Get-PmemPhysicalDevice|Get-PmemUnusedRegion|Get-Process|Get-ProcessMitigation|Get-ProvisioningPackage|Get-PSBreakpoint|Get-PSCallStack|Get-PSDrive|Get-PSHostProcessInfo|Get-PSProvider|Get-PSReadLineKeyHandler|Get-PSReadLineOption|Get-PSSession|Get-PSSessionCapability|Get-PSSessionConfiguration|Get-PSSnapin|Get-Random|Get-Runspace|Get-RunspaceDebug|Get-ScheduledJob|Get-ScheduledJobOption|Get-SecureBootPolicy|Get-SecureBootUEFI|Get-Service|Get-TimeZone|Get-TlsCipherSuite|Get-TlsEccCurve|Get-Tpm|Get-TpmEndorsementKeyInfo|Get-TpmSupportedFeature|Get-TraceSource|Get-Transaction|Get-TroubleshootingPack|Get-TrustedProvisioningCertificate|Get-TypeData|Get-UICulture|Get-Unique|Get-Variable|Get-WheaMemoryPolicy|Get-WIMBootEntry|Get-WinAcceptLanguageFromLanguageListOptOut|Get-WinCultureFromLanguageListOptOut|Get-WinDefaultInputMethodOverride|Get-WindowsCapability|Get-WindowsDeveloperLicense|Get-WindowsDriver|Get-WindowsEdition|Get-WindowsErrorReporting|Get-WindowsImage|Get-WindowsImageContent|Get-WindowsOptionalFeature|Get-WindowsPackage|Get-WindowsReservedStorageState|Get-WindowsSearchSetting|Get-WinEvent|Get-WinHomeLocation|Get-WinLanguageBarOption|Get-WinSystemLocale|Get-WinUILanguageOverride|Get-WinUserLanguageList|Get-WmiObject|Get-WSManCredSSP|Get-WSManInstance|Group-Object|Import-Alias|Import-BinaryMiLog|Import-Certificate|Import-Clixml|Import-Counter|Import-Csv|Import-LocalizedData|Import-Module|Import-PackageProvider|Import-PfxCertificate|Import-PSSession|Import-StartLayout|Import-TpmOwnerAuth|Initialize-PmemPhysicalDevice|Initialize-Tpm|Install-Package|Install-PackageProvider|Install-ProvisioningPackage|Install-TrustedProvisioningCertificate|Invoke-CimMethod|Invoke-Command|Invoke-CommandInDesktopPackage|Invoke-DscResource|Invoke-Expression|Invoke-History|Invoke-Item|Invoke-RestMethod|Invoke-TroubleshootingPack|Invoke-WebRequest|Invoke-WmiMethod|Invoke-WSManAction|Join-DtcDiagnosticResourceManager|Join-Path|Limit-EventLog|Measure-Command|Measure-Object|Mount-AppxVolume|Mount-WindowsImage|Move-AppxPackage|Move-Item|Move-ItemProperty|New-Alias|New-CertificateNotificationTask|New-CimInstance|New-CimSession|New-CimSessionOption|New-DtcDiagnosticTransaction|New-Event|New-EventLog|New-FileCatalog|New-Item|New-ItemProperty|New-JobTrigger|New-LocalGroup|New-LocalUser|New-Module|New-ModuleManifest|New-NetIPsecAuthProposal|New-NetIPsecMainModeCryptoProposal|New-NetIPsecQuickModeCryptoProposal|New-Object|New-PmemDisk|New-ProvisioningRepro|New-PSDrive|New-PSRoleCapabilityFile|New-PSSession|New-PSSessionConfigurationFile|New-PSSessionOption|New-PSTransportOption|New-PSWorkflowExecutionOption|New-ScheduledJobOption|New-SelfSignedCertificate|New-Service|New-TimeSpan|New-TlsSessionTicketKey|New-Variable|New-WebServiceProxy|New-WindowsCustomImage|New-WindowsImage|New-WinEvent|New-WinUserLanguageList|New-WSManInstance|New-WSManSessionOption|Optimize-AppxProvisionedPackages|Optimize-WindowsImage|Out-Default|Out-File|Out-GridView|Out-Host|Out-Null|Out-Printer|Out-String|Pop-Location|Protect-CmsMessage|Publish-DscConfiguration|Push-Location|Read-Host|Receive-DtcDiagnosticTransaction|Receive-Job|Receive-PSSession|Register-ArgumentCompleter|Register-CimIndicationEvent|Register-EngineEvent|Register-ObjectEvent|Register-PackageSource|Register-PSSessionConfiguration|Register-ScheduledJob|Register-WmiEvent|Remove-AppxPackage|Remove-AppxProvisionedPackage|Remove-AppxVolume|Remove-BitsTransfer|Remove-CertificateEnrollmentPolicyServer|Remove-CertificateNotificationTask|Remove-CimInstance|Remove-CimSession|Remove-Computer|Remove-Event|Remove-EventLog|Remove-Item|Remove-ItemProperty|Remove-Job|Remove-JobTrigger|Remove-LocalGroup|Remove-LocalGroupMember|Remove-LocalUser|Remove-Module|Remove-PmemDisk|Remove-PSBreakpoint|Remove-PSDrive|Remove-PSReadLineKeyHandler|Remove-PSSession|Remove-PSSnapin|Remove-TypeData|Remove-Variable|Remove-WindowsCapability|Remove-WindowsDriver|Remove-WindowsImage|Remove-WindowsPackage|Remove-WmiObject|Remove-WSManInstance|Rename-Computer|Rename-Item|Rename-ItemProperty|Rename-LocalGroup|Rename-LocalUser|Repair-WindowsImage|Reset-ComputerMachinePassword|Resolve-DnsName|Resolve-Path|Restart-Computer|Restart-Service|Restore-Computer|Resume-BitsTransfer|Resume-Job|Resume-ProvisioningSession|Resume-Service|Save-Help|Save-Package|Save-WindowsImage|Select-Object|Select-String|Select-Xml|Send-DtcDiagnosticTransaction|Send-MailMessage|Set-Acl|Set-Alias|Set-AppBackgroundTaskResourcePolicy|Set-AppxDefaultVolume|Set-AppXProvisionedDataFile|Set-AuthenticodeSignature|Set-BitsTransfer|Set-CertificateAutoEnrollmentPolicy|Set-CimInstance|Set-Clipboard|Set-Content|Set-Culture|Set-Date|Set-DeliveryOptimizationStatus|Set-DODownloadMode|Set-DOPercentageMaxBackgroundBandwidth|Set-DOPercentageMaxForegroundBandwidth|Set-DscLocalConfigurationManager|Set-ExecutionPolicy|Set-Item|Set-ItemProperty|Set-JobTrigger|Set-KdsConfiguration|Set-LocalGroup|Set-LocalUser|Set-Location|Set-NonRemovableAppsPolicy|Set-PackageSource|Set-ProcessMitigation|Set-PSBreakpoint|Set-PSDebug|Set-PSReadLineKeyHandler|Set-PSReadLineOption|Set-PSSessionConfiguration|Set-ScheduledJob|Set-ScheduledJobOption|Set-SecureBootUEFI|Set-Service|Set-StrictMode|Set-TimeZone|Set-TpmOwnerAuth|Set-TraceSource|Set-Variable|Set-WheaMemoryPolicy|Set-WinAcceptLanguageFromLanguageListOptOut|Set-WinCultureFromLanguageListOptOut|Set-WinDefaultInputMethodOverride|Set-WindowsEdition|Set-WindowsProductKey|Set-WindowsReservedStorageState|Set-WindowsSearchSetting|Set-WinHomeLocation|Set-WinLanguageBarOption|Set-WinSystemLocale|Set-WinUILanguageOverride|Set-WinUserLanguageList|Set-WmiInstance|Set-WSManInstance|Set-WSManQuickConfig|Show-Command|Show-ControlPanelItem|Show-EventLog|Show-WindowsDeveloperLicenseRegistration|Sort-Object|Split-Path|Split-WindowsImage|Start-BitsTransfer|Start-DscConfiguration|Start-DtcDiagnosticResourceManager|Start-Job|Start-OSUninstall|Start-Process|Start-Service|Start-Sleep|Start-Transaction|Start-Transcript|Stop-Computer|Stop-DtcDiagnosticResourceManager|Stop-Job|Stop-Process|Stop-Service|Stop-Transcript|Suspend-BitsTransfer|Suspend-Job|Suspend-Service|Switch-Certificate|Tee-Object|Test-Certificate|Test-ComputerSecureChannel|Test-Connection|Test-DscConfiguration|Test-FileCatalog|Test-KdsRootKey|Test-ModuleManifest|Test-Path|Test-PSSessionConfigurationFile|Test-WSMan|Trace-Command|Unblock-File|Unblock-Tpm|Undo-DtcDiagnosticTransaction|Undo-Transaction|Uninstall-Package|Uninstall-ProvisioningPackage|Uninstall-TrustedProvisioningCertificate|Unprotect-CmsMessage|Unregister-Event|Unregister-PackageSource|Unregister-PSSessionConfiguration|Unregister-ScheduledJob|Unregister-WindowsDeveloperLicense|Update-DscConfiguration|Update-FormatData|Update-Help|Update-List|Update-TypeData|Update-WIMBootEntry|Use-Transaction|Use-WindowsUnattend|Wait-Debugger|Wait-Event|Wait-Job|Wait-Process|Where-Object|Write-Debug|Write-Error|Write-EventLog|Write-Host|Write-Information|Write-Output|Write-Progress|Write-Verbose|Write-Warning)\>" + +## Functions +icolor brightyellow "\" + +## Comparison operators +icolor brightyellow "-\<(eq|ne|gt|lt|ge|le|like|notlike|match|notmatch|contains|notcontains|in|notin|replace|is|isnot)\>" + +## Variables +icolor brightred "\$[a-zA-Z0-9_]+" + +## Statements +icolor brightcyan "\<(if|do|else|elseif|for|foreach|switch|until|while)\>" + +## Comments +color brightblue "#.*$" +color brightblue start="<#" end="#>" + +## Quoted text +color brightwhite "\"[^\"]*\"" +color brightwhite "'[^']*'" + +## Text between %'s and @'s +icolor brightmagenta "\%[^\%]*\%" +icolor brightmagenta start="@\"" end="\"@" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/properties.nanorc b/properties.nanorc new file mode 100644 index 0000000..bb75d45 --- /dev/null +++ b/properties.nanorc @@ -0,0 +1,6 @@ +syntax "properties" "\.properties$" +# property key +icolor green "^[^:=]+[:=]" + +# comments +icolor blue "([[:space:]])*[#!].*$" diff --git a/python.nanorc b/python.nanorc new file mode 100644 index 0000000..838f715 --- /dev/null +++ b/python.nanorc @@ -0,0 +1,58 @@ +## Python syntax highlighting rules for Nano + +syntax "python" "\.py$" +header "^#!.*/(env +)?python[-0-9._]*( |$)" +magic "Python script" +comment "#" + +linter pyflakes + +## 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 brightcyan "\<(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 green "\<(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 green "\<(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 green "def [a-zA-Z_0-9]+" +## keywords +color brightred "\<(and|as|from|import|not|or)\>" +color brightcyan "\<(assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|global|if|in|is|lambda|map|pass|raise|return|try|with|while|yield)\>" + +## decorators +color brightgreen "@[a-zA-Z_0-9]+" + +## operators +color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" + +## parentheses +color magenta "[(){}]" "\[" "\]" + +## 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 brightblue "^#.*|[[:space:]]#.*$" + +## block comments +color yellow start=""""([^"),]|$)" end="(^|[^(\])"""" +color yellow start="'''([^'),]|$)" end="(^|[^(\])'''" + +## trailing spaces +color ,green "[[:space:]]+$" + +## reminders +color brightwhite,yellow "\<(FIXME|TODO|XXX)\>" diff --git a/sh.nanorc b/sh.nanorc new file mode 100644 index 0000000..febc22c --- /dev/null +++ b/sh.nanorc @@ -0,0 +1,23 @@ +## 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 "#" + +linter dash -n + +## 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:]]+$" diff --git a/sourceslist.nanorc b/sourceslist.nanorc new file mode 100644 index 0000000..6679ce6 --- /dev/null +++ b/sourceslist.nanorc @@ -0,0 +1,16 @@ +## syntax highlighting for /etc/apt/sources.list +syntax "apt/sources.list" "sources\.list(\.old|~)?$" +# component +color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+ .+$" +# distribution +color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+" +# URI +color brightgreen "(http|file|ftp):/[^ ]+" +# cdroms +# [^\]] does not work… +color brightgreen "cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/" +# deb / deb-src +color cyan "^deb" +color brightblue "^deb-src" +# comments +color brightyellow "#.*" diff --git a/sql.nanorc b/sql.nanorc new file mode 100644 index 0000000..1ebd574 --- /dev/null +++ b/sql.nanorc @@ -0,0 +1,34 @@ +syntax "SQL" "\.sql$" "sqliterc$" + +icolor cyan "\<(ALL|ASC|AS|ALTER|AND|ADD|AUTO_INCREMENT)\>" +icolor cyan "\<(BETWEEN|BINARY|BOTH|BY|BOOLEAN)\>" +icolor cyan "\<(CHANGE|CHECK|COLUMNS|COLUMN|CROSS|CREATE)\>" +icolor cyan "\<(DATABASES|DATABASE|DATA|DELAYED|DESCRIBE|DESC|DISTINCT|DELETE|DROP|DEFAULT)\>" +icolor cyan "\<(ENCLOSED|ESCAPED|EXISTS|EXPLAIN)\>" +icolor cyan "\<(FIELDS|FIELD|FLUSH|FOR|FOREIGN|FUNCTION|FROM)\>" +icolor cyan "\<(GROUP|GRANT|HAVING)\>" +icolor cyan "\<(IGNORE|INDEX|INFILE|INSERT|INNER|INTO|IDENTIFIED|IN|IS|IF)\>" +icolor cyan "\<(JOIN|KEYS|KILL|KEY)\>" +icolor cyan "\<(LEADING|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCK|LOW_PRIORITY|LEFT|LANGUAGE)\>" +icolor cyan "\<(MODIFY|NATURAL|NOT|NULL|NEXTVAL)\>" +icolor cyan "\<(OPTIMIZE|OPTION|OPTIONALLY|ORDER|OUTFILE|OR|OUTER|ON)\>" +icolor cyan "\<(PROCEDURE|PROCEDURAL|PRIMARY)\>" +icolor cyan "\<(READ|REFERENCES|REGEXP|RENAME|REPLACE|RETURN|REVOKE|RLIKE|RIGHT)\>" +icolor cyan "\<(SHOW|SONAME|STATUS|STRAIGHT_JOIN|SELECT|SETVAL|SET)\>" +icolor cyan "\<(TABLES|TERMINATED|TO|TRAILING|TRUNCATE|TABLE|TEMPORARY|TRIGGER|TRUSTED)\>" +icolor cyan "\<(UNIQUE|UNLOCK|USE|USING|UPDATE|VALUES|VARIABLES|VIEW)\>" +icolor cyan "\<(WITH|WRITE|WHERE|ZEROFILL|TYPE|XOR)\>" +color green "\<(VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|INTEGER|BIGINT|FLOAT|DOUBLE|DECIMAL|DATETIME|TIMESTAMP|TIME|YEAR|UNSIGNED|CHAR|TINYBLOB|TINYTEXT|BLOB|MEDIUMBLOB|MEDIUMTEXT|LONGBLOB|LONGTEXT|ENUM|BOOL|BINARY|VARBINARY)\>" + +# SQLite meta commands +icolor cyan "\.\<(databases|dump|echo|exit|explain|header(s)?|help)\>" +icolor cyan "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>" +icolor cyan "\.\<(schema|separator|show|tables|timeout|width)\>" +color brightcyan "\<(ON|OFF)\>" + +color blue "\<([0-9]+)\>" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color yellow "`(\\.|[^\\`])*`" +color brightblack "\-\-.*$" +color ,green "[[:space:]]+$" +color ,red " + +| + +" diff --git a/systemd.nanorc b/systemd.nanorc new file mode 100644 index 0000000..0a2787a --- /dev/null +++ b/systemd.nanorc @@ -0,0 +1,12 @@ +syntax "Systemd" "\.(service|socket|timer)$" +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 " + +| + +" diff --git a/todo.nanorc b/todo.nanorc index 12f6871..1b05330 100644 --- a/todo.nanorc +++ b/todo.nanorc @@ -4,12 +4,13 @@ syntax "todo.txt" "todo\.txt|done\.txt|report\.txt|archive\.txt" # tasks icolor brightwhite ".*" -icolor magenta "^x" +icolor brightblack "^x.*$" # priorities -icolor brightblack "\([sS-zZ]\).*$" -icolor normal "\([lL-rR]\).*$" -icolor brightwhite "\([eE-kK]\).*$" +icolor brightblack "\([tT-zZ]\).*$" +icolor normal "\([mM-sS]\).*$" +icolor brightwhite "\([fF-lL]\).*$" +icolor cyan "\([eE]\).*$" icolor brightmagenta "\([dD]\).*$" icolor brightyellow "\([cC]\).*$" icolor brightcyan "\([bB]\).*$" @@ -26,4 +27,4 @@ icolor cyan "[0-9][0-9][0-9][0-9]-\S+" icolor brightcyan "(T)[0-9][0-9]\:\S+" # due date -icolor red "(pri:|due:)\S+" \ No newline at end of file +icolor red "(pri:|due:)\S+" diff --git a/toml.nanorc b/toml.nanorc new file mode 100644 index 0000000..2ffd5c1 --- /dev/null +++ b/toml.nanorc @@ -0,0 +1,16 @@ +# Supports `TOML` files +syntax "TOML" "\.toml$" + +## Multiline +icolor yellow start="\"\"\"" end="\"\"\"" +icolor yellow start="'''" end="'''" +icolor yellow start="\[" end="\]" + +## Values +icolor yellow "=.*" + +## Tables +icolor red "^\s*\[.*\]$" + +## Comments (keep at the end of this file!) +icolor cyan "#.*$" diff --git a/xml.nanorc b/xml.nanorc new file mode 100644 index 0000000..809a048 --- /dev/null +++ b/xml.nanorc @@ -0,0 +1,18 @@ +## Here is an example for xml files. +## + +syntax "XML" ".*\.([jrs]?html?|xml|sgml?|rng|vue|mei|musicxml)$" +header "<\?xml.*version=.*\?>" +magic "(XML|SGML) (sub)?document" +comment "" + +color white "^.+$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="" +color yellow start="" +color red "&[^;]*;" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/yaml.nanorc b/yaml.nanorc new file mode 100644 index 0000000..36c0b5b --- /dev/null +++ b/yaml.nanorc @@ -0,0 +1,36 @@ +# Supports `YAML` files +syntax "YAML" "\.ya?ml$" +header "^(---|===)" "%YAML" + +## Keys +color magenta "^\s*[\$A-Za-z0-9_-]+\:" +color brightmagenta "^\s*@[\$A-Za-z0-9_-]+\:" + +## Values +color white ":\s.+$" +## Booleans +icolor brightcyan " (y|yes|n|no|true|false|on|off)$" +## Numbers +color brightred " [[:digit:]]+(\.[[:digit:]]+)?" +## Arrays +color red "\[" "\]" ":\s+[|>]" "^\s*- " +## Reserved +color green "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " + +## Comments +color brightwhite "#.*$" + +## Errors +color ,red ":\w.+$" +color ,red ":'.+$" +color ,red ":".+$" +color ,red "\s+$" + +## Non closed quote +color ,red "['\"][^['\"]]*$" + +## Closed quotes +color yellow "['\"].*['\"]" + +## Equal sign +color brightgreen ":( |$)" diff --git a/zsh.nanorc b/zsh.nanorc new file mode 100644 index 0000000..4e77b36 --- /dev/null +++ b/zsh.nanorc @@ -0,0 +1,42 @@ +## Syntax highlighting for ZSH scripts (initially copied from sh.nanorc) +syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout|zsh-theme)$" +header "^#!.*/(env +)?zsh( |$)" + +## Numbers +color brightyellow "\b[0-9]+\b" + +## Conditionals and control flow +color green "\<(always|break|bye|case|continue|disown|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" + +color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +## Conditional flags +color green "-[Ldefgruwx]\>" +color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" + +## Bash-inherited +color brightblue "\<((un)?alias|bindkey|builtin|cd|command|declare|eval|exec|export|jobs|let|popd|pushd|set|source|typeset|umask|unset)\>" +## ZSH-specific +color brightblue "\<(add-zsh-hook|autoload|cdr|chdir|compinit|dirs|(dis|en)able|echotc|echoti|emulate|print|printf|prompt(init)?|(un)?setopt|zle|zmodload|zstyle|whence|zargs|zmv)\>" + +## Common linux commands +color brightmagenta "\<((g|ig)?awk|find|diff|\w{0,4}grep|kill|killall|\w{0,4}less|make|pkill|sed|sudo|tar)\>" + +## Coreutils commands +color brightmagenta "\<(base(32|64)|basename|cat|chcon|chgrp|chmod|chown|chroot|cksum|comm|cp|csplit|cut|date|dd|df|dir|dircolors|dirname|du|echo|env|expand|expr|factor|false|fmt|fold|head|hostid|id|install|join|link|ln|logname|ls|md5sum|mkdir|mkfifo|mknod|mktemp|mv|nice|nl|nohup|nproc|numfmt|od|paste|pathchk|pinky|pr|printenv|ptx|pwd|readlink|realpath|rm|rmdir|runcon|seq|(sha1|sha224|sha256|sha384|sha512)sum|shred|shuf|sleep|sort|split|stat|stdbuf|stty|sum|sync|tac|tail|tee|test|timeout|touch|tr|true|truncate|tsort|tty|uname|unexpand|uniq|unlink|users|vdir|wc|who|whoami|yes)\>" + +## Function definition +icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" + +## Variables +icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" + +## Strings +color yellow ""(\\.|[^"])*"" +color yellow "'(\\.|[^'])*'" + +## Comments +color cyan "(^|[[:space:]])#.*$" +color brightcyan "(^|[[:space:]])##.*$" + +## Trailing spaces +color ,green "[[:space:]]+$"