diff --git a/Dockerfile.nanorc b/Dockerfile.nanorc index 435b52c..63cb2eb 100644 --- a/Dockerfile.nanorc +++ b/Dockerfile.nanorc @@ -5,10 +5,10 @@ syntax "Dockerfile" "Dockerfile[^/]*$" "\.dockerfile$" icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]" ## Brackets & parenthesis -color brightgreen "(\(|\)|\[|\])" +color green "(\(|\)|\[|\])" ## Double ampersand -color brightmagenta "&&" +color magenta "&&" ## Comments icolor cyan "^[[:space:]]*#.*$" @@ -17,10 +17,10 @@ icolor cyan "^[[:space:]]*#.*$" color ,green "[[:space:]]+$" ## Strings, single-quoted -color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" +color white "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" ## Strings, double-quoted -color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" +color white ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" ## Single and double quotes -color brightyellow "('|\")" +color yellow "('|\")" diff --git a/apacheconf.nanorc b/apacheconf.nanorc index f1325e6..85c8a17 100644 --- a/apacheconf.nanorc +++ b/apacheconf.nanorc @@ -1,45 +1,45 @@ # Apache files syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess" 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 cyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)" +color cyan "(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)" +color cyan "(Allow|AllowCONNECT|AllowEncodedSlashes|AllowOverride|Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID)" +color cyan "(Anonymous_VerifyEmail|AssignUserID|AuthAuthoritative|AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm)" +color cyan "(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)" +color cyan "(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)" +color cyan "(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)" +color cyan "(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)" +color cyan "(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)" +color cyan "(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)" +color cyan "(CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckSpelling|ChildPerUserID|ContentDigest|CookieDomain|CookieExpires|CookieLog|CookieName)" +color cyan "(CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavLockDB|DavMinTimeout|DefaultIcon|DefaultLanguage|DefaultType)" +color cyan "(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)" +color cyan "(DocumentRoot|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|Example|ExpiresActive|ExpiresByType)" +color cyan "(ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FileETag|Files|FilesMatch|ForceLanguagePriority|ForceType|ForensicLog|Group|Header)" +color cyan "(HeaderName|HostnameLookups|IdentityCheck|IfDefine|IfModule|IfVersion|ImapBase|ImapDefault|ImapMenu|Include|IndexIgnore|IndexOptions|IndexOrderDefault)" +color cyan "(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)" +color cyan "(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)" +color cyan "(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)" +color cyan "(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)" +color cyan "(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)" +color cyan "(MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads)" +color cyan "(MMapFile|ModMimeUsePathInfo|MultiviewsMatch|NameVirtualHost|NoProxy|NumServers|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|PassEnv|PidFile)" +color cyan "(ProtocolEcho|Proxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyIOBufferSize|ProxyMatch|ProxyMaxForwards|ProxyPass|ProxyPassReverse)" +color cyan "(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)" +color cyan "(RedirectPermanent|RedirectTemp|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader)" +color cyan "(Require|RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule|RLimitCPU|RLimitMEM|RLimitNPROC)" +color cyan "(Satisfy|ScoreBoardFile|Script|ScriptAlias|ScriptAliasMatch|ScriptInterpreterSource|ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock|SecureListen)" +color cyan "(SendBufferSize|ServerAdmin|ServerAlias|ServerLimit|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetEnv|SetEnvIf|SetEnvIfNoCase|SetHandler)" +color cyan "(SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSLCACertificateFile|SSLCACertificatePath)" +color cyan "(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)" +color cyan "(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)" +color cyan "(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)" +color cyan "(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)" +color cyan "(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)" +color cyan "(VirtualDocumentRootIP|VirtualHost|VirtualScriptAlias|VirtualScriptAliasIP|Win32DisableAcceptEx|XBitHack)" color yellow "<[^>]+>" -color brightcyan ")" +color cyan ")" color green "\"(\\.|[^\"])*\"" color white "#.*" diff --git a/arduino.nanorc b/arduino.nanorc index 1c60033..815be21 100644 --- a/arduino.nanorc +++ b/arduino.nanorc @@ -29,7 +29,7 @@ syntax "INO" "\.?ino$" ## -color brightred "\<[A-Z_][0-9A-Z_]+\>" +color red "\<[A-Z_][0-9A-Z_]+\>" ## color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>" @@ -58,44 +58,44 @@ icolor green "\<(DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\>" color green "\<(boolean|byte|char|float|int|long|word)\>" ## Control Structions -color brightyellow "\<(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\>" +color yellow "\<(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\>" color magenta "\<(goto|continue|break|return)\>" ## Math -color brightyellow "\<(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\>" +color yellow "\<(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\>" ## Bits & Bytes -color brightyellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>" +color yellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>" ## Analog I/O -color brightyellow "\<(analogReference|analogRead|analogWrite)\>" +color yellow "\<(analogReference|analogRead|analogWrite)\>" ## External Interrupts -color brightyellow "\<(attachInterrupt|detachInterrupt)\>" +color yellow "\<(attachInterrupt|detachInterrupt)\>" ## Time -color brightyellow "\<(delay|delayMicroseconds|millis|micros)\>" +color yellow "\<(delay|delayMicroseconds|millis|micros)\>" ## Digital I/O -color brightyellow "\<(pinMode|digitalWrite|digitalRead)\>" +color yellow "\<(pinMode|digitalWrite|digitalRead)\>" ## Interrupts -color brightyellow "\<(interrupts|noInterrupts)\>" +color yellow "\<(interrupts|noInterrupts)\>" ## Advanced I/O -color brightyellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>" +color yellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>" ## Serial color magenta "\<(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\>" ## Structure -color brightyellow "\<(setup|loop)\>" +color yellow "\<(setup|loop)\>" ## -color brightcyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" +color cyan "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)" ## -color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +color magenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" ## GCC builtins color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" @@ -103,14 +103,14 @@ color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidd ## 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 brightyellow "<[^= ]*>" ""(\\.|[^"])*"" +color yellow "<[^= ]*>" ""(\\.|[^"])*"" ## This string is VERY resource intensive! -color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comments -color brightblue "//.*" -color brightblue start="/\*" end="\*/" +color blue "//.*" +color blue start="/\*" end="\*/" ## Trailing whitespace color ,green "[[:space:]]+$" diff --git a/asciidoc.nanorc b/asciidoc.nanorc index b16a74e..482fd47 100644 --- a/asciidoc.nanorc +++ b/asciidoc.nanorc @@ -12,12 +12,12 @@ color magenta "^~~~~+$" color green "^====[[:space:]].*$" color green "^\^\^\^\^+$" # h5 -color brightblue "^=====[[:space:]].*$" -color brightblue "^\+\+\+\++$" +color blue "^=====[[:space:]].*$" +color blue "^\+\+\+\++$" # attributes -color brightgreen ":.*:" -color brightred "\{[a-z0-9]*\}" +color green ":.*:" +color red "\{[a-z0-9]*\}" color red "\\\{[a-z0-9]*\}" color red "\+\+\+\{[a-z0-9]*\}\+\+\+" @@ -40,8 +40,8 @@ color yellow "'[^']+'" color cyan "`{1,2}[^']+'{1,2}" # bullets -color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]" +color magenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]" # anchors -color brightwhite "\[\[.*\]\]" -color brightwhite "<<.*>>" +color white "\[\[.*\]\]" +color white "<<.*>>" diff --git a/asm.nanorc b/asm.nanorc index 1273b8e..e2373ba 100644 --- a/asm.nanorc +++ b/asm.nanorc @@ -2,16 +2,16 @@ ## syntax "ASM" "\.(S|s|asm)$" color red "\<[A-Z_]{2,}\>" -color brightgreen "\.(data|subsection|text)" +color green "\.(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-9A-Z_]*:" -color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" +color yellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" +icolor red "^[[:space:]]*[.0-9A-Z_]*:" +color cyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" ## Highlight strings (note: VERY resource intensive) -color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" -color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +color yellow "<[^= ]*>" ""(\\.|[^"])*"" +color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Highlight comments -color brightblue "//.*" -color brightblue start="/\*" end="\*/" +color blue "//.*" +color blue start="/\*" end="\*/" ## Highlight trailing whitespace color ,green "[[:space:]]+$" diff --git a/awk.nanorc b/awk.nanorc index ad343aa..8bcd757 100644 --- a/awk.nanorc +++ b/awk.nanorc @@ -1,25 +1,25 @@ syntax "AWK" "\.awk$" header "^#!.*bin/(env +)?awk( |$)" -color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" -color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" -color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" -color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" -color brightblue "\<(function|extension|BEGIN|END)\>" +color yellow "\$[A-Za-z0-9_!@#$*?-]+" +color yellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" +color yellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" +color yellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" +color blue "\<(function|extension|BEGIN|END)\>" color red "[-+*/%^|!=&<>?;:]|\\|\[|\]" color cyan "\<(for|if|while|do|else|in|delete|exit)\>" color cyan "\<(break|continue|return)\>" -color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>" -color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" -color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>" -color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" -color brightblue "\<(mktime|strftime|systime)\>" -color brightblue "\<(and|compl|lshift|or|rshift|xor)\>" -color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>" +color blue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>" +color blue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" +color blue "\<(asort|asorti|gensub|gsub|index|length|match)\>" +color blue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" +color blue "\<(mktime|strftime|systime)\>" +color blue "\<(and|compl|lshift|or|rshift|xor)\>" +color blue "\<(bindtextdomain|dcgettext|dcngettext)\>" color magenta "/.*[^\]/" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color magenta "\\." -color brightblack "(^|[[:space:]])#([^{].*)?$" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])#([^{].*)?$" +color white,cyan "TODO:?" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/c.nanorc b/c.nanorc index e51c99b..36177a8 100644 --- a/c.nanorc +++ b/c.nanorc @@ -1,7 +1,7 @@ ## Here is an example for C/C++. ## syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" -color brightred "\<[A-Z_][0-9A-Z_]+\>" +color red "\<[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(8|16|32|64|ptr)))_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" @@ -10,9 +10,9 @@ color green "\<(try|throw|catch|operator|new|delete)\>" color green "\<((const|dynamic|reinterpret|static)_cast)\>" color green "\<(alignas|alignof|asm|auto|compl|concept|constexpr|decltype|export|noexcept|nullptr|requires|static_assert|thread_local|typeid|override|final)\>" color green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>" -color brightmagenta "\<(goto|continue|break|return)\>" -color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" -color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +color magenta "\<(goto|continue|break|return)\>" +color cyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color magenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" ## ## GCC builtins @@ -35,8 +35,8 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*"" #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comment highlighting -color brightblue "//.*" -color brightblue start="/\*" end="\*/" +color blue "//.*" +color blue start="/\*" end="\*/" ## Trailing whitespace color ,green "[[:space:]]+$" diff --git a/clojure.nanorc b/clojure.nanorc index aac31f4..9b08178 100644 --- a/clojure.nanorc +++ b/clojure.nanorc @@ -5,29 +5,29 @@ syntax "clojure" "\.((clj[s|c]?)|edn)" icolor green "defn? [0-9A-Z_]+" -color brightgreen "[#']" -color brightgreen "\" +color green "[#']" +color green "\" color green "\<(map|reduce|filter|println)\>" -color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>" -color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>" -color brightyellow "\<(try|catch|finally|throw)\>" +color yellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>" +color yellow "\<(do(all|run|seq|sync)?|recur|loop)\>" +color yellow "\<(try|catch|finally|throw)\>" color yellow "(\:else) " -color brightcyan "\<(require|use|import|ns)\>" +color cyan "\<(require|use|import|ns)\>" color cyan "(\:(require|use|import)) " -color brightred "\<(let(fn)?|defn?)\>" -color brightwhite "\((\/|((not|[<>\=])?\=?))" -color brightwhite "\((\+|-|\*)'?" -color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>" +color red "\<(let(fn)?|defn?)\>" +color white "\((\/|((not|[<>\=])?\=?))" +color white "\((\+|-|\*)'?" +color white "\<(and|or|not|mod|quot|rem|inc|dec)\>" color magenta "[\(\)]" color magenta "(\[|\])" color yellow "\<(true|false|nil)\>" -color brightyellow "(["][^"]*[^\\]["])|("")" +color yellow "(["][^"]*[^\\]["])|("")" -color brightblue ";.*$" +color blue ";.*$" color ,green "[[:space:]]+$" diff --git a/cmake.nanorc b/cmake.nanorc index e5ae059..de4bf49 100644 --- a/cmake.nanorc +++ b/cmake.nanorc @@ -3,23 +3,23 @@ syntax "CMake" "(CMakeLists\.txt|\.cmake)$" icolor green "^[[:space:]]*[A-Z0-9_]+" -icolor brightyellow "^[[:space:]]*(include|include_directories|include_external_msproject)\>" +icolor yellow "^[[: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 green "^[[:space:]]*\<((else|end)?if|else|(end)?while|(end)?foreach|break)\>" +color green "\<(COPY|NOT|COMMAND|PROPERTY|POLICY|TARGET|EXISTS|IS_(DIRECTORY|ABSOLUTE)|DEFINED)\>[[:space:]]" +color green "[[:space:]]\<(OR|AND|IS_NEWER_THAN|MATCHES|(STR|VERSION_)?(LESS|GREATER|EQUAL))\>[[:space:]]" -icolor brightred "^[[:space:]]*\<((end)?(function|macro)|return)" +icolor red "^[[:space:]]*\<((end)?(function|macro)|return)" #String Color color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" -icolor brightred start="\$(\{|ENV\{)" end="\}" +icolor red start="\$(\{|ENV\{)" end="\}" color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>" -icolor brightblue "^([[:space:]]*)?#.*" -icolor brightblue "[[:space:]]#.*" +icolor blue "^([[:space:]]*)?#.*" +icolor blue "[[:space:]]#.*" ## Trailing whitespace color ,green "[[:space:]]+$" diff --git a/coffeescript.nanorc b/coffeescript.nanorc index b901c25..c836fa0 100644 --- a/coffeescript.nanorc +++ b/coffeescript.nanorc @@ -2,15 +2,15 @@ syntax "CoffeeScript" "\.coffee$" header "^#!.*/(env +)?coffee" color red "[!&|=\/*+\-\<\>]|\<(and|or|is|isnt|not)\>" -color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->" -color brightblue "[()]" +color blue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->" +color blue "[()]" color cyan "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>" color cyan "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>" color cyan "\<(debugger|switch|while|do|class|extends|super)\>" color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>" -color brightcyan "\<(true|false|yes|no|on|off)\>" -color brightyellow "@[A-Za-z0-9_]*" +color cyan "\<(true|false|yes|no|on|off)\>" +color yellow "@[A-Za-z0-9_]*" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/colortest.nanorc b/colortest.nanorc index f2b44f2..cfe5385 100644 --- a/colortest.nanorc +++ b/colortest.nanorc @@ -9,9 +9,9 @@ color blue "\" color magenta "\" color cyan "\" -color brightred "\" -color brightgreen "\" -color brightyellow "\" -color brightblue "\" -color brightmagenta "\" -color brightcyan "\" +color red "\" +color green "\" +color yellow "\" +color blue "\" +color magenta "\" +color cyan "\" diff --git a/conf.nanorc b/conf.nanorc index cf9f58a..6f44451 100644 --- a/conf.nanorc +++ b/conf.nanorc @@ -5,7 +5,7 @@ syntax "Conf" "\.c[o]?nf$" ## Strings icolor white ""(\\.|[^"])*"" ## Comments -icolor brightblue "^[[:space:]]*#.*$" +icolor blue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/conky.nanorc b/conky.nanorc index 518938d..ea343b1 100644 --- a/conky.nanorc +++ b/conky.nanorc @@ -11,8 +11,8 @@ color green "\<(alignment|append_file|background|border_inner_margin|border_oute color yellow "\<(above|below|bottom_left|bottom_right|bottom_middle|desktop|dock|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|top_middle|middle_left|middle_right|middle_middle|undecorated|yes)\>" ## Variables -color brightblue "\<(acpiacadapter|acpifan|acpitemp|addr|addrs|alignc|alignr|apcupsd|apcupsd_cable|apcupsd_charge|apcupsd_lastxfer|apcupsd_linev|apcupsd_load|apcupsd_loadbar|apcupsd_loadgauge|apcupsd_loadgraph|apcupsd_model|apcupsd_name|apcupsd_status|apcupsd_temp|apcupsd_timeleft|apcupsd_upsmode|apm_adapter|apm_battery_life|apm_battery_time|audacious_bar|audacious_bitrate|audacious_channels|audacious_filename|audacious_frequency|audacious_length|audacious_length_seconds|audacious_main_volume|audacious_playlist_length|audacious_playlist_position|audacious_position|audacious_position_seconds|audacious_status|audacious_title|battery|battery_bar|battery_percent|battery_short|battery_time|blink|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|cmdline_to_pid|color|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|combine|conky_build_arch|conky_build_date|conky_version|cpu|cpubar|cpugauge|cpugraph|curl|desktop|desktop_name|desktop_number|disk_protect|diskio|diskio_read|diskio_write|diskiograph|diskiograph_read|diskiograph_write|distribution|downspeed|downspeedf|downspeedgraph|draft_mails|else|endif|entropy_avail|entropy_bar|entropy_perc|entropy_poolsize|eval|eve|exec|execbar|execgauge|execgraph|execi|execibar|execigauge|execigraph|execp|execpi|flagged_mails|font|format_time|forwarded_mails|freq|freq_g|fs_bar|fs_bar_free|fs_free|fs_free_perc|fs_size|fs_type|fs_used|fs_used_perc|goto|gw_iface|gw_ip|hddtemp|head|hr|hwmon|i2c|i8k_ac_status|i8k_bios|i8k_buttons_status|i8k_cpu_temp|i8k_left_fan_rpm|i8k_left_fan_status|i8k_right_fan_rpm|i8k_right_fan_status|i8k_serial|i8k_version|ibm_brightness|ibm_fan|ibm_temps|ibm_volume|ical|iconv_start|iconv_stop|if_empty|if_existing|if_gw|if_match|if_mixer_mute|if_mounted|if_mpd_playing|if_running|if_smapi_bat_installed|if_up|if_updatenr|if_xmms2_connected|image|imap_messages|imap_unseen|ioscheduler|irc|kernel|laptop_mode|lines|loadavg|loadgraph|lua|lua_bar|lua_gauge|lua_graph|lua_parse|machine|mails|mboxscan|mem|memwithbuffers|membar|memwithbuffersbar|memeasyfree|memfree|memgauge|memgraph|memmax|memperc|mixer|mixerbar|mixerl|mixerlbar|mixerr|mixerrbar|moc_album|moc_artist|moc_bitrate|moc_curtime|moc_file|moc_rate|moc_song|moc_state|moc_timeleft|moc_title|moc_totaltime|monitor|monitor_number|mpd_album|mpd_artist|mpd_bar|mpd_bitrate|mpd_elapsed|mpd_file|mpd_length|mpd_name|mpd_percent|mpd_random|mpd_repeat|mpd_smart|mpd_status|mpd_title|mpd_track|mpd_vol|mysql|nameserver|new_mails|nodename|nodename_short|no_update|nvidia|obsd_product|obsd_sensors_fan|obsd_sensors_temp|obsd_sensors_volt|obsd_vendor|offset|outlinecolor|pb_battery|pid_chroot|pid_cmdline|pid_cwd|pid_environ|pid_environ_list|pid_exe|pid_nice|pid_openfiles|pid_parent|pid_priority|pid_state|pid_state_short|pid_stderr|pid_stdin|pid_stdout|pid_threads|pid_thread_list|pid_time_kernelmode|pid_time_usermode|pid_time|pid_uid|pid_euid|pid_suid|pid_fsuid|pid_gid|pid_egid|pid_sgid|pid_fsgid|pid_read|pid_vmpeak|pid_vmsize|pid_vmlck|pid_vmhwm|pid_vmrss|pid_vmdata|pid_vmstk|pid_vmexe|pid_vmlib|pid_vmpte|pid_write|platform|pop3_unseen|pop3_used|processes|read_tcp|read_udp|replied_mails|rss|running_processes|running_threads|scroll|seen_mails|shadecolor|smapi|smapi_bat_bar|smapi_bat_perc|smapi_bat_power|smapi_bat_temp|sony_fanspeed|stippled_hr|stock|swap|swapbar|swapfree|swapmax|swapperc|sysname|tab|tail|tcp_ping|tcp_portmon|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|texeci|texecpi|threads|time|to_bytes|top|top_io|top_mem|top_time|totaldown|totalup|trashed_mails|tztime|gid_name|uid_name|unflagged_mails|unforwarded_mails|unreplied_mails|unseen_mails|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|user_names|user_number|user_terms|user_times|user_time|utime|voffset|voltage_mv|voltage_v|weather|wireless_ap|wireless_bitrate|wireless_essid|wireless_link_bar|wireless_link_qual|wireless_link_qual_max|wireless_link_qual_perc|wireless_mode|words|xmms2_album|xmms2_artist|xmms2_bar|xmms2_bitrate|xmms2_comment|xmms2_date|xmms2_duration|xmms2_elapsed|xmms2_genre|xmms2_id|xmms2_percent|xmms2_playlist|xmms2_size|xmms2_smart|xmms2_status|xmms2_timesplayed|xmms2_title|xmms2_tracknr|xmms2_url)\>" +color blue "\<(acpiacadapter|acpifan|acpitemp|addr|addrs|alignc|alignr|apcupsd|apcupsd_cable|apcupsd_charge|apcupsd_lastxfer|apcupsd_linev|apcupsd_load|apcupsd_loadbar|apcupsd_loadgauge|apcupsd_loadgraph|apcupsd_model|apcupsd_name|apcupsd_status|apcupsd_temp|apcupsd_timeleft|apcupsd_upsmode|apm_adapter|apm_battery_life|apm_battery_time|audacious_bar|audacious_bitrate|audacious_channels|audacious_filename|audacious_frequency|audacious_length|audacious_length_seconds|audacious_main_volume|audacious_playlist_length|audacious_playlist_position|audacious_position|audacious_position_seconds|audacious_status|audacious_title|battery|battery_bar|battery_percent|battery_short|battery_time|blink|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|cmdline_to_pid|color|color0|color1|color2|color3|color4|color5|color6|color7|color8|color9|combine|conky_build_arch|conky_build_date|conky_version|cpu|cpubar|cpugauge|cpugraph|curl|desktop|desktop_name|desktop_number|disk_protect|diskio|diskio_read|diskio_write|diskiograph|diskiograph_read|diskiograph_write|distribution|downspeed|downspeedf|downspeedgraph|draft_mails|else|endif|entropy_avail|entropy_bar|entropy_perc|entropy_poolsize|eval|eve|exec|execbar|execgauge|execgraph|execi|execibar|execigauge|execigraph|execp|execpi|flagged_mails|font|format_time|forwarded_mails|freq|freq_g|fs_bar|fs_bar_free|fs_free|fs_free_perc|fs_size|fs_type|fs_used|fs_used_perc|goto|gw_iface|gw_ip|hddtemp|head|hr|hwmon|i2c|i8k_ac_status|i8k_bios|i8k_buttons_status|i8k_cpu_temp|i8k_left_fan_rpm|i8k_left_fan_status|i8k_right_fan_rpm|i8k_right_fan_status|i8k_serial|i8k_version|ibm_ness|ibm_fan|ibm_temps|ibm_volume|ical|iconv_start|iconv_stop|if_empty|if_existing|if_gw|if_match|if_mixer_mute|if_mounted|if_mpd_playing|if_running|if_smapi_bat_installed|if_up|if_updatenr|if_xmms2_connected|image|imap_messages|imap_unseen|ioscheduler|irc|kernel|laptop_mode|lines|loadavg|loadgraph|lua|lua_bar|lua_gauge|lua_graph|lua_parse|machine|mails|mboxscan|mem|memwithbuffers|membar|memwithbuffersbar|memeasyfree|memfree|memgauge|memgraph|memmax|memperc|mixer|mixerbar|mixerl|mixerlbar|mixerr|mixerrbar|moc_album|moc_artist|moc_bitrate|moc_curtime|moc_file|moc_rate|moc_song|moc_state|moc_timeleft|moc_title|moc_totaltime|monitor|monitor_number|mpd_album|mpd_artist|mpd_bar|mpd_bitrate|mpd_elapsed|mpd_file|mpd_length|mpd_name|mpd_percent|mpd_random|mpd_repeat|mpd_smart|mpd_status|mpd_title|mpd_track|mpd_vol|mysql|nameserver|new_mails|nodename|nodename_short|no_update|nvidia|obsd_product|obsd_sensors_fan|obsd_sensors_temp|obsd_sensors_volt|obsd_vendor|offset|outlinecolor|pb_battery|pid_chroot|pid_cmdline|pid_cwd|pid_environ|pid_environ_list|pid_exe|pid_nice|pid_openfiles|pid_parent|pid_priority|pid_state|pid_state_short|pid_stderr|pid_stdin|pid_stdout|pid_threads|pid_thread_list|pid_time_kernelmode|pid_time_usermode|pid_time|pid_uid|pid_euid|pid_suid|pid_fsuid|pid_gid|pid_egid|pid_sgid|pid_fsgid|pid_read|pid_vmpeak|pid_vmsize|pid_vmlck|pid_vmhwm|pid_vmrss|pid_vmdata|pid_vmstk|pid_vmexe|pid_vmlib|pid_vmpte|pid_write|platform|pop3_unseen|pop3_used|processes|read_tcp|read_udp|replied_mails|rss|running_processes|running_threads|scroll|seen_mails|shadecolor|smapi|smapi_bat_bar|smapi_bat_perc|smapi_bat_power|smapi_bat_temp|sony_fanspeed|stippled_hr|stock|swap|swapbar|swapfree|swapmax|swapperc|sysname|tab|tail|tcp_ping|tcp_portmon|template0|template1|template2|template3|template4|template5|template6|template7|template8|template9|texeci|texecpi|threads|time|to_bytes|top|top_io|top_mem|top_time|totaldown|totalup|trashed_mails|tztime|gid_name|uid_name|unflagged_mails|unforwarded_mails|unreplied_mails|unseen_mails|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|user_names|user_number|user_terms|user_times|user_time|utime|voffset|voltage_mv|voltage_v|weather|wireless_ap|wireless_bitrate|wireless_essid|wireless_link_bar|wireless_link_qual|wireless_link_qual_max|wireless_link_qual_perc|wireless_mode|words|xmms2_album|xmms2_artist|xmms2_bar|xmms2_bitrate|xmms2_comment|xmms2_date|xmms2_duration|xmms2_elapsed|xmms2_genre|xmms2_id|xmms2_percent|xmms2_playlist|xmms2_size|xmms2_smart|xmms2_status|xmms2_timesplayed|xmms2_title|xmms2_tracknr|xmms2_url)\>" -color brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color blue "\$\{?[0-9A-Z_!@#$*?-]+\}?" color cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" -color brightred "^TEXT$" +color red "^TEXT$" diff --git a/csh.nanorc b/csh.nanorc index da13126..ecad06e 100644 --- a/csh.nanorc +++ b/csh.nanorc @@ -7,9 +7,9 @@ color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|ex color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>" color green "-(A\:|M\:|U\:|G\:)\>" -color brightblue "\<(alias|bindkey|cat|cd|chmod|chown|complete|cp|echo|env|grep|install|ln|make|mkdir|mv|printenv|rm|sed|set|setenv|tar|touch|umask|unalias|uncomplete|unset|unsetenv)\>" -icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" -icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color blue "\<(alias|bindkey|cat|cd|chmod|chown|complete|cp|echo|env|grep|install|ln|make|mkdir|mv|printenv|rm|sed|set|setenv|tar|touch|umask|unalias|uncomplete|unset|unsetenv)\>" +icolor green "^\s+[0-9A-Z_]+\s+\(\)" +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color cyan "(^|[[:space:]])#.*$" color ,green "[[:space:]]+$" diff --git a/csharp.nanorc b/csharp.nanorc index 3093e0a..011ec4b 100644 --- a/csharp.nanorc +++ b/csharp.nanorc @@ -1,26 +1,26 @@ syntax "C#" "\.cs$" # Class -color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" +color magenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" # Annotation color magenta "@[A-Za-z]+" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color blue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color green "\<(bool|byte|sbyte|char|decimal|double|float|IntPtr|int|uint|long|ulong|object|short|ushort|string|base|this|var|void)\>" color cyan "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>" color cyan "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>" # LINQ-only keywords (ones that cannot be used outside of a LINQ query - lots others can) color cyan "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" +color red "\<(break|continue)\>" +color cyan "\<(true|false)\>" color red "[-+/*=<>?:!~%&|]" color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color magenta "\\([btnfr]|'|\"|\\)" color magenta "\\u[A-Fa-f0-9]{4}" -color brightblack "(^|[[:space:]])//.*" -color brightblack start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])//.*" +color black start="/\*" end="\*/" +color white,cyan "TODO:?" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/css.nanorc b/css.nanorc index 3e6b83c..21eb8b9 100644 --- a/css.nanorc +++ b/css.nanorc @@ -2,11 +2,11 @@ ## syntax "CSS" "\.(css|scss)$" -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 red "." +color yellow start="\{" end="\}" +color white start=":" end="[;^\{]" +color blue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" +color blue start="\/\*" end="\*\/" color green ";|:|\{|\}" ## Trailing spaces diff --git a/cython.nanorc b/cython.nanorc index 0f73704..8db5f6d 100644 --- a/cython.nanorc +++ b/cython.nanorc @@ -1,15 +1,15 @@ ## Cython nanorc, based off of Python nanorc. ## syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$" -icolor brightred "def [ 0-9A-Z_]+" -icolor brightred "cpdef [0-9A-Z_]+\(.*\):" -icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):" +icolor red "def [ 0-9A-Z_]+" +icolor red "cpdef [0-9A-Z_]+\(.*\):" +icolor red "cdef cppclass [ 0-9A-Z_]+\(.*\):" # Python Keyword Color color green "\<(and|as|assert|class|def|DEF|del|elif|ELIF|else|ELSE|except|exec|finally|for|from|global|if|IF|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with|yield)\>" -color brightmagenta "\<(continue|break|return)\>" +color magenta "\<(continue|break|return)\>" # Cython Keyword Color color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>" @@ -27,7 +27,7 @@ color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''" # Comment Color -color brightblue "#.*$" +color blue "#.*$" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/dot.nanorc b/dot.nanorc index 441a35c..834f28e 100644 --- a/dot.nanorc +++ b/dot.nanorc @@ -4,5 +4,5 @@ color cyan "\<(digraph|edge|graph|node|subgraph)\>" color magenta "\<(arrowhead|arrowsize|arrowtail|bgcolor|center|color|constraint|decorateP|dir|distortion|fillcolor|fontcolor|fontname|fontsize|headclip|headlabel|height|labelangle|labeldistance|labelfontcolor|labelfontname|labelfontsize|label|layers|layer|margin|mclimit|minlen|name|nodesep|nslimit|ordering|orientation|pagedir|page|peripheries|port_label_distance|rankdir|ranksep|rank|ratio|regular|rotate|samehead|sametail|shapefile|shape|sides|size|skew|style|tailclip|taillabel|URL|weight|width)\>" color red "=|->|--" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])//.*" -color brightblack start="/\*" end="\*/" +color black "(^|[[:space:]])//.*" +color black start="/\*" end="\*/" diff --git a/dotenv.nanorc b/dotenv.nanorc index 3f21b9b..a9cf487 100644 --- a/dotenv.nanorc +++ b/dotenv.nanorc @@ -5,6 +5,6 @@ syntax "dotenv" "\.env" "\.env\..+" color green "(\(|\)|\$|=)" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color cyan "(^|[[:space:]])#.*$" color ,green "[[:space:]]+$" diff --git a/erb.nanorc b/erb.nanorc index 9a581b2..7c4d675 100644 --- a/erb.nanorc +++ b/erb.nanorc @@ -9,18 +9,18 @@ color blue start="<" end=">" color white start="<%" end="%>" color red "&[^;[[:space:]]]*;" color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" -color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +color blue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" icolor magenta "([ ]|^):[0-9A-Z_]+\>" -color brightyellow "\<(__FILE__|__LINE__)\>" -color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" -color brightblue "`[^`]*`" "%x\{[^}]*\}" +color yellow "\<(__FILE__|__LINE__)\>" +color magenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +color blue "`[^`]*`" "%x\{[^}]*\}" color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" -color brightgreen "#\{[^}]*\}" +color green "#\{[^}]*\}" color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color cyan "#[^{].*$" "#$" -color brightcyan "##[^{].*$" "##$" +color cyan "##[^{].*$" "##$" color green start="<<-?'?EOT'?" end="^EOT" -color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +color cyan "(XXX|TODO|FIXME|\?\?\?)" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/fish.nanorc b/fish.nanorc index 85fa258..50d8861 100644 --- a/fish.nanorc +++ b/fish.nanorc @@ -1,14 +1,14 @@ ## Here is an example for Fish shell scripts. ## syntax "Fish" "\.fish$" -icolor brightgreen "^[0-9A-Z_]+\(\)" +icolor green "^[0-9A-Z_]+\(\)" color green "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "\<(and|isatty|not|or|in)\>" color yellow "--[a-z-]+" -color brightmagenta "\ -[a-z]+" -color brightblue "\<(bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|dirh|dirs|echo|emit|eval|exec|exit|fg|fish|fish_config|fish_ident|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|jobs|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set_color|status|trap|type|ulimit|umask|vared)\>" -icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color magenta "\ -[a-z]+" +color blue "\<(bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|dirh|dirs|echo|emit|eval|exec|exit|fg|fish|fish_config|fish_ident|fish_pager|fish_prompt|fish_right_prompt|fish_update_completions|fishd|funced|funcsave|functions|help|history|jobs|mimedb|nextd|open|popd|prevd|psub|pushd|pwd|random|read|set_color|status|trap|type|ulimit|umask|vared)\>" +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" color cyan "(^|[[:space:]])#.*$" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color ,green "[[:space:]]+$" diff --git a/fortran.nanorc b/fortran.nanorc index 2b77e6b..2377b12 100644 --- a/fortran.nanorc +++ b/fortran.nanorc @@ -40,14 +40,14 @@ color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" color magenta "[(){}]" "\[" "\]" # Add preprocessor commands. -color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" +color cyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)" ## String highlighting. icolor cyan "<[^= ]*>" ""(\\.|[^"])*"" icolor cyan "<[^= ]*>" "'(\\.|[^"])*'" ## Comment highlighting -icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$" +icolor red "!.*$" "(^[Cc]| [Cc]) .*$" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/genie.nanorc b/genie.nanorc index 187e864..5bc6ec4 100644 --- a/genie.nanorc +++ b/genie.nanorc @@ -8,16 +8,16 @@ color magenta "\<(uses|namespace)\>" color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>" # Definitions. -color brightred "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>" +color red "\<(const|class|construct|def|delegate|enum|exception|extern|event|final|get|init|inline|interface|override|prop|return|set|static|struct|var|virtual|weak)\>" # Keywords. color red "\<(abstract|as|and|break|case|cast|continue|default|delete|div|do|downto|dynamic|else|ensures|except|extern|finally|for|if|implements|in|isa|is|lock|new|not|of|out|or|otherwise|pass|private|raise|raises|readonly|ref|requires|to|try|unless|when|while)\>" # Special variables. -color brightcyan "\<(self|super)\>" +color cyan "\<(self|super)\>" # Null value. -color brightyellow "\<(null)\>" +color yellow "\<(null)\>" # Boolean. color yellow "\<(false|true)\>" @@ -26,16 +26,16 @@ color yellow "\<(false|true)\>" color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>" # Numbers. -color brightmagenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?" +color magenta "[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?" # Regular expression. -color brightgreen "/(\\.|[^/])*/" +color green "/(\\.|[^/])*/" # Double quoted string. -color brightblue ""(\\.|[^"])*"" +color blue ""(\\.|[^"])*"" # Single quoted string. -color brightblue "'(\\.|[^'])*'" +color blue "'(\\.|[^'])*'" # Multiline string. color blue start=""""" end=""""" diff --git a/gentoo.nanorc b/gentoo.nanorc index 24b5485..418d9db 100644 --- a/gentoo.nanorc +++ b/gentoo.nanorc @@ -2,30 +2,30 @@ ## syntax "Ebuild" "\.e(build|class)$" ## All the standard portage functions -color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" +color green "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" ## Highlight 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|continue|break)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "-(e|d|f|r|g|u|w|x|L)\>" color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" -## Highlight variables ... official portage ones in red, all others in bright red -color brightred "\$\{?[a-zA-Z_0-9]+\}?" +## Highlight variables ... official portage ones in red, all others in red +color red "\$\{?[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)\>" "\" "\" "\" ## Highlight 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\>" +color blue "\" +color blue "\" "\" "\" "\" "\<(has|best)_version\>" "\" +color blue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color blue "\" "\" +color blue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" +color blue "\<(doc|ins|exe)into\>" "\" "\<(exe|ins|dir)opts\>" ## Highlight 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)\>" ## Highlight comments (doesnt work that well) color yellow "#.*$" ## Highlight strings (doesnt work that well) -color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" +color yellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" ## Trailing space is bad! color ,green "[[:space:]]+$" @@ -35,8 +35,8 @@ syntax "etc-portage" "\.(keywords|mask|unmask|use)$" ## Base text: color green "^.+$" ## Use flags: -color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+" -color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+" +color red "[[:space:]]+\+?[a-zA-Z0-9_-]+" +color blue "[[:space:]]+-[a-zA-Z0-9_-]+" ## Likely version numbers: color magenta "-[[:digit:]].*([[:space:]]|$)" ## Accepted arches: @@ -45,6 +45,6 @@ color white "[[:space:]][~-]?\*" ## Categories: color cyan "^[[:space:]]*.*/" ## Masking regulators: -color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" +color magenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" ## Comments: color yellow "#.*$" diff --git a/git.nanorc b/git.nanorc index 0aaf475..7c81a06 100644 --- a/git.nanorc +++ b/git.nanorc @@ -1,10 +1,10 @@ syntax "git-config" "git(config|modules)$|\.git/config$" -color brightcyan "\<(true|false)\>" +color cyan "\<(true|false)\>" color cyan "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" +color magenta "^[[:space:]]*\[.*\]$" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " +" @@ -22,28 +22,28 @@ syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG" color yellow ".*" # Comments -color brightblack "^#.*" +color black "^#.*" # 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:" +color green "#[[:space:]]new file:" +color blue "#[[: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" +color magenta "^#[[:space:]]Changes.*[:]" +color red "^#[[:space:]]Your branch and '[^']+" +color black "^#[[:space:]]Your branch and '" +color white "^#[[:space:]]On branch [^ ]+" +color black "^#[[:space:]]On branch" # Recolor hash symbols # Recolor hash symbols -color brightblack "#" +color black "#" # Trailing spaces (+LINT is not ok, git uses tabs) color ,green "[[:space:]]+$" @@ -56,25 +56,25 @@ syntax "git-rebase-todo" "git-rebase-todo" color yellow ".*" # Comments -color brightblack "^#.*" +color black "^#.*" # 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 green "^(f|fixup) [0-9a-f]{7,40}" +color green "^# (f, fixup)" +color white "^(p|pick) [0-9a-f]{7,40}" +color white "^# (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 red "^(s|squash) [0-9a-f]{7,40}" +color red "^# (s, squash)" color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}" color yellow "^# (x, exec)" # Recolor hash symbols -color brightblack "#" +color black "#" # Commit IDs -color brightblue "[0-9a-f]{7,40}" +color blue "[0-9a-f]{7,40}" diff --git a/gitcommit.nanorc b/gitcommit.nanorc deleted file mode 120000 index 22ae20d..0000000 --- a/gitcommit.nanorc +++ /dev/null @@ -1 +0,0 @@ -git.nanorc \ No newline at end of file diff --git a/gitcommit.nanorc b/gitcommit.nanorc new file mode 100644 index 0000000..7c81a06 --- /dev/null +++ b/gitcommit.nanorc @@ -0,0 +1,80 @@ +syntax "git-config" "git(config|modules)$|\.git/config$" + +color cyan "\<(true|false)\>" +color cyan "^[[:space:]]*[^=]*=" +color magenta "^[[:space:]]*\[.*\]$" +color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" +color black "(^|[[: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 black "^#.*" + +# Files changes +color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*" +color red "#[[:space:]]deleted:" +color green "#[[:space:]]modified:" +color green "#[[:space:]]new file:" +color blue "#[[:space:]]renamed:" + +# Untracked filenames +color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$" + +color magenta "^#[[:space:]]Changes.*[:]" +color red "^#[[:space:]]Your branch and '[^']+" +color black "^#[[:space:]]Your branch and '" +color white "^#[[:space:]]On branch [^ ]+" +color black "^#[[:space:]]On branch" + +# Recolor hash symbols + +# Recolor hash symbols +color black "#" + +# 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 black "^#.*" + +# Rebase commands +color green "^(e|edit) [0-9a-f]{7,40}" +color green "^# (e, edit)" +color green "^(f|fixup) [0-9a-f]{7,40}" +color green "^# (f, fixup)" +color white "^(p|pick) [0-9a-f]{7,40}" +color white "^# (p, pick)" +color blue "^(r|reword) [0-9a-f]{7,40}" +color blue "^# (r, reword)" +color red "^(s|squash) [0-9a-f]{7,40}" +color red "^# (s, squash)" +color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}" +color yellow "^# (x, exec)" + +# Recolor hash symbols +color black "#" + +# Commit IDs +color blue "[0-9a-f]{7,40}" + diff --git a/glsl.nanorc b/glsl.nanorc index 1cec6cf..7d35b5a 100644 --- a/glsl.nanorc +++ b/glsl.nanorc @@ -1,15 +1,15 @@ syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color blue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color green "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>" color green "\" color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>" -color brightred "\<(break|continue)\>" -color brightcyan "\<(true|false)\>" +color red "\<(break|continue)\>" +color cyan "\<(true|false)\>" color red "[-+/*=<>?:!~%&|^]" color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>" -color brightblack "(^|[[:space:]])//.*" -color brightblack start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])//.*" +color black start="/\*" end="\*/" +color white,cyan "TODO:?" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/go.nanorc b/go.nanorc index b603c2f..4762a4a 100644 --- a/go.nanorc +++ b/go.nanorc @@ -1,22 +1,22 @@ syntax "GO" "\.go$" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" -color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>" -color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>" +color blue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color blue "\<(append|cap|close|complex|copy|delete|imag|len)\>" +color blue "\<(make|new|panic|print|println|protect|real|recover)\>" color green "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>" color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>" color cyan "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>" color cyan "\<(for|range|if|else|case|default|switch|return)\>" -color brightred "\<(go|goto|break|continue)\>" -color brightcyan "\<(true|false)\>" +color red "\<(go|goto|break|continue)\>" +color cyan "\<(true|false)\>" color red "[-+/*=<>!~%&|^]|:=" color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color magenta "\\[abfnrtv'\"\\]" color magenta "\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})" color yellow "`[^`]*`" -color brightblack "(^|[[:space:]])//.*" -color brightblack start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])//.*" +color black start="/\*" end="\*/" +color white,cyan "TODO:?" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/groff.nanorc b/groff.nanorc index 6a0ecc7..1f1da61 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -4,21 +4,21 @@ syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." ## The argument of .ds or .nr color cyan "^\.(ds|nr) [^[[:space:]]]*" ## Single character escapes -color brightmagenta "\\." +color magenta "\\." ## Highlight the argument of \f or \s in the same color -color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" +color magenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" ## Newlines color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests -color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +color green "^\.[[:space:]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$" ## Strings color green "(\\|\\\\)\*(.|\(..)" color green start="(\\|\\\\)\*\[" end="]" ## Characters -color brightred "\\\(.." -color brightred start="\\\[" end="]" +color red "\\\(.." +color red start="\\\[" end="]" ## Macro arguments -color brightcyan "\\\\\$[1-9]" +color cyan "\\\\\$[1-9]" diff --git a/haml.nanorc b/haml.nanorc index 3337882..1e79eb1 100644 --- a/haml.nanorc +++ b/haml.nanorc @@ -9,10 +9,10 @@ icolor yellow "\.[A-Z_]+\>" color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" ## Vars -color brightgreen "#\{[^}]*\}" -color brightblue "(@|@@)[0-9A-Z_a-z]+" +color green "#\{[^}]*\}" +color blue "(@|@@)[0-9A-Z_a-z]+" ## Comments -color brightcyan "#[^{].*$" "#$" +color cyan "#[^{].*$" "#$" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/haskell.nanorc b/haskell.nanorc index 2b37ecf..e062f37 100644 --- a/haskell.nanorc +++ b/haskell.nanorc @@ -28,7 +28,7 @@ color yellow ""[^\"]*"" color green "--.*" color green start="\{-" end="-\}" -color brightred "undefined" +color red "undefined" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/html.j2.nanorc b/html.j2.nanorc index ff14a97..73da5af 100644 --- a/html.j2.nanorc +++ b/html.j2.nanorc @@ -1,7 +1,7 @@ ## Here is a short improved example for HTML. ## syntax "HTML" "\.htm[l]?.j2$" -color brightblue start="<" end=">" +color blue start="<" end=">" color red "&[^;[[:space:]]]*;" color yellow ""[^"]*"|qq\|.*\|" color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)=" @@ -13,5 +13,5 @@ color ,green "[[:space:]]+$" ## Jinja templating color green "\{{2}.*\}{2}" color green "\{\%.*\%\}" -color brightcyan "(if|endif|for)" +color cyan "(if|endif|for)" diff --git a/html.nanorc b/html.nanorc index dd01965..fdb59e1 100644 --- a/html.nanorc +++ b/html.nanorc @@ -1,7 +1,7 @@ ## Here is a short improved example for HTML. ## syntax "HTML" "\.htm[l]?$" -color brightblue start="<" end=">" +color blue start="<" end=">" color red "&[^;[[:space:]]]*;" color yellow ""[^"]*"|qq\|.*\|" color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)=" diff --git a/i3.nanorc b/i3.nanorc index 196836e..eb5381e 100644 --- a/i3.nanorc +++ b/i3.nanorc @@ -7,9 +7,9 @@ color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|rea color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "-[Ldefgruwx]\>" color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" -color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" -icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" -icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color blue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor green "^\s+[0-9A-Z_]+\s+\(\)" +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color cyan "(^|[[:space:]])#.*$" color ,green "[[:space:]]+$" diff --git a/ical.nanorc b/ical.nanorc index cd946e7..94a2de2 100644 --- a/ical.nanorc +++ b/ical.nanorc @@ -2,11 +2,11 @@ syntax "iCal" "\.ics$" color green start="^BEGIN:VCALENDAR$" end="^END:VCALENDAR$" color yellow start="^BEGIN:VCARD$" end="^END:VCARD$" -color brightblue start="^BEGIN:VJOURNAL$" end="^END:VJOURNAL$" +color blue start="^BEGIN:VJOURNAL$" end="^END:VJOURNAL$" color magenta start="^BEGIN:VTIMEZONE$" end="^END:VTIMEZONE" color cyan start="^BEGIN:VEVENT$" end="^END:VEVENT$" -color brightmagenta start="^BEGIN:VALARM$" end="^END:VALARM$" -color brightcyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$" +color magenta start="^BEGIN:VALARM$" end="^END:VALARM$" +color cyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$" # URLs color blue start="(https?|ftp)://" end="^[^ ]" @@ -14,7 +14,7 @@ color blue start="(https?|ftp)://" end="^[^ ]" icolor blue "mailto:[^ ]+" icolor white "mailto:" # parameters -color brightyellow start="^[-A-Z0-9]" end=":" +color yellow start="^[-A-Z0-9]" end=":" color white "^[-A-Z0-9]+" # section markers color red "^(BEGIN|END):.*$" diff --git a/ini.nanorc b/ini.nanorc index 8374b1e..25ccbba 100644 --- a/ini.nanorc +++ b/ini.nanorc @@ -1,11 +1,11 @@ syntax "INI" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" header "^\[[A-Za-z]+\]$" -color brightcyan "\<(true|false)\>" +color cyan "\<(true|false)\>" color cyan "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" +color magenta "^[[:space:]]*\[.*\]$" color red "[=;]" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])(#([^{].*)?|;.*)$" +color black "(^|[[:space:]])(#([^{].*)?|;.*)$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/inputrc.nanorc b/inputrc.nanorc index c2f6005..16ec697 100644 --- a/inputrc.nanorc +++ b/inputrc.nanorc @@ -2,9 +2,9 @@ syntax "Inputrc" "inputrc$" color red "\<(off|none)\>" color green "\" -color brightblue "\" +color blue "\" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color magenta "\\.?" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/java.nanorc b/java.nanorc index 8d37d5c..60ffbce 100644 --- a/java.nanorc +++ b/java.nanorc @@ -9,5 +9,5 @@ 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="/\*" end="\*/" -color brightblue start="/\*\*" end="\*/" +color blue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/javascript.nanorc b/javascript.nanorc index 84e5b15..eba641e 100644 --- a/javascript.nanorc +++ b/javascript.nanorc @@ -3,23 +3,23 @@ syntax "JavaScript" "\.js$" 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 blue "[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 cyan "\<(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 "(^|[[:space:]])//.*" -color brightblack "/\*.+\*/" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])//.*" +color black "/\*.+\*/" +color white,cyan "TODO:?" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/js.nanorc b/js.nanorc index 364a979..b6b3812 100644 --- a/js.nanorc +++ b/js.nanorc @@ -6,9 +6,9 @@ #color green "//.*$" start="\/\*" end="\*\/" #color blue "'(\\.|[^'])*'" #color red ""(\\.|[^\"])*"" -#color brightgreen "\<(true)\>" -#color brightred "\<(false)\>" "http\:\/\/.*$" -#color brightmagenta "[0-9](\\.|[^\"])*)" +#color green "\<(true)\>" +#color red "\<(false)\>" "http\:\/\/.*$" +#color magenta "[0-9](\\.|[^\"])*)" ## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting @@ -38,8 +38,8 @@ color red "\<(Number|Object|RegExp|String)\>" color red "\<(true|false)\>" ## String -color brightyellow "L?\"(\\"|[^"])*\"" -color brightyellow "L?'(\'|[^'])*'" +color yellow "L?\"(\\"|[^"])*\"" +color yellow "L?'(\'|[^'])*'" ## Trailing spaces color ,green "[[:space:]]+$" @@ -48,5 +48,5 @@ color ,green "[[:space:]]+$" color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" ## Comments -color brightblue start="/\*" end="\*/" -color brightblue "//.*$" +color blue start="/\*" end="\*/" +color blue "//.*$" diff --git a/json.nanorc b/json.nanorc index deca0e1..680f36d 100644 --- a/json.nanorc +++ b/json.nanorc @@ -3,9 +3,9 @@ header "^\{$" color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" color cyan "\" -color brightcyan "\<(true|false)\>" +color cyan "\<(true|false)\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" +color yellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/keymap.nanorc b/keymap.nanorc index bd49759..cd6d8fe 100644 --- a/keymap.nanorc +++ b/keymap.nanorc @@ -5,6 +5,6 @@ color cyan "\<(control|alt|shift)\>" color blue "\<[0-9]+\>" color red "=" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "^!.*$" +color black "^!.*$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/kickstart.nanorc b/kickstart.nanorc index 255618f..ee8efac 100644 --- a/kickstart.nanorc +++ b/kickstart.nanorc @@ -1,15 +1,15 @@ syntax "KickStart" "\.ks$" "\.kickstart$" -color brightmagenta "%[a-z]+" +color magenta "%[a-z]+" color cyan "^[[:space:]]*(install|cdrom|text|graphical|volgroup|logvol|reboot|timezone|lang|keyboard|authconfig|firstboot|rootpw|user|firewall|selinux|repo|part|partition|clearpart|bootloader)" color cyan "--(name|mirrorlist|baseurl|utc)(=|\>)" -color brightyellow "\$(releasever|basearch)\>" +color yellow "\$(releasever|basearch)\>" # Packages and groups -color brightblack "^@[A-Za-z][A-Za-z-]*" -color brightred "^-@[a-zA-Z0-9*-]+" +color black "^@[A-Za-z][A-Za-z-]*" +color red "^-@[a-zA-Z0-9*-]+" color red "^-[a-zA-Z0-9*-]+" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/ledger.nanorc b/ledger.nanorc index 8d07329..45f88db 100644 --- a/ledger.nanorc +++ b/ledger.nanorc @@ -1,10 +1,10 @@ syntax "Ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$" -color brightmagenta "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*" +color magenta "^([0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}|[=~]) .*" color blue "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}" -color brightyellow "^~ .*" -color brightblue "^= .*" +color yellow "^~ .*" +color blue "^= .*" color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?" color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?" color red "[*!]" -color brightblack "^[[:space:]]*;.*" +color black "^[[:space:]]*;.*" diff --git a/lisp.nanorc b/lisp.nanorc index 5039255..756b026 100644 --- a/lisp.nanorc +++ b/lisp.nanorc @@ -1,13 +1,13 @@ syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" -color brightblue "\([a-z-]+" +color blue "\([a-z-]+" color red "\(([-+*/<>]|<=|>=)|'" color blue "\<[0-9]+\>" icolor cyan "\" -color brightcyan "\<[tT]\>" +color cyan "\<[tT]\>" color yellow "\"(\\.|[^"])*\"" color magenta "'[A-Za-z][A-Za-z0-9_-]+" color magenta "\\.?" -color brightblack "(^|[[:space:]]);.*" +color black "(^|[[:space:]]);.*" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/lua.nanorc b/lua.nanorc index 9138a8f..c7491f3 100644 --- a/lua.nanorc +++ b/lua.nanorc @@ -15,44 +15,44 @@ syntax "Lua" ".*\.lua$" # General -color brightwhite ".+" +color white ".+" # Operators -color brightyellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" +color yellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" # Statements -color brightblue "\<(do|end|while|repeat|until|if|elseif|then|else|for|in|function|local|return)\>" +color blue "\<(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*\(" +color yellow "\<(debug|string|math|table|io|coroutine|os|utf8|bit32)\>\." +color yellow "\<(_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)\>" +color yellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>" +color yellow "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 yellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>" +color yellow "package\.\<(config|cpath|loaded|loadlib|path|preload|seeall|searchers|searchpath)\>" +color yellow "string\.\<(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)\>" +color yellow "table\.\<(concat|insert|maxn|move|pack|remove|sort|unpack)\>" +color yellow "utf8\.\<(char|charpattern|codes|codepoint|len|offset)\>" +color yellow "coroutine\.\<(create|isyieldable|resume|running|status|wrap|yield)\>" +color yellow "debug\.\<(debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|getuservalue|setfenv|sethook|setlocal|setmetatable|setupvalue|setuservalue|traceback|upvalueid|upvaluejoin)\>" +color yellow "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)\>" +color yellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>" # false, nil, true -color brightmagenta "\<(false|nil|true)\>" +color magenta "\<(false|nil|true)\>" # External files -color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>" +color green "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>" # Numbers color red "\<([0-9]+)\>" # Symbols -color brightmagenta "(\(|\)|\[|\]|\{|\})" +color magenta "(\(|\)|\[|\]|\{|\})" # Strings color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" @@ -64,7 +64,7 @@ color red start="\s*\[\[" end="\]\]" 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 "^#!.*" +color cyan "^#!.*" # Simple comments color green "\-\-.*$" diff --git a/makefile.nanorc b/makefile.nanorc index 12db1e2..3c7a5de 100644 --- a/makefile.nanorc +++ b/makefile.nanorc @@ -3,21 +3,21 @@ header "^#!.*/(env +)?[bg]?make( |$)" color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" color cyan "^(export|include|override)\>" -color brightmagenta "^[^:= ]+:" -color brightmagenta "^[^:+ ]+\+" +color magenta "^[^:= ]+:" +color magenta "^[^:+ ]+\+" color red "[=,%]" "\+=|\?=|:=|&&|\|\|" -color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" -color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" -color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" -color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" -color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]" +color blue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" +color blue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" +color blue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" +color blue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" +color blue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]" color black "[()$]" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))" -color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)" +color yellow "\$+(\{[^} ]+\}|\([^) ]+\))" +color yellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)" color magenta "\$\$|\\.?" -color brightblack "(^|[[:space:]])#([^{].*)?$" -color brightblack "^ @#.*" +color black "(^|[[:space:]])#([^{].*)?$" +color black "^ @#.*" # Show trailing whitespace color ,green "[[:space:]]+$" diff --git a/man.nanorc b/man.nanorc index 59334be..899bb92 100644 --- a/man.nanorc +++ b/man.nanorc @@ -2,8 +2,8 @@ ## syntax "Man" "\.[1-9]x?$" color green "\.(S|T)H.*$" -color brightgreen "\.(S|T)H" "\.TP" -color brightred "\.(BR?|I[PR]?).*$" -color brightblue "\.(BR?|I[PR]?|PP)" -color brightwhite "\\f[BIPR]" +color green "\.(S|T)H" "\.TP" +color red "\.(BR?|I[PR]?).*$" +color blue "\.(BR?|I[PR]?|PP)" +color white "\\f[BIPR]" color yellow "\.(br|DS|RS|RE|PD)" diff --git a/markdown.nanorc b/markdown.nanorc index 448a396..152f45a 100644 --- a/markdown.nanorc +++ b/markdown.nanorc @@ -4,23 +4,23 @@ syntax "Markdown" "\.(md|mkd|mkdn|markdown)$" color cyan ".*[ :]\|[ :].*" # quotes -color brightblack start="^>" end="^$" -color brightblack "^>.*" +color black start="^>" end="^$" +color black "^>.*" # Emphasis color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" # Strong emphasis -color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" +color green "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" # strike-through color red "(^|[[:space:]])~~[^ ][^~]*~~" # horizontal rules -color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$" +color magenta "^(---+|===+|___+|\*\*\*+)\s*$" # headlines -color brightmagenta "^#{1,6}.*" +color magenta "^#{1,6}.*" # lists color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " @@ -32,14 +32,14 @@ color black "^[[:space:]]+" color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" # links -color brightblue "\[[^]]+\]" -color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)" +color blue "\[[^]]+\]" +color blue "\[([^][]|\[[^]]*\])*\]\([^)]+\)" # images color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])" # urls -color brightyellow "https?://[^ )>]+" +color yellow "https?://[^ )>]+" # code color yellow "`[^`]*`|^ {4}[^-+*].*" diff --git a/mpdconf.nanorc b/mpdconf.nanorc index 3b4220b..e01b211 100644 --- a/mpdconf.nanorc +++ b/mpdconf.nanorc @@ -2,8 +2,8 @@ syntax "MPD" "mpd\.conf$" color cyan "\<(user|group|bind_to_address|host|port|plugin|name|type)\>" color cyan "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>" -color brightmagenta "^(input|audio_output|decoder)[[:space:]]*\{|\}" +color magenta "^(input|audio_output|decoder)[[:space:]]*\{|\}" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/nanorc.nanorc b/nanorc.nanorc index 34aece1..8baea7d 100644 --- a/nanorc.nanorc +++ b/nanorc.nanorc @@ -2,15 +2,15 @@ ## syntax "Nanorc" "\.?nanorc$" ## Possible errors and parameters -icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$" +icolor red "^[[:space:]]*((un)?set|include|syntax|i?color).*$" ## Keywords -icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>" +icolor green "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>" icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\>" ## Colors -icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" +icolor yellow "^[[:space:]]*i?color[[:space:]]*()?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" ## Strings icolor white ""(\\.|[^"])*"" ## Comments -icolor brightblue "^[[:space:]]*#.*$" +icolor blue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$" diff --git a/nginx.nanorc b/nginx.nanorc index bb0f7a7..c911db4 100644 --- a/nginx.nanorc +++ b/nginx.nanorc @@ -1,13 +1,13 @@ syntax "Nginx" "nginx.*\.conf$" "\.nginx$" header "^(server|upstream)[^{]*\{$" -color brightmagenta "\<(events|server|http|location|upstream)[[:space:]]*\{" +color magenta "\<(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|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|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 cyan "\<(on|off)\>" +color yellow "\$[A-Za-z][A-Za-z0-9_]*" color red "[*]" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow start="'$" end="';$" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/ocaml.nanorc b/ocaml.nanorc index f5cd2c7..0ab21bb 100644 --- a/ocaml.nanorc +++ b/ocaml.nanorc @@ -22,6 +22,6 @@ color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" #comments color white start="\(\*" end="\*\)" #strings (no multiline handling yet) -color brightblack ""[^\"]*"" +color black ""[^\"]*"" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/patch.nanorc b/patch.nanorc index 7e9b16a..4f3fa25 100644 --- a/patch.nanorc +++ b/patch.nanorc @@ -1,10 +1,10 @@ ## Here is an example for patch files. ## syntax "Patch" "\.(patch|diff)$" -color brightgreen "^\+.*" +color green "^\+.*" color green "^\+\+\+.*" -color brightblue "^ .*" -color brightred "^-.*" +color blue "^ .*" +color red "^-.*" color red "^---.*" -color brightyellow "^@@.*" +color yellow "^@@.*" color magenta "^diff.*" diff --git a/peg.nanorc b/peg.nanorc index 3229752..2a32047 100644 --- a/peg.nanorc +++ b/peg.nanorc @@ -3,10 +3,10 @@ syntax "PEG" "\.l?peg$" color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-" color blue "\^[+-]?[0-9]+" color red "[-+*?^/!&]|->|<-|=>" -color brightyellow "%[A-Za-z][A-Za-z0-9_]*" +color yellow "%[A-Za-z][A-Za-z0-9_]*" color magenta "\[[^]]*\]" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])\-\-.*$" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])\-\-.*$" +color white,cyan "TODO:?" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/perl6.nanorc b/perl6.nanorc index 572ef04..db20df6 100644 --- a/perl6.nanorc +++ b/perl6.nanorc @@ -3,17 +3,17 @@ ### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc syntax "Perl6" "\.p6$" -color brightblue "\<(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|seekdir|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 brightblue "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" +color blue "\<(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|seekdir|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 blue "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" # Perl 6 words -color brightcyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>" -color brightmagenta start="[$@%]" end="( |\\W|-)" -color brightred "".*"|qq\|.*\|" +color cyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>" +color magenta start="[$@%]" end="( |\\W|-)" +color red "".*"|qq\|.*\|" color white "[sm]/.*/" -color brightblue start="(^use| = new)" end=";" -color brightgreen "#.*" -color brightred start="<]" color white "\->[a-zA-Z_0-9$]*|[=!<>]" @@ -19,13 +19,13 @@ color yellow "[=][^>]" 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 blue "(\$this|parent::|self::|\$this->)" # Bitwise Operations color magenta "(\;|\||\^){1}" # And/Or/SRO/etc color green "(\;\;|\|\||::|=>|->)" # Online Comments -color brightyellow "(#.*|//.*)$" +color yellow "(#.*|//.*)$" # STRINGS! color red "('[^']*')|(\"[^\"]*\")" # Inline Variables @@ -37,4 +37,4 @@ color red start="\?>" end="<\?(php|=)?" # trailing whitespace color ,green "[^[:space:]]{1}[[:space:]]+$" # multi-line comments -color brightyellow start="/\*" end="\*/" +color yellow start="/\*" end="\*/" diff --git a/pkg-config.nanorc b/pkg-config.nanorc index 4c83ce8..8d7e9e7 100644 --- a/pkg-config.nanorc +++ b/pkg-config.nanorc @@ -3,6 +3,6 @@ syntax "PC" "\.pc$" color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):" color cyan "^(Requires|Libs)(\.private)?:" color red "=" -color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}" +color yellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/pkgbuild.nanorc b/pkgbuild.nanorc index ce8a007..b0dd52a 100644 --- a/pkgbuild.nanorc +++ b/pkgbuild.nanorc @@ -3,23 +3,23 @@ syntax "PKGBUILD" "^.*PKGBUILD$" color green start="^." end="$" color cyan "^.*(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" -color brightcyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>" -color brightcyan "(\$|\$\{|\$\()(pkgbase|epoch|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(\}|\))" +color cyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>" +color cyan "(\$|\$\{|\$\()(pkgbase|epoch|pkgname|pkgver|pkgrel|pkgdesc|arch|url|license)(\}|\))" color cyan "^.*(depends|makedepends|optdepends|conflicts|provides|replaces).*=.*$" -color brightcyan "\<(depends|makedepends|optdepends|conflicts|provides|replaces)\>" -color brightcyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(\}|\))" +color cyan "\<(depends|makedepends|optdepends|conflicts|provides|replaces)\>" +color cyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(\}|\))" color cyan "^.*(groups|backup|noextract|options|validpgpkeys).*=.*$" -color brightcyan "\<(groups|backup|noextract|options|validpgpkeys)\>" -color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys)(\}|\))" +color cyan "\<(groups|backup|noextract|options|validpgpkeys)\>" +color cyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys)(\}|\))" color cyan "^.*(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums).*=.*$" -color brightcyan "\<(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" -color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(\}|\))" -color brightcyan "\<(startdir|srcdir|pkgdir)\>" +color cyan "\<(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" +color cyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(\}|\))" +color cyan "\<(startdir|srcdir|pkgdir)\>" color cyan "\.install" -color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}" -color brightred "build\(\)" -color brightred "package_.*.*$" -color brightred "\<(configure|make|cmake|scons)\>" +color white "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}" +color red "build\(\)" +color red "package_.*.*$" +color red "\<(configure|make|cmake|scons)\>" color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>" ## Trailing whitespace diff --git a/po.nanorc b/po.nanorc index d434b2a..eab60ec 100644 --- a/po.nanorc +++ b/po.nanorc @@ -3,6 +3,6 @@ syntax "PO" "\.pot?$" color cyan "\<(msgid|msgstr)\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color magenta "\\.?" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/pov.nanorc b/pov.nanorc index f8cb8b5..08c71c7 100644 --- a/pov.nanorc +++ b/pov.nanorc @@ -1,15 +1,15 @@ ## Here is an example for POV-Ray. ## syntax "POV" "\.(pov|POV|povray|POVRAY)$" -color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" -color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" -color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" -color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" -color brightred "^\<(texture)\>" -color brightred "\<(light_source|background)\>" -color brightred "\<(fog|object|camera)\>" +color cyan "^[[:space:]]*#[[:space:]]*(declare)" +color yellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" +color yellow "\<(orthographic|location|up|right|direction|clipped_by)\>" +color yellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" +color red "^\<(texture)\>" +color red "\<(light_source|background)\>" +color red "\<(fog|object|camera)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" -color brightmagenta "\<(union|group|subgroup)\>" +color magenta "\<(union|group|subgroup)\>" ## Comment highlighting -color brightblue "//.*" -color brightblue start="/\*" end="\*/" +color blue "//.*" +color blue start="/\*" end="\*/" diff --git a/privoxy.nanorc b/privoxy.nanorc index 6f1f609..5c19604 100644 --- a/privoxy.nanorc +++ b/privoxy.nanorc @@ -1,27 +1,27 @@ syntax "Privoxy-config" "privoxy/config$" color cyan "(accept-intercepted-requests|actionsfile|admin-address|allow-cgi-request-crunching|buffer-limit|compression-level|confdir|connection-sharing|debug|default-server-timeout|deny-access|enable-compression|enable-edit-actions|enable-remote-http-toggle|enable-remote-toggle|enforce-blocks|filterfile|forward|forwarded-connect-retries|forward-socks4|forward-socks4a|forward-socks5|handle-as-empty-doc-returns-ok|hostname|keep-alive-timeout|listen-address|logdir|logfile|max-client-connections|permit-access|proxy-info-url|single-threaded|socket-timeout|split-large-forms|templdir|toggle|tolerate-pipelining|trustfile|trust-info-url|user-manual)[[:space:]]" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" syntax "Privoxy-action" "\.action$" -color brightred "[{[:space:]]\-block([[:space:]{}]|$)" -color brightgreen "[{[:space:]]\+block([[:space:]{}]|$)" +color red "[{[:space:]]\-block([[:space:]{}]|$)" +color green "[{[:space:]]\+block([[:space:]{}]|$)" -color brightred "-(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)" -color brightgreen "\+(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)" +color red "-(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)" +color green "\+(add-header|change-x-forwarded-for|client-header-filter|client-header-tagger|content-type-overwrite|crunch-client-header|crunch-if-none-match|crunch-incoming-cookies|crunch-outgoing-cookies|crunch-server-header|deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document|handle-as-image|hide-accept-language|hide-content-disposition|hide-from-header|hide-if-modified-since|hide-referrer|hide-user-agent|limit-connect|overwrite-last-modified|prevent-compression|redirect|server-header-filter|server-header-tagger|session-cookies-only|set-image-blocker)" color magenta "\\.?" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" syntax "Privoxy-filter" "\.filter$" color cyan "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER): [a-z-]+" -color brightblue "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER):" +color blue "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER):" color magenta "\\.?" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/puppet.nanorc b/puppet.nanorc index 8511dc5..4df1071 100644 --- a/puppet.nanorc +++ b/puppet.nanorc @@ -4,8 +4,8 @@ syntax "Puppet" "\.pp$" #This goes first, so the normal builtins will override in some classes ## Paramerers -color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)" -color brightgreen "\$[a-z:][a-z0-9_:]+" +color white "^[[:space:]]([a-z][a-z0-9_]+)" +color green "\$[a-z:][a-z0-9_:]+" ## List of built in types, also catches defines color yellow "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|anchor)\>" @@ -13,26 +13,26 @@ color yellow "\<(class|define|if|else|undef|inherits)\>" color red "(=|-|~|>)" ## Constants -color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +color blue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" ## Ruby "symbols" color magenta "([ ]|^):[0-9A-Z_]+\>" ## Regular expressions -color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +color magenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" ## Shell command expansion is in `backticks` or like %x{this}. These are ## "double-quotish" (to use a perlism). -color brightblue "`[^`]*`" "%x\{[^}]*\}" +color blue "`[^`]*`" "%x\{[^}]*\}" ## Strings, double-quoted color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" ## Expression substitution. These go inside double-quoted strings, ## "like ${this}". -color brightgreen "\$\{[^}]*\}" +color green "\$\{[^}]*\}" ## Strings, single-quoted color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" ## Comments color cyan "#[^{].*$" "#$" -color brightcyan "##[^{].*$" "##$" +color cyan "##[^{].*$" "##$" ## Some common markers -color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +color cyan "(XXX|TODO|FIXME|\?\?\?)" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/python.nanorc b/python.nanorc index 29b9e3c..9b30d67 100644 --- a/python.nanorc +++ b/python.nanorc @@ -14,14 +14,14 @@ color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|_ ## exception classes # color cyan "\<(Exception|StandardError|ArithmeticError|LookupError|EnvironmentError|AssertionError|AttributeError|EOFError|FloatingPointError|IOError|ImportError|IndexError|KeyError|KeyboardInterrupt|MemoryError|NameError|NotImplementedError|OSError|OverflowError|RuntimeError|SyntaxError|SystemError|SystemExit|TypeError|UnboundLocalError|UnicodeError|ValueError|WindowsError|ZeroDivisionError)\>" ## types -color brightcyan "\<(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\>" +color cyan "\<(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringType|UnicodeType|BufferType|TupleType|ListType|DictType|FunctionType|LambdaType|CodeType|ClassType|UnboundMethodType|InstanceType|MethodType|BuiltinFunctionType|BuiltinMethodType|ModuleType|FileType|XRangeType|TracebackType|FrameType|SliceType|EllipsisType)\>" ## definitions -color brightcyan "def [a-zA-Z_0-9]+" +color cyan "def [a-zA-Z_0-9]+" ## keywords -color brightblue "\<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|with|while|yield)\>" +color blue "\<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|with|while|yield)\>" ## decorators -color brightgreen "@.*[(]" +color green "@.*[(]" ## operators color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" diff --git a/reST.nanorc b/reST.nanorc index c0152fd..40867c2 100644 --- a/reST.nanorc +++ b/reST.nanorc @@ -5,7 +5,7 @@ syntax "RST" "\.rest$" "\.rst$" # bold color red "\*\*[^*]+\*\*" # code block -color brightred "::" +color red "::" # link reference color blue "`[^`]+`_{1,2}" # code diff --git a/rpmspec.nanorc b/rpmspec.nanorc index eab8ee5..d4659ed 100644 --- a/rpmspec.nanorc +++ b/rpmspec.nanorc @@ -11,17 +11,17 @@ color cyan start="^(Source|Patch)" end=":" color cyan "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)" color cyan "(ifarch|ifnarch|ifos|ifnos)" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightyellow "%(if|else|endif|define|global|undefine)" -color brightyellow "%_?([A-Z_a-z_0-9_]*)" -color brightyellow start="%\{" end="\}" -color brightyellow start="%\{__" end="\}" -color brightyellow "\$(RPM_BUILD_ROOT)\>" -color brightmagenta "^%(build$|changelog|check$|clean$|description)" -color brightmagenta "^%(files|install$|package|prep$)" -color brightmagenta "^%(pre|preun|pretrans|post|postun|posttrans)" -color brightmagenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color yellow "%(if|else|endif|define|global|undefine)" +color yellow "%_?([A-Z_a-z_0-9_]*)" +color yellow start="%\{" end="\}" +color yellow start="%\{__" end="\}" +color yellow "\$(RPM_BUILD_ROOT)\>" +color magenta "^%(build$|changelog|check$|clean$|description)" +color magenta "^%(files|install$|package|prep$)" +color magenta "^%(pre|preun|pretrans|post|postun|posttrans)" +color magenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" +color black "(^|[[:space:]])#([^{].*)?$" color blue "^\*.*$" color ,green "[[:space:]]+$" color ,red " + +| + +" -color brightwhite,cyan "TODO:?" +color white,cyan "TODO:?" diff --git a/ruby.nanorc b/ruby.nanorc index ca4f3a6..6ff07b5 100644 --- a/ruby.nanorc +++ b/ruby.nanorc @@ -6,29 +6,29 @@ header "^#!.*/(env +)?ruby( |$)" ## Asciibetical list of reserved words color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>" ## Constants -color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" +color blue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" ## Ruby "symbols" icolor magenta "([ ]|^):[0-9A-Z_]+\>" ## Some unique things we want to stand out -color brightyellow "\<(__FILE__|__LINE__)\>" +color yellow "\<(__FILE__|__LINE__)\>" ## Regular expressions -color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" +color magenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" ## Shell command expansion is in `backticks` or like %x{this}. These are ## "double-quotish" (to use a perlism). -color brightblue "`[^`]*`" "%x\{[^}]*\}" +color blue "`[^`]*`" "%x\{[^}]*\}" ## Strings, double-quoted color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" ## Expression substitution. These go inside double-quoted strings, ## "like #{this}". -color brightgreen "#\{[^}]*\}" +color green "#\{[^}]*\}" ## Strings, single-quoted color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" ## Comments color cyan "#[^{].*$" "#$" -color brightcyan "##[^{].*$" "##$" +color cyan "##[^{].*$" "##$" ## "Here" docs color green start="<<-?'?EOT'?" end="^EOT" ## Some common markers -color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +color cyan "(XXX|TODO|FIXME|\?\?\?)" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/rust.nanorc b/rust.nanorc index 3d3c17a..70e291c 100644 --- a/rust.nanorc +++ b/rust.nanorc @@ -33,7 +33,7 @@ color blue start="/\*" end="\*/" color magenta start="#!\[" end="\]" # Some common markers -color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +color cyan "(XXX|TODO|FIXME|\?\?\?)" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/scala.nanorc b/scala.nanorc index d116dc4..f5e4265 100644 --- a/scala.nanorc +++ b/scala.nanorc @@ -8,5 +8,5 @@ color red ""[^"]*"" color yellow "\<(true|false|null)\>" color blue "//.*" color blue start="/\*" end="\*/" -color brightblue start="/\*\*" end="\*/" +color blue start="/\*\*" end="\*/" color ,green "[[:space:]]+$" diff --git a/sed.nanorc b/sed.nanorc index 286c8ca..bc0ee7b 100644 --- a/sed.nanorc +++ b/sed.nanorc @@ -2,8 +2,8 @@ syntax "SED" "\.sed$" header "^#!.*bin/(env +)?sed( |$)" color red "[|^$.*+]" -color brightyellow "\{[0-9]+,?[0-9]*\}" +color yellow "\{[0-9]+,?[0-9]*\}" color magenta "\\." -color brightblack "(^|[[:space:]])#([^{].*)?$" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/sh.nanorc b/sh.nanorc index a3854c9..fcaf663 100644 --- a/sh.nanorc +++ b/sh.nanorc @@ -7,9 +7,9 @@ color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|rea color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "-[Ldefgruwx]\>" color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" -color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" -icolor brightgreen "^\s+[0-9A-Z_]+\s+\(\)" -icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" -color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color blue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +icolor green "^\s+[0-9A-Z_]+\s+\(\)" +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" +color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color cyan "(^|[[:space:]])#.*$" color ,green "[[:space:]]+$" diff --git a/sls.nanorc b/sls.nanorc index c8affff..9d98b9c 100644 --- a/sls.nanorc +++ b/sls.nanorc @@ -20,7 +20,7 @@ color green ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>" # Comments -color brightblack "^#.*" +color black "^#.*" # Logic keywords color magenta "\<(if|elif|else|or|not|and|endif|end)\>" diff --git a/sql.nanorc b/sql.nanorc index 1ebd574..43b05d8 100644 --- a/sql.nanorc +++ b/sql.nanorc @@ -24,11 +24,11 @@ color green "\<(VARCHAR|TINYINT|TEXT|DATE|SMALLINT|MEDIUMINT|INT|INTEGER|BIG 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 cyan "\<(ON|OFF)\>" color blue "\<([0-9]+)\>" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow "`(\\.|[^\\`])*`" -color brightblack "\-\-.*$" +color black "\-\-.*$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/svn.nanorc b/svn.nanorc index c2f89ab..8489b5f 100644 --- a/svn.nanorc +++ b/svn.nanorc @@ -4,11 +4,11 @@ syntax "svn-commit" "svn-commit(\.[[:digit:]]+)?\.tmp$" color yellow ".*" # ignore after line EDITOR_EOF_PREFIX (see svn/util.c) -color brightblack "^--.+--$" +color black "^--.+--$" # files changes color white "^[ADM_](M|[[:space:]])[[:space:]](\+|[[:space:]])[[:space:]].*" color red "^D[[:space:]]{4}" color green "^[M_](M|[[:space:]])[[:space:]]{3}" -color brightgreen "^A(M|[[:space:]])[[:space:]]{3}" -color brightblue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]" +color green "^A(M|[[:space:]])[[:space:]]{3}" +color blue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]" diff --git a/swift.nanorc b/swift.nanorc index d1af78e..f28d808 100644 --- a/swift.nanorc +++ b/swift.nanorc @@ -9,7 +9,7 @@ color white ".+" # Operators color yellow "[.:;,+*|=!?\%]" "<" ">" "/" "-" "&" -color brightyellow "[!]" +color yellow "[!]" # Statements color magenta "\<(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|static|private|public|throws)\>" @@ -35,10 +35,10 @@ color blue "\<(0o+[0-7]+)\>" color blue "\<(0x+[0-9A-Fa-f]+)\>" # Standard Types -color brightmagenta "\<((U)?Int(8|16|32|64))\>" -color brightmagenta "\<(true|false|nil)\>" -color brightmagenta "\<(UInt|Int|Double|String|Float|Bool|Dictionary|Array|Character|Range|Set|Bit|RawByte|Slice)\>" -color brightmagenta "\<(UnicodeScalar|UnsafePointer|UnsafeMutablePointer)\>" +color magenta "\<((U)?Int(8|16|32|64))\>" +color magenta "\<(true|false|nil)\>" +color magenta "\<(UInt|Int|Double|String|Float|Bool|Dictionary|Array|Character|Range|Set|Bit|RawByte|Slice)\>" +color magenta "\<(UnicodeScalar|UnsafePointer|UnsafeMutablePointer)\>" color magenta "\<(AnyObject)\>" # Standard Type Aliases and Protocols @@ -56,7 +56,7 @@ color white start="\\\(" end="\)" # Comments color green "//.*" -color brightgreen "///.*" +color green "///.*" color green start="/\*\*" end="\*/" color green "[/**]" diff --git a/systemd.nanorc b/systemd.nanorc index f4b9bf5..696aa3a 100644 --- a/systemd.nanorc +++ b/systemd.nanorc @@ -2,11 +2,11 @@ syntax "Systemd" "\.(service|socket)$" header "^\[Unit\]$" color cyan "^(Accept|After|Alias|AllowIsolate|Also|ANSI_COLOR|_AUDIT_LOGINUID|_AUDIT_SESSION|Backlog|Before|BindIPv6Only|BindsTo|BindToDevice|BlockIOReadBandwidth|BlockIOWeight|BlockIOWriteBandwidth|_BOOT_ID|Broadcast|BUG_REPORT_URL|BusName|Capabilities|CapabilityBoundingSet|CHASSIS|cipher|class|_CMDLINE|CODE_FILE|CODE_FUNC|CODE_LINE|_COMM|Compress|ConditionACPower|ConditionCapability|ConditionDirectoryNotEmpty|ConditionFileIsExecutable|ConditionFileNotEmpty|ConditionHost|ConditionKernelCommandLine|ConditionNull|ConditionPathExists|ConditionPathExistsGlob|ConditionPathIsDirectory|ConditionPathIsMountPoint|ConditionPathIsReadWrite|ConditionPathIsSymbolicLink|ConditionSecurity|ConditionVirtualization|Conflicts|ControlGroup|ControlGroupAttribute|ControlGroupModify|ControlGroupPersistent|controllers|Controllers|CPE_NAME|CPUAffinity|CPUSchedulingPolicy|CPUSchedulingPriority|CPUSchedulingResetOnFork|CPUShares|CrashChVT|CrashShell|__CURSOR|debug|DefaultControllers|DefaultDependencies|DefaultLimitAS|DefaultLimitCORE|DefaultLimitCPU|DefaultLimitDATA|DefaultLimitFSIZE|DefaultLimitLOCKS|DefaultLimitMEMLOCK|DefaultLimitMSGQUEUE|DefaultLimitNICE|DefaultLimitNOFILE|DefaultLimitNPROC|DefaultLimitRSS|DefaultLimitRTPRIO|DefaultLimitRTTIME|DefaultLimitSIGPENDING|DefaultLimitSTACK|DefaultStandardError|DefaultStandardOutput|Description|DeviceAllow|DeviceDeny|DirectoryMode|DirectoryNotEmpty|Documentation|DumpCore|entropy|Environment|EnvironmentFile|ERRNO|event_timeout|_EXE|ExecReload|ExecStart|ExecStartPost|ExecStartPre|ExecStop|ExecStopPost|ExecStopPre|filter|FONT|FONT_MAP|FONT_UNIMAP|ForwardToConsole|ForwardToKMsg|ForwardToSyslog|FreeBind|freq|FsckPassNo|fstab|_GID|Group|GuessMainPID|HandleHibernateKey|HandleLidSwitch|HandlePowerKey|HandleSuspendKey|hash|HibernateKeyIgnoreInhibited|HOME_URL|_HOSTNAME|ICON_NAME|ID|IdleAction|IdleActionSec|ID_LIKE|ID_MODEL|ID_MODEL_FROM_DATABASE|IgnoreOnIsolate|IgnoreOnSnapshot|IgnoreSIGPIPE|InaccessibleDirectories|InhibitDelayMaxSec|init|IOSchedulingClass|IOSchedulingPriority|IPTOS|IPTTL|JobTimeoutSec|JoinControllers|KeepAlive|KEYMAP|KEYMAP_TOGGLE|KillExcludeUsers|KillMode|KillOnlyUsers|KillSignal|KillUserProcesses|LidSwitchIgnoreInhibited|LimitAS|LimitCORE|LimitCPU|LimitDATA|LimitFSIZE|LimitLOCKS|LimitMEMLOCK|LimitMSGQUEUE|LimitNICE|LimitNOFILE|LimitNPROC|LimitRSS|LimitRTPRIO|LimitRTTIME|LimitSIGPENDING|LimitSTACK|link_priority|valueListenDatagram|ListenFIFO|ListenMessageQueue|ListenNetlink|ListenSequentialPacket|ListenSpecial|ListenStream|LogColor|LogLevel|LogLocation|LogTarget|luks|_MACHINE_ID|MakeDirectory|Mark|MaxConnections|MaxFileSec|MaxLevelConsole|MaxLevelKMsg|MaxLevelStore|MaxLevelSyslog|MaxRetentionSec|MemoryLimit|MemorySoftLimit|MESSAGE|MESSAGE_ID|MessageQueueMaxMessages|MessageQueueMessageSize|__MONOTONIC_TIMESTAMP|MountFlags|NAME|NAutoVTs|Nice|NonBlocking|NoNewPrivileges|NotifyAccess|OnActiveSec|OnBootSec|OnCalendar|OnFailure|OnFailureIsolate|OnStartupSec|OnUnitActiveSec|OnUnitInactiveSec|OOMScoreAdjust|Options|output|PAMName|PartOf|PassCredentials|PassSecurity|PathChanged|PathExists|PathExistsGlob|PathModified|PermissionsStartOnly|_PID|PIDFile|PipeSize|PowerKeyIgnoreInhibited|PRETTY_HOSTNAME|PRETTY_NAME|Priority|PRIORITY|PrivateNetwork|PrivateTmp|PropagatesReloadTo|pss|RateLimitBurst|RateLimitInterval|ReadOnlyDirectories|ReadWriteDirectories|__REALTIME_TIMESTAMP|ReceiveBuffer|RefuseManualStart|RefuseManualStop|rel|ReloadPropagatedFrom|RemainAfterExit|RequiredBy|Requires|RequiresMountsFor|RequiresOverridable|Requisite|RequisiteOverridable|ReserveVT|ResetControllers|Restart|RestartPreventExitStatus|RestartSec|RootDirectory|RootDirectoryStartOnly|RuntimeKeepFree|RuntimeMaxFileSize|RuntimeMaxUse|RuntimeWatchdogSec|samples|scale_x|scale_y|Seal|SecureBits|_SELINUX_CONTEXT|SendBuffer|SendSIGKILL|Service|ShowStatus|ShutdownWatchdogSec|size|SmackLabel|SmackLabelIPIn|SmackLabelIPOut|SocketMode|Sockets|SourcePath|_SOURCE_REALTIME_TIMESTAMP|SplitMode|StandardError|StandardInput|StandardOutput|StartLimitAction|StartLimitBurst|StartLimitInterval|static_node|StopWhenUnneeded|Storage|string_escape|none|replaceSuccessExitStatus|SupplementaryGroups|SUPPORT_URL|SuspendKeyIgnoreInhibited|SyslogFacility|SYSLOG_FACILITY|SyslogIdentifier|SYSLOG_IDENTIFIER|SyslogLevel|SyslogLevelPrefix|SYSLOG_PID|SystemCallFilter|SYSTEMD_ALIAS|_SYSTEMD_CGROUP|_SYSTEMD_OWNER_UID|SYSTEMD_READY|_SYSTEMD_SESSION|_SYSTEMD_UNIT|_SYSTEMD_USER_UNIT|SYSTEMD_WANTS|SystemKeepFree|SystemMaxFileSize|SystemMaxUse|SysVStartPriority|TCPCongestion|TCPWrapName|timeout|TimeoutSec|TimeoutStartSec|TimeoutStopSec|TimerSlackNSec|Transparent|_TRANSPORT|tries|TTYPath|TTYReset|TTYVHangup|TTYVTDisallocate|Type|_UID|UMask|Unit|User|UtmpIdentifier|VERSION|VERSION_ID|WantedBy|Wants|WatchdogSec|What|Where|WorkingDirectory)=" -color brightblue "^\.include\>" +color blue "^\.include\>" color red "=" -color brightmagenta "^\[(Unit|Install|Service|Socket)\]" -color brightyellow "\$MAINPID" -color brightcyan "\<(true|false)\>" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color magenta "^\[(Unit|Install|Service|Socket)\]" +color yellow "\$MAINPID" +color cyan "\<(true|false)\>" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/tcl.nanorc b/tcl.nanorc index 7829cb0..5a7a8be 100644 --- a/tcl.nanorc +++ b/tcl.nanorc @@ -9,15 +9,15 @@ color cyan "\<(string bytelength|string compare|string equal|string first|string ## Extended TclX [info commands] color cyan "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>" ## Function declaration -color brightblue "proc[[:space:]]" "(\{|\})" +color blue "proc[[:space:]]" "(\{|\})" ## Syntax color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)" ## Numbers -color brightyellow "\<[0-9]+(\.[0-9]+)?\>" +color yellow "\<[0-9]+(\.[0-9]+)?\>" ## Strings color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" ## Variables -icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" ## Comments color magenta "(^|;)[[:space:]]*#.*" ## Trailing whitespace diff --git a/vala.nanorc b/vala.nanorc index 52f58b9..455249e 100644 --- a/vala.nanorc +++ b/vala.nanorc @@ -1,18 +1,18 @@ syntax "Vala" "\.vala$" color green "\<(float|double|bool|char|int|uint|short|long|void|(un)?signed)\>" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color blue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color cyan "\<(for|if|while|do|else|case|default|switch|try|throw|catch)\>" color cyan "\<(inline|typedef|struct|enum|union|extern|static|const)\>" color cyan "\<(operator|new|delete|return|null)\>" color cyan "\<(class|override|private|public|signal|this|weak)\>" -color brightred "\<(goto|break|continue)\>" -color brightcyan "\<(true|false)\>" +color red "\<(goto|break|continue)\>" +color cyan "\<(true|false)\>" color blue "\<([0-9]+)\>" color red "[-+/*=<>?:!~%&|]" "->" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])//.*" -color brightblack start="/\*" end="\*/" -color brightwhite,cyan "TODO:?" +color black "(^|[[:space:]])//.*" +color black start="/\*" end="\*/" +color white,cyan "TODO:?" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/verilog.nanorc b/verilog.nanorc index 820b53d..a174b55 100644 --- a/verilog.nanorc +++ b/verilog.nanorc @@ -21,12 +21,12 @@ syntax "verilog" "\.(v|vh|sv|svh)$" # I don't think we want this. -#color brightred "\<[A-Z_][0-9A-Z_]+\>" +#color red "\<[A-Z_][0-9A-Z_]+\>" # Module, package, etc. definitions: colorize their names. -# (I'm not sure if brightred is a good color). -icolor brightred "(module|package|task|interface|program|class) [0-9A-Z_]+" -icolor brightred "function [0-9A-Z_]+ [0-9A-Z_]+" +# (I'm not sure if red is a good color). +icolor red "(module|package|task|interface|program|class) [0-9A-Z_]+" +icolor red "function [0-9A-Z_]+ [0-9A-Z_]+" # Verilog keywords, taken from http://svref.renerta.com/sv00003.htm. color green "\<(always|and|assign|automatic|begin|buf|bufif0|bufif1|case|casex|casez|cell|class|cmos|config)\>" @@ -64,18 +64,18 @@ icolor cyan "\$[0-9A-Z_]+" icolor cyan "^[[:space:]]*`[0-9A-Z_]+" # I'm not sure what this line does... it was in c.nanorc. -#color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" +#color magenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" # Strings. In general you will want your strings and comments to come last, # because highlighting rules are applied in the order they are read in. -color brightyellow ""([^"]|\\")*"" "<[^[:blank:]=]*>" +color yellow ""([^"]|\\")*"" "<[^[:blank:]=]*>" # Multiline strings. This regex is VERY resource intensive, # and sometimes colours things that shouldn't be coloured. -###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" +###color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" # Comments. -color brightblue "//.*" -color brightblue start="/\*" end="\*/" +color blue "//.*" +color blue start="/\*" end="\*/" # Reminders. color ,yellow "\<(FIXME|TODO|XXX)\>" diff --git a/vi.nanorc b/vi.nanorc index a2e2888..7a03b72 100644 --- a/vi.nanorc +++ b/vi.nanorc @@ -1,10 +1,10 @@ syntax "VI" "(^|/|\.)(ex|vim)rc$|\.vim" -color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" +color blue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color cyan "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>" color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>" color red "[!&=]" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" -color brightblack "(^|[[:space:]])\"[^"]*$" +color black "(^|[[:space:]])\"[^"]*$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/xresources.nanorc b/xresources.nanorc index 7773642..3ab057f 100644 --- a/xresources.nanorc +++ b/xresources.nanorc @@ -1,10 +1,10 @@ syntax "Xresources" "X(defaults|resources)$" color green "^[[:alnum:]]+\*" -color brightyellow "\*[[:alnum:]]+\:" +color yellow "\*[[:alnum:]]+\:" color blue "\<[0-9]+\>" color red "[*:=]" -color brightcyan "\<(true|false)\>" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color cyan "\<(true|false)\>" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/yaml.nanorc b/yaml.nanorc index b079c72..69d5d0e 100644 --- a/yaml.nanorc +++ b/yaml.nanorc @@ -14,8 +14,8 @@ color yellow "[:-]\s+[0-9]+\.?[0-9]*(\s*($|#))" color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " # Separator -color brightwhite "^\s+-" -color brightwhite ":(\s|\t|$)" +color white "^\s+-" +color white ":(\s|\t|$)" # Comments -color brightblue "(^|[[:space:]])#.*$" +color blue "(^|[[:space:]])#.*$" diff --git a/yum.nanorc b/yum.nanorc index b463922..0d7aa13 100644 --- a/yum.nanorc +++ b/yum.nanorc @@ -1,8 +1,8 @@ syntax "YUM" "\.repo$|yum.*\.conf$" color cyan "^[[:space:]]*[^=]*=" -color brightmagenta "^[[:space:]]*\[.*\]$" -color brightyellow "\$(releasever|arch|basearch|uuid|YUM[0-9])" -color brightblack "(^|[[:space:]])#([^{].*)?$" +color magenta "^[[:space:]]*\[.*\]$" +color yellow "\$(releasever|arch|basearch|uuid|YUM[0-9])" +color black "(^|[[:space:]])#([^{].*)?$" color ,green "[[:space:]]+$" color ,red " + +| + +" diff --git a/zsh.nanorc b/zsh.nanorc index 4e77b36..be08392 100644 --- a/zsh.nanorc +++ b/zsh.nanorc @@ -3,7 +3,7 @@ syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout|zsh-theme)$" header "^#!.*/(env +)?zsh( |$)" ## Numbers -color brightyellow "\b[0-9]+\b" +color yellow "\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)\>" @@ -14,21 +14,21 @@ 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)\>" +color blue "\<((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)\>" +color blue "\<(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)\>" +color magenta "\<((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)\>" +color magenta "\<(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+\(\)" +icolor green "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" ## Variables -icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" ## Strings color yellow ""(\\.|[^"])*"" @@ -36,7 +36,7 @@ color yellow "'(\\.|[^'])*'" ## Comments color cyan "(^|[[:space:]])#.*$" -color brightcyan "(^|[[:space:]])##.*$" +color cyan "(^|[[:space:]])##.*$" ## Trailing spaces color ,green "[[:space:]]+$" diff --git a/zshrc.nanorc b/zshrc.nanorc deleted file mode 120000 index 925a14a..0000000 --- a/zshrc.nanorc +++ /dev/null @@ -1 +0,0 @@ -zsh.nanorc \ No newline at end of file diff --git a/zshrc.nanorc b/zshrc.nanorc new file mode 100644 index 0000000..be08392 --- /dev/null +++ b/zshrc.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 yellow "\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 blue "\<((un)?alias|bindkey|builtin|cd|command|declare|eval|exec|export|jobs|let|popd|pushd|set|source|typeset|umask|unset)\>" +## ZSH-specific +color blue "\<(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 magenta "\<((g|ig)?awk|find|diff|\w{0,4}grep|kill|killall|\w{0,4}less|make|pkill|sed|sudo|tar)\>" + +## Coreutils commands +color magenta "\<(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 green "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" + +## Variables +icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?" + +## Strings +color yellow ""(\\.|[^"])*"" +color yellow "'(\\.|[^'])*'" + +## Comments +color cyan "(^|[[:space:]])#.*$" +color cyan "(^|[[:space:]])##.*$" + +## Trailing spaces +color ,green "[[:space:]]+$"