no bright colors

This commit is contained in:
mcnesium 2018-08-09 10:09:19 +02:00
parent 5df33247d6
commit 35500389a6
No known key found for this signature in database
GPG Key ID: 2A31E2EB03E575F5
85 changed files with 600 additions and 480 deletions

View File

@ -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:]]" icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]"
## Brackets & parenthesis ## Brackets & parenthesis
color brightgreen "(\(|\)|\[|\])" color green "(\(|\)|\[|\])"
## Double ampersand ## Double ampersand
color brightmagenta "&&" color magenta "&&"
## Comments ## Comments
icolor cyan "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*#.*$"
@ -17,10 +17,10 @@ icolor cyan "^[[:space:]]*#.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
## Strings, single-quoted ## Strings, single-quoted
color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color white "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Strings, double-quoted ## 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 ## Single and double quotes
color brightyellow "('|\")" color yellow "('|\")"

View File

@ -1,45 +1,45 @@
# Apache files # Apache files
syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess" syntax "Apacheconf" "httpd\.conf|mime\.types|vhosts\.d\\*|\.htaccess"
color yellow ".+" color yellow ".+"
color brightcyan "(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)" color cyan "(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 cyan "(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 cyan "(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 cyan "(Anonymous_VerifyEmail|AssignUserID|AuthAuthoritative|AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm)"
color brightcyan "(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)" color cyan "(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)"
color brightcyan "(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)" color cyan "(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)"
color brightcyan "(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)" color cyan "(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)"
color brightcyan "(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)" color cyan "(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)"
color brightcyan "(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)" color cyan "(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)"
color brightcyan "(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)" color cyan "(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)"
color brightcyan "(CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckSpelling|ChildPerUserID|ContentDigest|CookieDomain|CookieExpires|CookieLog|CookieName)" color cyan "(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 cyan "(CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavLockDB|DavMinTimeout|DefaultIcon|DefaultLanguage|DefaultType)"
color brightcyan "(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)" color cyan "(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)"
color brightcyan "(DocumentRoot|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|Example|ExpiresActive|ExpiresByType)" color cyan "(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 cyan "(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 cyan "(HeaderName|HostnameLookups|IdentityCheck|IfDefine|IfModule|IfVersion|ImapBase|ImapDefault|ImapMenu|Include|IndexIgnore|IndexOptions|IndexOrderDefault)"
color brightcyan "(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)" color cyan "(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)"
color brightcyan "(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)" color cyan "(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)"
color brightcyan "(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)" color cyan "(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)"
color brightcyan "(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)" color cyan "(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)"
color brightcyan "(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)" color cyan "(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)"
color brightcyan "(MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads)" color cyan "(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 cyan "(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 cyan "(ProtocolEcho|Proxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyIOBufferSize|ProxyMatch|ProxyMaxForwards|ProxyPass|ProxyPassReverse)"
color brightcyan "(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)" color cyan "(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)"
color brightcyan "(RedirectPermanent|RedirectTemp|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader)" color cyan "(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 cyan "(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 cyan "(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 cyan "(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 cyan "(SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSLCACertificateFile|SSLCACertificatePath)"
color brightcyan "(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)" color cyan "(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)"
color brightcyan "(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)" color cyan "(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)"
color brightcyan "(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)" color cyan "(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)"
color brightcyan "(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)" color cyan "(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)"
color brightcyan "(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)" color cyan "(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)"
color brightcyan "(VirtualDocumentRootIP|VirtualHost|VirtualScriptAlias|VirtualScriptAliasIP|Win32DisableAcceptEx|XBitHack)" color cyan "(VirtualDocumentRootIP|VirtualHost|VirtualScriptAlias|VirtualScriptAliasIP|Win32DisableAcceptEx|XBitHack)"
color yellow "<[^>]+>" color yellow "<[^>]+>"
color brightcyan "</?[A-Za-z]+" color cyan "</?[A-Za-z]+"
color brightcyan "(<|</|>)" color cyan "(<|</|>)"
color green "\"(\\.|[^\"])*\"" color green "\"(\\.|[^\"])*\""
color white "#.*" color white "#.*"

View File

@ -29,7 +29,7 @@
syntax "INO" "\.?ino$" 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\>" 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)\>" color green "\<(boolean|byte|char|float|int|long|word)\>"
## Control Structions ## 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)\>" color magenta "\<(goto|continue|break|return)\>"
## Math ## 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 ## Bits & Bytes
color brightyellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>" color yellow "\<(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\>"
## Analog I/O ## Analog I/O
color brightyellow "\<(analogReference|analogRead|analogWrite)\>" color yellow "\<(analogReference|analogRead|analogWrite)\>"
## External Interrupts ## External Interrupts
color brightyellow "\<(attachInterrupt|detachInterrupt)\>" color yellow "\<(attachInterrupt|detachInterrupt)\>"
## Time ## Time
color brightyellow "\<(delay|delayMicroseconds|millis|micros)\>" color yellow "\<(delay|delayMicroseconds|millis|micros)\>"
## Digital I/O ## Digital I/O
color brightyellow "\<(pinMode|digitalWrite|digitalRead)\>" color yellow "\<(pinMode|digitalWrite|digitalRead)\>"
## Interrupts ## Interrupts
color brightyellow "\<(interrupts|noInterrupts)\>" color yellow "\<(interrupts|noInterrupts)\>"
## Advanced I/O ## Advanced I/O
color brightyellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>" color yellow "\<(noTone|pulseIn|shiftIn|shiftOut|tone)\>"
## Serial ## Serial
color magenta "\<(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\>" color magenta "\<(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush)\>"
## Structure ## 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 ## GCC builtins
color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__" 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 ## String highlighting. You will in general want your comments and
## strings to come last, because syntax highlighting rules will be ## strings to come last, because syntax highlighting rules will be
## applied in the order they are read in. ## applied in the order they are read in.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" color yellow "<[^= ]*>" ""(\\.|[^"])*""
## This string is VERY resource intensive! ## This string is VERY resource intensive!
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comments ## Comments
color brightblue "//.*" color blue "//.*"
color brightblue start="/\*" end="\*/" color blue start="/\*" end="\*/"
## Trailing whitespace ## Trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -12,12 +12,12 @@ color magenta "^~~~~+$"
color green "^====[[:space:]].*$" color green "^====[[:space:]].*$"
color green "^\^\^\^\^+$" color green "^\^\^\^\^+$"
# h5 # h5
color brightblue "^=====[[:space:]].*$" color blue "^=====[[:space:]].*$"
color brightblue "^\+\+\+\++$" color blue "^\+\+\+\++$"
# attributes # attributes
color brightgreen ":.*:" color green ":.*:"
color brightred "\{[a-z0-9]*\}" color red "\{[a-z0-9]*\}"
color red "\\\{[a-z0-9]*\}" 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}" color cyan "`{1,2}[^']+'{1,2}"
# bullets # bullets
color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]" color magenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
# anchors # anchors
color brightwhite "\[\[.*\]\]" color white "\[\[.*\]\]"
color brightwhite "<<.*>>" color white "<<.*>>"

View File

@ -2,16 +2,16 @@
## ##
syntax "ASM" "\.(S|s|asm)$" syntax "ASM" "\.(S|s|asm)$"
color red "\<[A-Z_]{2,}\>" 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 green "\.(align|file|globl|global|hidden|section|size|type|weak)"
color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" color yellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" icolor red "^[[:space:]]*[.0-9A-Z_]*:"
color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" color cyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
## Highlight strings (note: VERY resource intensive) ## Highlight strings (note: VERY resource intensive)
color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" color yellow "<[^= ]*>" ""(\\.|[^"])*""
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Highlight comments ## Highlight comments
color brightblue "//.*" color blue "//.*"
color brightblue start="/\*" end="\*/" color blue start="/\*" end="\*/"
## Highlight trailing whitespace ## Highlight trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -1,25 +1,25 @@
syntax "AWK" "\.awk$" syntax "AWK" "\.awk$"
header "^#!.*bin/(env +)?awk( |$)" header "^#!.*bin/(env +)?awk( |$)"
color brightyellow "\$[A-Za-z0-9_!@#$*?-]+" color yellow "\$[A-Za-z0-9_!@#$*?-]+"
color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" color yellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" color yellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" color yellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
color brightblue "\<(function|extension|BEGIN|END)\>" color blue "\<(function|extension|BEGIN|END)\>"
color red "[-+*/%^|!=&<>?;:]|\\|\[|\]" color red "[-+*/%^|!=&<>?;:]|\\|\[|\]"
color cyan "\<(for|if|while|do|else|in|delete|exit)\>" color cyan "\<(for|if|while|do|else|in|delete|exit)\>"
color cyan "\<(break|continue|return)\>" color cyan "\<(break|continue|return)\>"
color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>" color blue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" color blue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>" color blue "\<(asort|asorti|gensub|gsub|index|length|match)\>"
color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" color blue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
color brightblue "\<(mktime|strftime|systime)\>" color blue "\<(mktime|strftime|systime)\>"
color brightblue "\<(and|compl|lshift|or|rshift|xor)\>" color blue "\<(and|compl|lshift|or|rshift|xor)\>"
color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>" color blue "\<(bindtextdomain|dcgettext|dcngettext)\>"
color magenta "/.*[^\]/" color magenta "/.*[^\]/"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\." color magenta "\\."
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -1,7 +1,7 @@
## Here is an example for C/C++. ## Here is an example for C/C++.
## ##
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" 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 "\<(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 "\<((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)\>" 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 "\<((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 "\<(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 green "\<(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\>"
color brightmagenta "\<(goto|continue|break|return)\>" color magenta "\<(goto|continue|break|return)\>"
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)"
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 ## GCC builtins
@ -35,8 +35,8 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
#color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" #color cyan start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
## Comment highlighting ## Comment highlighting
color brightblue "//.*" color blue "//.*"
color brightblue start="/\*" end="\*/" color blue start="/\*" end="\*/"
## Trailing whitespace ## Trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -5,29 +5,29 @@ syntax "clojure" "\.((clj[s|c]?)|edn)"
icolor green "defn? [0-9A-Z_]+" icolor green "defn? [0-9A-Z_]+"
color brightgreen "[#']" color green "[#']"
color brightgreen "\<fn\>" color green "\<fn\>"
color green "\<(map|reduce|filter|println)\>" color green "\<(map|reduce|filter|println)\>"
color brightyellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>" color yellow "\<(if(-(let|not))?|condp?|when(-(let|not))?)\>"
color brightyellow "\<(do(all|run|seq|sync)?|recur|loop)\>" color yellow "\<(do(all|run|seq|sync)?|recur|loop)\>"
color brightyellow "\<(try|catch|finally|throw)\>" color yellow "\<(try|catch|finally|throw)\>"
color yellow "(\:else) " color yellow "(\:else) "
color brightcyan "\<(require|use|import|ns)\>" color cyan "\<(require|use|import|ns)\>"
color cyan "(\:(require|use|import)) " color cyan "(\:(require|use|import)) "
color brightred "\<(let(fn)?|defn?)\>" color red "\<(let(fn)?|defn?)\>"
color brightwhite "\((\/|((not|[<>\=])?\=?))" color white "\((\/|((not|[<>\=])?\=?))"
color brightwhite "\((\+|-|\*)'?" color white "\((\+|-|\*)'?"
color brightwhite "\<(and|or|not|mod|quot|rem|inc|dec)\>" color white "\<(and|or|not|mod|quot|rem|inc|dec)\>"
color magenta "[\(\)]" color magenta "[\(\)]"
color magenta "(\[|\])" color magenta "(\[|\])"
color yellow "\<(true|false|nil)\>" color yellow "\<(true|false|nil)\>"
color brightyellow "(["][^"]*[^\\]["])|("")" color yellow "(["][^"]*[^\\]["])|("")"
color brightblue ";.*$" color blue ";.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -3,23 +3,23 @@
syntax "CMake" "(CMakeLists\.txt|\.cmake)$" syntax "CMake" "(CMakeLists\.txt|\.cmake)$"
icolor green "^[[:space:]]*[A-Z0-9_]+" 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)\>" icolor green "^[[: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 green "\<(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:]]" 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 #String Color
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
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)?)\>" color magenta "\<(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\>"
icolor brightblue "^([[:space:]]*)?#.*" icolor blue "^([[:space:]]*)?#.*"
icolor brightblue "[[:space:]]#.*" icolor blue "[[:space:]]#.*"
## Trailing whitespace ## Trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -2,15 +2,15 @@ syntax "CoffeeScript" "\.coffee$"
header "^#!.*/(env +)?coffee" header "^#!.*/(env +)?coffee"
color red "[!&|=\/*+\-\<\>]|\<(and|or|is|isnt|not)\>" color red "[!&|=\/*+\-\<\>]|\<(and|or|is|isnt|not)\>"
color brightblue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->" color blue "[A-Za-z_][A-Za-z0-9_]*:[[:space:]]*(->|\()" "->"
color brightblue "[()]" color blue "[()]"
color cyan "\<(for|of|continue|break|isnt|null|unless|this|else|if|return)\>" 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 "\<(try|catch|finally|throw|new|delete|typeof|in|instanceof)\>"
color cyan "\<(debugger|switch|while|do|class|extends|super)\>" color cyan "\<(debugger|switch|while|do|class|extends|super)\>"
color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>" color cyan "\<(undefined|then|unless|until|loop|of|by|when)\>"
color brightcyan "\<(true|false|yes|no|on|off)\>" color cyan "\<(true|false|yes|no|on|off)\>"
color brightyellow "@[A-Za-z0-9_]*" color yellow "@[A-Za-z0-9_]*"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -9,9 +9,9 @@ color blue "\<blue\>"
color magenta "\<magenta\>" color magenta "\<magenta\>"
color cyan "\<cyan\>" color cyan "\<cyan\>"
color brightred "\<brightred\>" color red "\<red\>"
color brightgreen "\<brightgreen\>" color green "\<green\>"
color brightyellow "\<brightyellow\>" color yellow "\<yellow\>"
color brightblue "\<brightblue\>" color blue "\<blue\>"
color brightmagenta "\<brightmagenta\>" color magenta "\<magenta\>"
color brightcyan "\<brightcyan\>" color cyan "\<cyan\>"

View File

@ -5,7 +5,7 @@ syntax "Conf" "\.c[o]?nf$"
## Strings ## Strings
icolor white ""(\\.|[^"])*"" icolor white ""(\\.|[^"])*""
## Comments ## Comments
icolor brightblue "^[[:space:]]*#.*$" icolor blue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$" icolor cyan "^[[:space:]]*##.*$"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -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)\>" 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 ## 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 cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightred "^TEXT$" color red "^TEXT$"

View File

@ -7,9 +7,9 @@ color green "\<(break|breaksw|case|continue|default|else|end|endif|endsw|exec|ex
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>" color green "-[rfuMZwdgAUxlkebtAGoczpPsS]\>"
color green "-(A\:|M\:|U\:|G\:)\>" 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)\>" 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 brightgreen "^\s+[0-9A-Z_]+\s+\(\)" icolor green "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$" color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -1,26 +1,26 @@
syntax "C#" "\.cs$" syntax "C#" "\.cs$"
# Class # Class
color brightmagenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?" color magenta "class +[A-Za-z0-9]+ *((:) +[A-Za-z0-9.]+)?"
# Annotation # Annotation
color magenta "@[A-Za-z]+" 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 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 "\<(alias|as|case|catch|checked|default|do|dynamic|else|finally|fixed|for|foreach|goto|if|is|lock|new|null|return|switch|throw|try|unchecked|while)\>"
color cyan "\<(abstract|async|class|const|delegate|enum|event|explicit|extern|get|implicit|in|internal|interface|namespace|operator|out|override|params|partial|private|protected|public|readonly|ref|sealed|set|sizeof|stackalloc|static|struct|typeof|unsafe|using|value|virtual|volatile|yield)\>" color cyan "\<(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) # 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 cyan "\<(from|where|select|group|info|orderby|join|let|in|on|equals|by|ascending|descending)\>"
color brightred "\<(break|continue)\>" color red "\<(break|continue)\>"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|]" color red "[-+/*=<>?:!~%&|]"
color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>" color blue "\<([0-9._]+|0x[A-Fa-f0-9_]+|0b[0-1_]+)[FL]?\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\([btnfr]|'|\"|\\)" color magenta "\\([btnfr]|'|\"|\\)"
color magenta "\\u[A-Fa-f0-9]{4}" color magenta "\\u[A-Fa-f0-9]{4}"
color brightblack "(^|[[:space:]])//.*" color black "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/" color black start="/\*" end="\*/"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -2,11 +2,11 @@
## ##
syntax "CSS" "\.(css|scss)$" syntax "CSS" "\.(css|scss)$"
color brightred "." color red "."
color brightyellow start="\{" end="\}" color yellow start="\{" end="\}"
color brightwhite start=":" end="[;^\{]" color white start=":" end="[;^\{]"
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" color blue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
color brightblue start="\/\*" end="\*\/" color blue start="\/\*" end="\*\/"
color green ";|:|\{|\}" color green ";|:|\{|\}"
## Trailing spaces ## Trailing spaces

View File

@ -1,15 +1,15 @@
## Cython nanorc, based off of Python nanorc. ## Cython nanorc, based off of Python nanorc.
## ##
syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$" syntax "Cython" "\.pyx$" "\.pxd$" "\.pyi$"
icolor brightred "def [ 0-9A-Z_]+" icolor red "def [ 0-9A-Z_]+"
icolor brightred "cpdef [0-9A-Z_]+\(.*\):" icolor red "cpdef [0-9A-Z_]+\(.*\):"
icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.*\):" icolor red "cdef cppclass [ 0-9A-Z_]+\(.*\):"
# Python Keyword Color # 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 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 # Cython Keyword Color
color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>" 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="'''" color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
# Comment Color # Comment Color
color brightblue "#.*$" color blue "#.*$"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -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 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 red "=|->|--"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*" color black "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/" color black start="/\*" end="\*/"

View File

@ -5,6 +5,6 @@
syntax "dotenv" "\.env" "\.env\..+" syntax "dotenv" "\.env" "\.env\..+"
color green "(\(|\)|\$|=)" color green "(\(|\)|\$|=)"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$" color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -9,18 +9,18 @@ color blue start="<" end=">"
color white start="<%" end="%>" color white start="<%" end="%>"
color red "&[^;[[:space:]]]*;" 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 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_]+\>" icolor magenta "([ ]|^):[0-9A-Z_]+\>"
color brightyellow "\<(__FILE__|__LINE__)\>" color yellow "\<(__FILE__|__LINE__)\>"
color brightmagenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" color magenta "!/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
color brightblue "`[^`]*`" "%x\{[^}]*\}" color blue "`[^`]*`" "%x\{[^}]*\}"
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
color brightgreen "#\{[^}]*\}" color green "#\{[^}]*\}"
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
color cyan "#[^{].*$" "#$" color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$" color cyan "##[^{].*$" "##$"
color green start="<<-?'?EOT'?" end="^EOT" color green start="<<-?'?EOT'?" end="^EOT"
color brightcyan "(XXX|TODO|FIXME|\?\?\?)" color cyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -1,14 +1,14 @@
## Here is an example for Fish shell scripts. ## Here is an example for Fish shell scripts.
## ##
syntax "Fish" "\.fish$" 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 "\<(alias|begin|break|case|continue|contains|else|end|for|function|if|math|return|set|switch|test|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "\<(and|isatty|not|or|in)\>" color green "\<(and|isatty|not|or|in)\>"
color yellow "--[a-z-]+" color yellow "--[a-z-]+"
color brightmagenta "\ -[a-z]+" color magenta "\ -[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)\>" 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 brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color cyan "(^|[[:space:]])#.*$" color cyan "(^|[[:space:]])#.*$"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -40,14 +40,14 @@ color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
color magenta "[(){}]" "\[" "\]" color magenta "[(){}]" "\[" "\]"
# Add preprocessor commands. # 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. ## String highlighting.
icolor cyan "<[^= ]*>" ""(\\.|[^"])*"" icolor cyan "<[^= ]*>" ""(\\.|[^"])*""
icolor cyan "<[^= ]*>" "'(\\.|[^"])*'" icolor cyan "<[^= ]*>" "'(\\.|[^"])*'"
## Comment highlighting ## Comment highlighting
icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$" icolor red "!.*$" "(^[Cc]| [Cc]) .*$"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -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)\>" color green "\<(bool|byte|char|date|datetime|decimal|double|float|int|long|object|sbyte|short|single|string|ulong|ushort)\>"
# Definitions. # 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. # 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)\>" 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. # Special variables.
color brightcyan "\<(self|super)\>" color cyan "\<(self|super)\>"
# Null value. # Null value.
color brightyellow "\<(null)\>" color yellow "\<(null)\>"
# Boolean. # Boolean.
color yellow "\<(false|true)\>" color yellow "\<(false|true)\>"
@ -26,16 +26,16 @@ color yellow "\<(false|true)\>"
color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>" color cyan "\<(array|assert|dict|list|max|min|print|prop|sizeof|typeof)\>"
# Numbers. # 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. # Regular expression.
color brightgreen "/(\\.|[^/])*/" color green "/(\\.|[^/])*/"
# Double quoted string. # Double quoted string.
color brightblue ""(\\.|[^"])*"" color blue ""(\\.|[^"])*""
# Single quoted string. # Single quoted string.
color brightblue "'(\\.|[^'])*'" color blue "'(\\.|[^'])*'"
# Multiline string. # Multiline string.
color blue start=""""" end=""""" color blue start=""""" end="""""

View File

@ -2,30 +2,30 @@
## ##
syntax "Ebuild" "\.e(build|class)$" syntax "Ebuild" "\.e(build|class)$"
## All the standard portage functions ## 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 ## 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 "\<(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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-(e|d|f|r|g|u|w|x|L)\>" color green "-(e|d|f|r|g|u|w|x|L)\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
## Highlight variables ... official portage ones in red, all others in bright red ## Highlight variables ... official portage ones in red, all others in red
color brightred "\$\{?[a-zA-Z_0-9]+\}?" 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 "\<(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)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|TARGET|BUILD)\>" color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
## Highlight portage commands ## Highlight portage commands
color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*" color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
color brightblue "\<e(begin|end|conf|install|make|warn|infon?|error|log|patch|new(group|user))\>" color blue "\<e(begin|end|conf|install|make|warn|infon?|error|log|patch|new(group|user))\>"
color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>" color blue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>"
color brightblue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" color blue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>" color blue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
color brightblue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)" color blue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
color brightblue "\<(doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>" color blue "\<(doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
## Highlight common commands used in ebuilds ## Highlight common commands used in ebuilds
color blue "\<make\>" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>" color blue "\<make\>" "\<(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) ## Highlight comments (doesnt work that well)
color yellow "#.*$" color yellow "#.*$"
## Highlight strings (doesnt work that well) ## Highlight strings (doesnt work that well)
color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
## Trailing space is bad! ## Trailing space is bad!
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
@ -35,8 +35,8 @@ syntax "etc-portage" "\.(keywords|mask|unmask|use)$"
## Base text: ## Base text:
color green "^.+$" color green "^.+$"
## Use flags: ## Use flags:
color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+" color red "[[:space:]]+\+?[a-zA-Z0-9_-]+"
color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+" color blue "[[:space:]]+-[a-zA-Z0-9_-]+"
## Likely version numbers: ## Likely version numbers:
color magenta "-[[:digit:]].*([[:space:]]|$)" color magenta "-[[:digit:]].*([[:space:]]|$)"
## Accepted arches: ## Accepted arches:
@ -45,6 +45,6 @@ color white "[[:space:]][~-]?\*"
## Categories: ## Categories:
color cyan "^[[:space:]]*.*/" color cyan "^[[:space:]]*.*/"
## Masking regulators: ## Masking regulators:
color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)" color magenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
## Comments: ## Comments:
color yellow "#.*$" color yellow "#.*$"

View File

@ -1,10 +1,10 @@
syntax "git-config" "git(config|modules)$|\.git/config$" syntax "git-config" "git(config|modules)$|\.git/config$"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color cyan "^[[:space:]]*[^=]*=" color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$" color magenta "^[[:space:]]*\[.*\]$"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " +" color ,red " +"
@ -22,28 +22,28 @@ syntax "git-commit" "COMMIT_EDITMSG|TAG_EDITMSG"
color yellow ".*" color yellow ".*"
# Comments # Comments
color brightblack "^#.*" color black "^#.*"
# Files changes # Files changes
color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*" color white "#[[:space:]](deleted|modified|new file|renamed):[[:space:]].*"
color red "#[[:space:]]deleted:" color red "#[[:space:]]deleted:"
color green "#[[:space:]]modified:" color green "#[[:space:]]modified:"
color brightgreen "#[[:space:]]new file:" color green "#[[:space:]]new file:"
color brightblue "#[[:space:]]renamed:" color blue "#[[:space:]]renamed:"
# Untracked filenames # Untracked filenames
color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$" color black "^# [^/?*:;{}\\]+\.[^/?*:;{}\\]+$"
color brightmagenta "^#[[:space:]]Changes.*[:]" color magenta "^#[[:space:]]Changes.*[:]"
color brightred "^#[[:space:]]Your branch and '[^']+" color red "^#[[:space:]]Your branch and '[^']+"
color brightblack "^#[[:space:]]Your branch and '" color black "^#[[:space:]]Your branch and '"
color brightwhite "^#[[:space:]]On branch [^ ]+" color white "^#[[:space:]]On branch [^ ]+"
color brightblack "^#[[:space:]]On branch" color black "^#[[:space:]]On branch"
# Recolor hash symbols # Recolor hash symbols
# Recolor hash symbols # Recolor hash symbols
color brightblack "#" color black "#"
# Trailing spaces (+LINT is not ok, git uses tabs) # Trailing spaces (+LINT is not ok, git uses tabs)
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
@ -56,25 +56,25 @@ syntax "git-rebase-todo" "git-rebase-todo"
color yellow ".*" color yellow ".*"
# Comments # Comments
color brightblack "^#.*" color black "^#.*"
# Rebase commands # Rebase commands
color green "^(e|edit) [0-9a-f]{7,40}" color green "^(e|edit) [0-9a-f]{7,40}"
color green "^# (e, edit)" color green "^# (e, edit)"
color brightgreen "^(f|fixup) [0-9a-f]{7,40}" color green "^(f|fixup) [0-9a-f]{7,40}"
color brightgreen "^# (f, fixup)" color green "^# (f, fixup)"
color brightwhite "^(p|pick) [0-9a-f]{7,40}" color white "^(p|pick) [0-9a-f]{7,40}"
color brightwhite "^# (p, pick)" color white "^# (p, pick)"
color blue "^(r|reword) [0-9a-f]{7,40}" color blue "^(r|reword) [0-9a-f]{7,40}"
color blue "^# (r, reword)" color blue "^# (r, reword)"
color brightred "^(s|squash) [0-9a-f]{7,40}" color red "^(s|squash) [0-9a-f]{7,40}"
color brightred "^# (s, squash)" color red "^# (s, squash)"
color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}" color yellow "^(x|exec) [^ ]+ [0-9a-f]{7,40}"
color yellow "^# (x, exec)" color yellow "^# (x, exec)"
# Recolor hash symbols # Recolor hash symbols
color brightblack "#" color black "#"
# Commit IDs # Commit IDs
color brightblue "[0-9a-f]{7,40}" color blue "[0-9a-f]{7,40}"

View File

@ -1 +0,0 @@
git.nanorc

80
gitcommit.nanorc Normal file
View File

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

View File

@ -1,15 +1,15 @@
syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$" syntax "GLSL" "\.(frag|vert|fp|vp|glsl)$"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color 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 "\<(void|bool|bvec2|bvec3|bvec4|int|ivec2|ivec3|ivec4|float|vec2|vec3|vec4|mat2|mat3|mat4|struct|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler1DShadow|sampler2DShadow)\>"
color green "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>" color green "\<gl_(DepthRangeParameters|PointParameters|MaterialParameters|LightSourceParameters|LightModelParameters|LightModelProducts|LightProducts|FogParameters)\>"
color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>" color cyan "\<(const|attribute|varying|uniform|in|out|inout|if|else|return|discard|while|for|do)\>"
color brightred "\<(break|continue)\>" color red "\<(break|continue)\>"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color red "[-+/*=<>?:!~%&|^]" color red "[-+/*=<>?:!~%&|^]"
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>" color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>"
color brightblack "(^|[[:space:]])//.*" color black "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/" color black start="/\*" end="\*/"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -1,22 +1,22 @@
syntax "GO" "\.go$" syntax "GO" "\.go$"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]" color blue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[()]"
color brightblue "\<(append|cap|close|complex|copy|delete|imag|len)\>" color blue "\<(append|cap|close|complex|copy|delete|imag|len)\>"
color brightblue "\<(make|new|panic|print|println|protect|real|recover)\>" 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 "\<(u?int(8|16|32|64)?|float(32|64)|complex(64|128))\>"
color green "\<(uintptr|byte|rune|string|interface|bool|map|chan|error)\>" 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 "\<(package|import|const|var|type|struct|func|go|defer|nil|iota)\>"
color cyan "\<(for|range|if|else|case|default|switch|return)\>" color cyan "\<(for|range|if|else|case|default|switch|return)\>"
color brightred "\<(go|goto|break|continue)\>" color red "\<(go|goto|break|continue)\>"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color red "[-+/*=<>!~%&|^]|:=" color red "[-+/*=<>!~%&|^]|:="
color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'" color blue "\<([0-9]+|0x[0-9a-fA-F]*)\>|'.'"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\[abfnrtv'\"\\]" 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 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 yellow "`[^`]*`"
color brightblack "(^|[[:space:]])//.*" color black "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/" color black start="/\*" end="\*/"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -4,21 +4,21 @@ syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
## The argument of .ds or .nr ## The argument of .ds or .nr
color cyan "^\.(ds|nr) [^[[:space:]]]*" color cyan "^\.(ds|nr) [^[[:space:]]]*"
## Single character escapes ## Single character escapes
color brightmagenta "\\." color magenta "\\."
## Highlight the argument of \f or \s in the same color ## 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 ## Newlines
color cyan "(\\|\\\\)n(.|\(..)" color cyan "(\\|\\\\)n(.|\(..)"
color cyan start="(\\|\\\\)n\[" end="]" color cyan start="(\\|\\\\)n\[" end="]"
## Requests ## Requests
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" color green "^\.[[:space:]]*[^[[:space:]]]*"
## Comments ## Comments
color yellow "^\.\\".*$" color yellow "^\.\\".*$"
## Strings ## Strings
color green "(\\|\\\\)\*(.|\(..)" color green "(\\|\\\\)\*(.|\(..)"
color green start="(\\|\\\\)\*\[" end="]" color green start="(\\|\\\\)\*\[" end="]"
## Characters ## Characters
color brightred "\\\(.." color red "\\\(.."
color brightred start="\\\[" end="]" color red start="\\\[" end="]"
## Macro arguments ## Macro arguments
color brightcyan "\\\\\$[1-9]" color cyan "\\\\\$[1-9]"

View File

@ -9,10 +9,10 @@ icolor yellow "\.[A-Z_]+\>"
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Vars ## Vars
color brightgreen "#\{[^}]*\}" color green "#\{[^}]*\}"
color brightblue "(@|@@)[0-9A-Z_a-z]+" color blue "(@|@@)[0-9A-Z_a-z]+"
## Comments ## Comments
color brightcyan "#[^{].*$" "#$" color cyan "#[^{].*$" "#$"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -28,7 +28,7 @@ color yellow ""[^\"]*""
color green "--.*" color green "--.*"
color green start="\{-" end="-\}" color green start="\{-" end="-\}"
color brightred "undefined" color red "undefined"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -1,7 +1,7 @@
## Here is a short improved example for HTML. ## Here is a short improved example for HTML.
## ##
syntax "HTML" "\.htm[l]?.j2$" syntax "HTML" "\.htm[l]?.j2$"
color brightblue start="<" end=">" color blue start="<" end=">"
color red "&[^;[[:space:]]]*;" color red "&[^;[[:space:]]]*;"
color yellow ""[^"]*"|qq\|.*\|" 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)=" 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 ## Jinja templating
color green "\{{2}.*\}{2}" color green "\{{2}.*\}{2}"
color green "\{\%.*\%\}" color green "\{\%.*\%\}"
color brightcyan "(if|endif|for)" color cyan "(if|endif|for)"

View File

@ -1,7 +1,7 @@
## Here is a short improved example for HTML. ## Here is a short improved example for HTML.
## ##
syntax "HTML" "\.htm[l]?$" syntax "HTML" "\.htm[l]?$"
color brightblue start="<" end=">" color blue start="<" end=">"
color red "&[^;[[:space:]]]*;" color red "&[^;[[:space:]]]*;"
color yellow ""[^"]*"|qq\|.*\|" 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)=" 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)="

View File

@ -7,9 +7,9 @@ color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|rea
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[Ldefgruwx]\>" color green "-[Ldefgruwx]\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" 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)\>" 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 brightgreen "^\s+[0-9A-Z_]+\s+\(\)" icolor green "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$" color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -2,11 +2,11 @@ syntax "iCal" "\.ics$"
color green start="^BEGIN:VCALENDAR$" end="^END:VCALENDAR$" color green start="^BEGIN:VCALENDAR$" end="^END:VCALENDAR$"
color yellow start="^BEGIN:VCARD$" end="^END:VCARD$" 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 magenta start="^BEGIN:VTIMEZONE$" end="^END:VTIMEZONE"
color cyan start="^BEGIN:VEVENT$" end="^END:VEVENT$" color cyan start="^BEGIN:VEVENT$" end="^END:VEVENT$"
color brightmagenta start="^BEGIN:VALARM$" end="^END:VALARM$" color magenta start="^BEGIN:VALARM$" end="^END:VALARM$"
color brightcyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$" color cyan start="^BEGIN:VFREEBUSY$" end="^END:VFREEBUSY$"
# URLs # URLs
color blue start="(https?|ftp)://" end="^[^ ]" color blue start="(https?|ftp)://" end="^[^ ]"
@ -14,7 +14,7 @@ color blue start="(https?|ftp)://" end="^[^ ]"
icolor blue "mailto:[^ ]+" icolor blue "mailto:[^ ]+"
icolor white "mailto:" icolor white "mailto:"
# parameters # parameters
color brightyellow start="^[-A-Z0-9]" end=":" color yellow start="^[-A-Z0-9]" end=":"
color white "^[-A-Z0-9]+" color white "^[-A-Z0-9]+"
# section markers # section markers
color red "^(BEGIN|END):.*$" color red "^(BEGIN|END):.*$"

View File

@ -1,11 +1,11 @@
syntax "INI" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$" syntax "INI" "\.(ini|desktop|lfl|override)$" "(mimeapps\.list|pinforc|setup\.cfg)$" "weechat/.+\.conf$"
header "^\[[A-Za-z]+\]$" header "^\[[A-Za-z]+\]$"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color cyan "^[[:space:]]*[^=]*=" color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$" color magenta "^[[:space:]]*\[.*\]$"
color red "[=;]" color red "[=;]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])(#([^{].*)?|;.*)$" color black "(^|[[:space:]])(#([^{].*)?|;.*)$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -2,9 +2,9 @@ syntax "Inputrc" "inputrc$"
color red "\<(off|none)\>" color red "\<(off|none)\>"
color green "\<on\>" color green "\<on\>"
color brightblue "\<set|\$include\>" color blue "\<set|\$include\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\.?" color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -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" 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 "//.*"
color blue start="/\*" end="\*/" color blue start="/\*" end="\*/"
color brightblue start="/\*\*" end="\*/" color blue start="/\*\*" end="\*/"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -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 "\<[-+]?([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]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
color blue "\<[-+]?([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 "\<(break|case|catch|continue|default|delete|do|else|finally)\>"
color cyan "\<(for|function|get|if|in|instanceof|new|return|set|switch)\>" 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 "\<(switch|this|throw|try|typeof|var|void|while|with)\>"
color cyan "\<(null|undefined|NaN)\>" color cyan "\<(null|undefined|NaN)\>"
color cyan "\<(import|as|from|export)\>" color cyan "\<(import|as|from|export)\>"
color cyan "\<(const|let|class|extends|get|set|of|async|await|yield)\>" 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 "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>"
color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>" color green "\<(Map|WeakMap|Set|WeakSet|Promise|Symbol)\>"
color green "\<(Number|Object|RegExp|String)\>" color green "\<(Number|Object|RegExp|String)\>"
color red "[-+/*=<>!~%?:&|]" color red "[-+/*=<>!~%?:&|]"
color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*" color magenta "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" color magenta "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
color brightblack "(^|[[:space:]])//.*" color black "(^|[[:space:]])//.*"
color brightblack "/\*.+\*/" color black "/\*.+\*/"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'|(`|\})(\\.|[^`$]|$[^{])*(\$\{|`)"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -6,9 +6,9 @@
#color green "//.*$" start="\/\*" end="\*\/" #color green "//.*$" start="\/\*" end="\*\/"
#color blue "'(\\.|[^'])*'" #color blue "'(\\.|[^'])*'"
#color red ""(\\.|[^\"])*"" #color red ""(\\.|[^\"])*""
#color brightgreen "\<(true)\>" #color green "\<(true)\>"
#color brightred "\<(false)\>" "http\:\/\/.*$" #color red "\<(false)\>" "http\:\/\/.*$"
#color brightmagenta "[0-9](\\.|[^\"])*)" #color magenta "[0-9](\\.|[^\"])*)"
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting ## 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)\>" color red "\<(true|false)\>"
## String ## String
color brightyellow "L?\"(\\"|[^"])*\"" color yellow "L?\"(\\"|[^"])*\""
color brightyellow "L?'(\'|[^'])*'" color yellow "L?'(\'|[^'])*'"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
@ -48,5 +48,5 @@ color ,green "[[:space:]]+$"
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
## Comments ## Comments
color brightblue start="/\*" end="\*/" color blue start="/\*" end="\*/"
color brightblue "//.*$" color blue "//.*$"

View File

@ -3,9 +3,9 @@ header "^\{$"
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
color cyan "\<null\>" color cyan "\<null\>"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:" color yellow "\"(\\"|[^"])*\"[[:space:]]*:" "'(\'|[^'])*'[[:space:]]*:"
color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]" color magenta "\\u[0-9a-fA-F]{4}|\\[bfnrt'"/\\]"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -5,6 +5,6 @@ color cyan "\<(control|alt|shift)\>"
color blue "\<[0-9]+\>" color blue "\<[0-9]+\>"
color red "=" color red "="
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "^!.*$" color black "^!.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -1,15 +1,15 @@
syntax "KickStart" "\.ks$" "\.kickstart$" 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 "^[[: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 cyan "--(name|mirrorlist|baseurl|utc)(=|\>)"
color brightyellow "\$(releasever|basearch)\>" color yellow "\$(releasever|basearch)\>"
# Packages and groups # Packages and groups
color brightblack "^@[A-Za-z][A-Za-z-]*" color black "^@[A-Za-z][A-Za-z-]*"
color brightred "^-@[a-zA-Z0-9*-]+" color red "^-@[a-zA-Z0-9*-]+"
color red "^-[a-zA-Z0-9*-]+" color red "^-[a-zA-Z0-9*-]+"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -1,10 +1,10 @@
syntax "Ledger" "(^|\.|/)ledger|ldgr|beancount|bnct$" 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 blue "^[0-9]{4}(/|-)[0-9]{2}(/|-)[0-9]{2}"
color brightyellow "^~ .*" color yellow "^~ .*"
color brightblue "^= .*" color blue "^= .*"
color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?" color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z ]+(:[A-Za-z ]+)*\)?"
color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?" color cyan "^[[:space:]]+(![[:space:]]+)?\(?[A-Za-z_-]+(:[A-Za-z_-]+)*\)?"
color red "[*!]" color red "[*!]"
color brightblack "^[[:space:]]*;.*" color black "^[[:space:]]*;.*"

View File

@ -1,13 +1,13 @@
syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$" syntax "Lisp" "(emacs|zile)$" "\.(el|li?sp|scm|ss)$"
color brightblue "\([a-z-]+" color blue "\([a-z-]+"
color red "\(([-+*/<>]|<=|>=)|'" color red "\(([-+*/<>]|<=|>=)|'"
color blue "\<[0-9]+\>" color blue "\<[0-9]+\>"
icolor cyan "\<nil\>" icolor cyan "\<nil\>"
color brightcyan "\<[tT]\>" color cyan "\<[tT]\>"
color yellow "\"(\\.|[^"])*\"" color yellow "\"(\\.|[^"])*\""
color magenta "'[A-Za-z][A-Za-z0-9_-]+" color magenta "'[A-Za-z][A-Za-z0-9_-]+"
color magenta "\\.?" color magenta "\\.?"
color brightblack "(^|[[:space:]]);.*" color black "(^|[[:space:]]);.*"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -15,44 +15,44 @@
syntax "Lua" ".*\.lua$" syntax "Lua" ".*\.lua$"
# General # General
color brightwhite ".+" color white ".+"
# Operators # Operators
color brightyellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>" color yellow ":|\*\*|\*|/|%|\+|-|\^|>|>=|<|<=|~=|=|\.\.|\<(not|and|or)\>"
# Statements # 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 # Keywords
color brightyellow "\<(debug|string|math|table|io|coroutine|os|utf8|bit32)\>\." color yellow "\<(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 "\<(_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 # Standard library
color brightyellow "io\.\<(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)\>" color yellow "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 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 brightyellow "os\.\<(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)\>" color yellow "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 yellow "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 yellow "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 yellow "table\.\<(concat|insert|maxn|move|pack|remove|sort|unpack)\>"
color brightyellow "utf8\.\<(char|charpattern|codes|codepoint|len|offset)\>" color yellow "utf8\.\<(char|charpattern|codes|codepoint|len|offset)\>"
color brightyellow "coroutine\.\<(create|isyieldable|resume|running|status|wrap|yield)\>" color yellow "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 yellow "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 "bit32\.\<(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)\>"
# File handle methods # File handle methods
color brightyellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>" color yellow "\:\<(close|flush|lines|read|seek|setvbuf|write)\>"
# false, nil, true # false, nil, true
color brightmagenta "\<(false|nil|true)\>" color magenta "\<(false|nil|true)\>"
# External files # External files
color brightgreen "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>" color green "(\<(dofile|require|include)|%q|%!|%Q|%r|%x)\>"
# Numbers # Numbers
color red "\<([0-9]+)\>" color red "\<([0-9]+)\>"
# Symbols # Symbols
color brightmagenta "(\(|\)|\[|\]|\{|\})" color magenta "(\(|\)|\[|\]|\{|\})"
# Strings # Strings
color red "\"(\\.|[^\\\"])*\"|'(\\.|[^\\'])*'" 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-)." color red "\\[0-7][0-7][0-7]|\\x[0-9a-fA-F][0-9a-fA-F]|\\[abefnrs]|(\\c|\\C-|\\M-|\\M-\\C-)."
# Shebang # Shebang
color brightcyan "^#!.*" color cyan "^#!.*"
# Simple comments # Simple comments
color green "\-\-.*$" color green "\-\-.*$"

View File

@ -3,21 +3,21 @@ header "^#!.*/(env +)?[bg]?make( |$)"
color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>" color cyan "\<(ifeq|ifdef|ifneq|ifndef|else|endif)\>"
color cyan "^(export|include|override)\>" color cyan "^(export|include|override)\>"
color brightmagenta "^[^:= ]+:" color magenta "^[^:= ]+:"
color brightmagenta "^[^:+ ]+\+" color magenta "^[^:+ ]+\+"
color red "[=,%]" "\+=|\?=|:=|&&|\|\|" color red "[=,%]" "\+=|\?=|:=|&&|\|\|"
color brightblue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]" color blue "\$\((abspath|addprefix|addsuffix|and|basename|call|dir)[[:space:]]"
color brightblue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]" color blue "\$\((error|eval|filter|filter-out|findstring|firstword)[[:space:]]"
color brightblue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]" color blue "\$\((flavor|foreach|if|info|join|lastword|notdir|or)[[:space:]]"
color brightblue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]" color blue "\$\((origin|patsubst|realpath|shell|sort|strip|suffix)[[:space:]]"
color brightblue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]" color blue "\$\((value|warning|wildcard|word|wordlist|words)[[:space:]]"
color black "[()$]" color black "[()$]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "\$+(\{[^} ]+\}|\([^) ]+\))" color yellow "\$+(\{[^} ]+\}|\([^) ]+\))"
color brightyellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)" color yellow "\$[@^<*?%|+]|\$\([@^<*?%+-][DF]\)"
color magenta "\$\$|\\.?" color magenta "\$\$|\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color brightblack "^ @#.*" color black "^ @#.*"
# Show trailing whitespace # Show trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -2,8 +2,8 @@
## ##
syntax "Man" "\.[1-9]x?$" syntax "Man" "\.[1-9]x?$"
color green "\.(S|T)H.*$" color green "\.(S|T)H.*$"
color brightgreen "\.(S|T)H" "\.TP" color green "\.(S|T)H" "\.TP"
color brightred "\.(BR?|I[PR]?).*$" color red "\.(BR?|I[PR]?).*$"
color brightblue "\.(BR?|I[PR]?|PP)" color blue "\.(BR?|I[PR]?|PP)"
color brightwhite "\\f[BIPR]" color white "\\f[BIPR]"
color yellow "\.(br|DS|RS|RE|PD)" color yellow "\.(br|DS|RS|RE|PD)"

View File

@ -4,23 +4,23 @@ syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
color cyan ".*[ :]\|[ :].*" color cyan ".*[ :]\|[ :].*"
# quotes # quotes
color brightblack start="^>" end="^$" color black start="^>" end="^$"
color brightblack "^>.*" color black "^>.*"
# Emphasis # Emphasis
color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)"
# Strong emphasis # Strong emphasis
color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" color green "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)"
# strike-through # strike-through
color red "(^|[[:space:]])~~[^ ][^~]*~~" color red "(^|[[:space:]])~~[^ ][^~]*~~"
# horizontal rules # horizontal rules
color brightmagenta "^(---+|===+|___+|\*\*\*+)\s*$" color magenta "^(---+|===+|___+|\*\*\*+)\s*$"
# headlines # headlines
color brightmagenta "^#{1,6}.*" color magenta "^#{1,6}.*"
# lists # lists
color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. "
@ -32,14 +32,14 @@ color black "^[[:space:]]+"
color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"
# links # links
color brightblue "\[[^]]+\]" color blue "\[[^]]+\]"
color brightblue "\[([^][]|\[[^]]*\])*\]\([^)]+\)" color blue "\[([^][]|\[[^]]*\])*\]\([^)]+\)"
# images # images
color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])" color magenta "!\[[^][]*\](\([^)]+\)|\[[^]]+\])"
# urls # urls
color brightyellow "https?://[^ )>]+" color yellow "https?://[^ )>]+"
# code # code
color yellow "`[^`]*`|^ {4}[^-+*].*" color yellow "`[^`]*`|^ {4}[^-+*].*"

View File

@ -2,8 +2,8 @@ syntax "MPD" "mpd\.conf$"
color cyan "\<(user|group|bind_to_address|host|port|plugin|name|type)\>" color cyan "\<(user|group|bind_to_address|host|port|plugin|name|type)\>"
color cyan "\<((music|playlist)_directory|(db|log|state|pid|sticker)_file)\>" 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 yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -2,15 +2,15 @@
## ##
syntax "Nanorc" "\.?nanorc$" syntax "Nanorc" "\.?nanorc$"
## Possible errors and parameters ## Possible errors and parameters
icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$" icolor red "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
## Keywords ## 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)\>" icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\>"
## Colors ## 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)=" icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)="
## Strings ## Strings
icolor white ""(\\.|[^"])*"" icolor white ""(\\.|[^"])*""
## Comments ## Comments
icolor brightblue "^[[:space:]]*#.*$" icolor blue "^[[:space:]]*#.*$"
icolor cyan "^[[:space:]]*##.*$" icolor cyan "^[[:space:]]*##.*$"

View File

@ -1,13 +1,13 @@
syntax "Nginx" "nginx.*\.conf$" "\.nginx$" syntax "Nginx" "nginx.*\.conf$" "\.nginx$"
header "^(server|upstream)[^{]*\{$" 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 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 cyan "\<(on|off)\>"
color brightyellow "\$[A-Za-z][A-Za-z0-9_]*" color yellow "\$[A-Za-z][A-Za-z0-9_]*"
color red "[*]" color red "[*]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color yellow start="'$" end="';$" color yellow start="'$" end="';$"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -22,6 +22,6 @@ color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
#comments #comments
color white start="\(\*" end="\*\)" color white start="\(\*" end="\*\)"
#strings (no multiline handling yet) #strings (no multiline handling yet)
color brightblack ""[^\"]*"" color black ""[^\"]*""
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -1,10 +1,10 @@
## Here is an example for patch files. ## Here is an example for patch files.
## ##
syntax "Patch" "\.(patch|diff)$" syntax "Patch" "\.(patch|diff)$"
color brightgreen "^\+.*" color green "^\+.*"
color green "^\+\+\+.*" color green "^\+\+\+.*"
color brightblue "^ .*" color blue "^ .*"
color brightred "^-.*" color red "^-.*"
color red "^---.*" color red "^---.*"
color brightyellow "^@@.*" color yellow "^@@.*"
color magenta "^diff.*" color magenta "^diff.*"

View File

@ -3,10 +3,10 @@ syntax "PEG" "\.l?peg$"
color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-" color cyan "^[[:space:]]*[A-Za-z][A-Za-z0-9_]*[[:space:]]*<-"
color blue "\^[+-]?[0-9]+" color blue "\^[+-]?[0-9]+"
color red "[-+*?^/!&]|->|<-|=>" color red "[-+*?^/!&]|->|<-|=>"
color brightyellow "%[A-Za-z][A-Za-z0-9_]*" color yellow "%[A-Za-z][A-Za-z0-9_]*"
color magenta "\[[^]]*\]" color magenta "\[[^]]*\]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])\-\-.*$" color black "(^|[[:space:]])\-\-.*$"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -3,17 +3,17 @@
### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc ### Found in CPAN - http://cpansearch.perl.org/src/NIGE/Goo-0.09/lib/.gooskel/nanorc
syntax "Perl6" "\.p6$" 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 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 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 "\<(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 # Perl 6 words
color brightcyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>" color cyan "\<(has|is|class|role|given|when|BUILD|multi|returns|method|submethod|slurp|say|sub)\>"
color brightmagenta start="[$@%]" end="( |\\W|-)" color magenta start="[$@%]" end="( |\\W|-)"
color brightred "".*"|qq\|.*\|" color red "".*"|qq\|.*\|"
color white "[sm]/.*/" color white "[sm]/.*/"
color brightblue start="(^use| = new)" end=";" color blue start="(^use| = new)" end=";"
color brightgreen "#.*" color green "#.*"
color brightred start="<<EOSQL" end="EOSQL" color red start="<<EOSQL" end="EOSQL"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -2,11 +2,11 @@
syntax "PHP" "\.php[2345s~]?$" syntax "PHP" "\.php[2345s~]?$"
color white start="<\?(php|=)?" end="\?>" color white start="<\?(php|=)?" end="\?>"
# Functions # Functions
color brightblue "([a-zA-Z0-9_-]*)\(" color blue "([a-zA-Z0-9_-]*)\("
# Constructs # Constructs
color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)" color blue "(class|extends|goto) ([a-zA-Z0-9_]*)"
color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}" color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
color brightblue "[a-zA-Z0-9]+:" color blue "[a-zA-Z0-9]+:"
# Variables # Variables
color white "\$[a-zA-Z_0-9$]*|[=!<>]" color white "\$[a-zA-Z_0-9$]*|[=!<>]"
color white "\->[a-zA-Z_0-9$]*|[=!<>]" 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 "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
color magenta "0x[0-9a-zA-Z]*" color magenta "0x[0-9a-zA-Z]*"
# Special Variables # Special Variables
color brightblue "(\$this|parent::|self::|\$this->)" color blue "(\$this|parent::|self::|\$this->)"
# Bitwise Operations # Bitwise Operations
color magenta "(\;|\||\^){1}" color magenta "(\;|\||\^){1}"
# And/Or/SRO/etc # And/Or/SRO/etc
color green "(\;\;|\|\||::|=>|->)" color green "(\;\;|\|\||::|=>|->)"
# Online Comments # Online Comments
color brightyellow "(#.*|//.*)$" color yellow "(#.*|//.*)$"
# STRINGS! # STRINGS!
color red "('[^']*')|(\"[^\"]*\")" color red "('[^']*')|(\"[^\"]*\")"
# Inline Variables # Inline Variables
@ -37,4 +37,4 @@ color red start="\?>" end="<\?(php|=)?"
# trailing whitespace # trailing whitespace
color ,green "[^[:space:]]{1}[[:space:]]+$" color ,green "[^[:space:]]{1}[[:space:]]+$"
# multi-line comments # multi-line comments
color brightyellow start="/\*" end="\*/" color yellow start="/\*" end="\*/"

View File

@ -3,6 +3,6 @@ syntax "PC" "\.pc$"
color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):" color cyan "^(Name|Description|URL|Version|Conflicts|Cflags):"
color cyan "^(Requires|Libs)(\.private)?:" color cyan "^(Requires|Libs)(\.private)?:"
color red "=" color red "="
color brightyellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}" color yellow "\$\{[A-Za-z_][A-Za-z0-9_]*\}"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -3,23 +3,23 @@
syntax "PKGBUILD" "^.*PKGBUILD$" syntax "PKGBUILD" "^.*PKGBUILD$"
color green start="^." end="$" color green start="^." end="$"
color cyan "^.*(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$" color cyan "^.*(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license).*=.*$"
color brightcyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>" color cyan "\<(pkgbase|pkgname|epoch|pkgver|pkgrel|pkgdesc|arch|url|license)\>"
color brightcyan "(\$|\$\{|\$\()(pkgbase|epoch|pkgname|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 cyan "^.*(depends|makedepends|optdepends|conflicts|provides|replaces).*=.*$"
color brightcyan "\<(depends|makedepends|optdepends|conflicts|provides|replaces)\>" color cyan "\<(depends|makedepends|optdepends|conflicts|provides|replaces)\>"
color brightcyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(\}|\))" color cyan "(\$|\$\{|\$\()(depends|makedepends|optdepends|conflicts|provides|replaces)(\}|\))"
color cyan "^.*(groups|backup|noextract|options|validpgpkeys).*=.*$" color cyan "^.*(groups|backup|noextract|options|validpgpkeys).*=.*$"
color brightcyan "\<(groups|backup|noextract|options|validpgpkeys)\>" color cyan "\<(groups|backup|noextract|options|validpgpkeys)\>"
color brightcyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys)(\}|\))" color cyan "(\$|\$\{|\$\()(groups|backup|noextract|options|validpgpkeys)(\}|\))"
color cyan "^.*(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums).*=.*$" color cyan "^.*(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums).*=.*$"
color brightcyan "\<(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>" color cyan "\<(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>"
color brightcyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(\}|\))" color cyan "(\$|\$\{|\$\()(install|source|md5sums|sha1sums|sha256sums|sha384sums|sha512sums)(\}|\))"
color brightcyan "\<(startdir|srcdir|pkgdir)\>" color cyan "\<(startdir|srcdir|pkgdir)\>"
color cyan "\.install" color cyan "\.install"
color brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}" color white "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}"
color brightred "build\(\)" color red "build\(\)"
color brightred "package_.*.*$" color red "package_.*.*$"
color brightred "\<(configure|make|cmake|scons)\>" color red "\<(configure|make|cmake|scons)\>"
color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>" color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>"
## Trailing whitespace ## Trailing whitespace

View File

@ -3,6 +3,6 @@ syntax "PO" "\.pot?$"
color cyan "\<(msgid|msgstr)\>" color cyan "\<(msgid|msgstr)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color magenta "\\.?" color magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -1,15 +1,15 @@
## Here is an example for POV-Ray. ## Here is an example for POV-Ray.
## ##
syntax "POV" "\.(pov|POV|povray|POVRAY)$" syntax "POV" "\.(pov|POV|povray|POVRAY)$"
color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" color cyan "^[[:space:]]*#[[:space:]]*(declare)"
color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" color yellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>"
color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" color yellow "\<(orthographic|location|up|right|direction|clipped_by)\>"
color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" color yellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>"
color brightred "^\<(texture)\>" color red "^\<(texture)\>"
color brightred "\<(light_source|background)\>" color red "\<(light_source|background)\>"
color brightred "\<(fog|object|camera)\>" color red "\<(fog|object|camera)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightmagenta "\<(union|group|subgroup)\>" color magenta "\<(union|group|subgroup)\>"
## Comment highlighting ## Comment highlighting
color brightblue "//.*" color blue "//.*"
color brightblue start="/\*" end="\*/" color blue start="/\*" end="\*/"

View File

@ -1,27 +1,27 @@
syntax "Privoxy-config" "privoxy/config$" 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 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 ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"
syntax "Privoxy-action" "\.action$" syntax "Privoxy-action" "\.action$"
color brightred "[{[:space:]]\-block([[:space:]{}]|$)" color red "[{[:space:]]\-block([[:space:]{}]|$)"
color brightgreen "[{[: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 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 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 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 magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"
syntax "Privoxy-filter" "\.filter$" syntax "Privoxy-filter" "\.filter$"
color cyan "^(FILTER|CLIENT-HEADER-FILTER|CLIENT-HEADER-TAGGER|SERVER-HEADER-FILTER|SERVER-HEADER-TAGGER): [a-z-]+" 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 magenta "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -4,8 +4,8 @@ syntax "Puppet" "\.pp$"
#This goes first, so the normal builtins will override in some classes #This goes first, so the normal builtins will override in some classes
## Paramerers ## Paramerers
color brightwhite "^[[:space:]]([a-z][a-z0-9_]+)" color white "^[[:space:]]([a-z][a-z0-9_]+)"
color brightgreen "\$[a-z:][a-z0-9_:]+" color green "\$[a-z:][a-z0-9_:]+"
## List of built in types, also catches defines ## List of built in types, also catches defines
color yellow "\<(augeas|computer|cron|exec|file|filebucket|group|host|interface|k5login|macauthorization|mailalias|maillist|mcx|mount|nagios_command|nagios_contact|nagios_contactgroup|nagios_host|nagios_hostdependency|nagios_hostescalation|nagios_hostextinfo|nagios_hostgroup|nagios_service|nagios_servicedependency|nagios_serviceescalation|nagios_serviceextinfo|nagios_servicegroup|nagios_timeperiod|notify|package|resources|router|schedule|scheduled_task|selboolean|selmodule|service|ssh_authorized_key|sshkey|stage|tidy|user|vlan|yumrepo|zfs|zone|zpool|anchor)\>" color yellow "\<(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 "(=|-|~|>)" color red "(=|-|~|>)"
## Constants ## Constants
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" color blue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
## Ruby "symbols" ## Ruby "symbols"
color magenta "([ ]|^):[0-9A-Z_]+\>" color magenta "([ ]|^):[0-9A-Z_]+\>"
## Regular expressions ## Regular expressions
color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" color magenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
## Shell command expansion is in `backticks` or like %x{this}. These are ## Shell command expansion is in `backticks` or like %x{this}. These are
## "double-quotish" (to use a perlism). ## "double-quotish" (to use a perlism).
color brightblue "`[^`]*`" "%x\{[^}]*\}" color blue "`[^`]*`" "%x\{[^}]*\}"
## Strings, double-quoted ## Strings, double-quoted
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
## Expression substitution. These go inside double-quoted strings, ## Expression substitution. These go inside double-quoted strings,
## "like ${this}". ## "like ${this}".
color brightgreen "\$\{[^}]*\}" color green "\$\{[^}]*\}"
## Strings, single-quoted ## Strings, single-quoted
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Comments ## Comments
color cyan "#[^{].*$" "#$" color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$" color cyan "##[^{].*$" "##$"
## Some common markers ## Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)" color cyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -14,14 +14,14 @@ color cyan "\<(__abs__|__add__|__and__|__call__|__cmp__|__coerce__|__complex__|_
## exception classes ## 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)\>" # 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 ## 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 ## definitions
color brightcyan "def [a-zA-Z_0-9]+" color cyan "def [a-zA-Z_0-9]+"
## keywords ## 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 ## decorators
color brightgreen "@.*[(]" color green "@.*[(]"
## operators ## operators
color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" color magenta "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"

View File

@ -5,7 +5,7 @@ syntax "RST" "\.rest$" "\.rst$"
# bold # bold
color red "\*\*[^*]+\*\*" color red "\*\*[^*]+\*\*"
# code block # code block
color brightred "::" color red "::"
# link reference # link reference
color blue "`[^`]+`_{1,2}" color blue "`[^`]+`_{1,2}"
# code # code

View File

@ -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 "(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 cyan "(ifarch|ifnarch|ifos|ifnos)"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "%(if|else|endif|define|global|undefine)" color yellow "%(if|else|endif|define|global|undefine)"
color brightyellow "%_?([A-Z_a-z_0-9_]*)" color yellow "%_?([A-Z_a-z_0-9_]*)"
color brightyellow start="%\{" end="\}" color yellow start="%\{" end="\}"
color brightyellow start="%\{__" end="\}" color yellow start="%\{__" end="\}"
color brightyellow "\$(RPM_BUILD_ROOT)\>" color yellow "\$(RPM_BUILD_ROOT)\>"
color brightmagenta "^%(build$|changelog|check$|clean$|description)" color magenta "^%(build$|changelog|check$|clean$|description)"
color brightmagenta "^%(files|install$|package|prep$)" color magenta "^%(files|install$|package|prep$)"
color brightmagenta "^%(pre|preun|pretrans|post|postun|posttrans)" color magenta "^%(pre|preun|pretrans|post|postun|posttrans)"
color brightmagenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)" color magenta "^%(trigger|triggerin|triggerpostun|triggerun|verifyscript)"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color blue "^\*.*$" color blue "^\*.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"

View File

@ -6,29 +6,29 @@ header "^#!.*/(env +)?ruby( |$)"
## Asciibetical list of reserved words ## 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)\>" 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 ## Constants
color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*" color blue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
## Ruby "symbols" ## Ruby "symbols"
icolor magenta "([ ]|^):[0-9A-Z_]+\>" icolor magenta "([ ]|^):[0-9A-Z_]+\>"
## Some unique things we want to stand out ## Some unique things we want to stand out
color brightyellow "\<(__FILE__|__LINE__)\>" color yellow "\<(__FILE__|__LINE__)\>"
## Regular expressions ## Regular expressions
color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*" color magenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
## Shell command expansion is in `backticks` or like %x{this}. These are ## Shell command expansion is in `backticks` or like %x{this}. These are
## "double-quotish" (to use a perlism). ## "double-quotish" (to use a perlism).
color brightblue "`[^`]*`" "%x\{[^}]*\}" color blue "`[^`]*`" "%x\{[^}]*\}"
## Strings, double-quoted ## Strings, double-quoted
color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!" color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
## Expression substitution. These go inside double-quoted strings, ## Expression substitution. These go inside double-quoted strings,
## "like #{this}". ## "like #{this}".
color brightgreen "#\{[^}]*\}" color green "#\{[^}]*\}"
## Strings, single-quoted ## Strings, single-quoted
color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!" color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
## Comments ## Comments
color cyan "#[^{].*$" "#$" color cyan "#[^{].*$" "#$"
color brightcyan "##[^{].*$" "##$" color cyan "##[^{].*$" "##$"
## "Here" docs ## "Here" docs
color green start="<<-?'?EOT'?" end="^EOT" color green start="<<-?'?EOT'?" end="^EOT"
## Some common markers ## Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)" color cyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -33,7 +33,7 @@ color blue start="/\*" end="\*/"
color magenta start="#!\[" end="\]" color magenta start="#!\[" end="\]"
# Some common markers # Some common markers
color brightcyan "(XXX|TODO|FIXME|\?\?\?)" color cyan "(XXX|TODO|FIXME|\?\?\?)"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -8,5 +8,5 @@ color red ""[^"]*""
color yellow "\<(true|false|null)\>" color yellow "\<(true|false|null)\>"
color blue "//.*" color blue "//.*"
color blue start="/\*" end="\*/" color blue start="/\*" end="\*/"
color brightblue start="/\*\*" end="\*/" color blue start="/\*\*" end="\*/"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -2,8 +2,8 @@ syntax "SED" "\.sed$"
header "^#!.*bin/(env +)?sed( |$)" header "^#!.*bin/(env +)?sed( |$)"
color red "[|^$.*+]" color red "[|^$.*+]"
color brightyellow "\{[0-9]+,?[0-9]*\}" color yellow "\{[0-9]+,?[0-9]*\}"
color magenta "\\." color magenta "\\."
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -7,9 +7,9 @@ color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|rea
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-[Ldefgruwx]\>" color green "-[Ldefgruwx]\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" 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)\>" 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 brightgreen "^\s+[0-9A-Z_]+\s+\(\)" icolor green "^\s+[0-9A-Z_]+\s+\(\)"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
color cyan "(^|[[:space:]])#.*$" color cyan "(^|[[:space:]])#.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -20,7 +20,7 @@ color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>" color yellow "\<(grain|grains|compound|pcre|grain_pcre|list|pillar)\>"
# Comments # Comments
color brightblack "^#.*" color black "^#.*"
# Logic keywords # Logic keywords
color magenta "\<(if|elif|else|or|not|and|endif|end)\>" color magenta "\<(if|elif|else|or|not|and|endif|end)\>"

View File

@ -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 "\.\<(databases|dump|echo|exit|explain|header(s)?|help)\>"
icolor cyan "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>" icolor cyan "\.\<(import|indices|mode|nullvalue|output|prompt|quit|read)\>"
icolor cyan "\.\<(schema|separator|show|tables|timeout|width)\>" icolor cyan "\.\<(schema|separator|show|tables|timeout|width)\>"
color brightcyan "\<(ON|OFF)\>" color cyan "\<(ON|OFF)\>"
color blue "\<([0-9]+)\>" color blue "\<([0-9]+)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color yellow "`(\\.|[^\\`])*`" color yellow "`(\\.|[^\\`])*`"
color brightblack "\-\-.*$" color black "\-\-.*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -4,11 +4,11 @@ syntax "svn-commit" "svn-commit(\.[[:digit:]]+)?\.tmp$"
color yellow ".*" color yellow ".*"
# ignore after line EDITOR_EOF_PREFIX (see svn/util.c) # ignore after line EDITOR_EOF_PREFIX (see svn/util.c)
color brightblack "^--.+--$" color black "^--.+--$"
# files changes # files changes
color white "^[ADM_](M|[[:space:]])[[:space:]](\+|[[:space:]])[[:space:]].*" color white "^[ADM_](M|[[:space:]])[[:space:]](\+|[[:space:]])[[:space:]].*"
color red "^D[[:space:]]{4}" color red "^D[[:space:]]{4}"
color green "^[M_](M|[[:space:]])[[:space:]]{3}" color green "^[M_](M|[[:space:]])[[:space:]]{3}"
color brightgreen "^A(M|[[:space:]])[[:space:]]{3}" color green "^A(M|[[:space:]])[[:space:]]{3}"
color brightblue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]" color blue "^A(M|[[:space:]])[[:space:]]\+[[:space:]]"

View File

@ -9,7 +9,7 @@ color white ".+"
# Operators # Operators
color yellow "[.:;,+*|=!?\%]" "<" ">" "/" "-" "&" color yellow "[.:;,+*|=!?\%]" "<" ">" "/" "-" "&"
color brightyellow "[!]" color yellow "[!]"
# Statements # Statements
color magenta "\<(class|import|let|var|struct|enum|func|if|else|switch|case|default|for|in|static|private|public|throws)\>" 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]+)\>" color blue "\<(0x+[0-9A-Fa-f]+)\>"
# Standard Types # Standard Types
color brightmagenta "\<((U)?Int(8|16|32|64))\>" color magenta "\<((U)?Int(8|16|32|64))\>"
color brightmagenta "\<(true|false|nil)\>" color magenta "\<(true|false|nil)\>"
color brightmagenta "\<(UInt|Int|Double|String|Float|Bool|Dictionary|Array|Character|Range|Set|Bit|RawByte|Slice)\>" color magenta "\<(UInt|Int|Double|String|Float|Bool|Dictionary|Array|Character|Range|Set|Bit|RawByte|Slice)\>"
color brightmagenta "\<(UnicodeScalar|UnsafePointer|UnsafeMutablePointer)\>" color magenta "\<(UnicodeScalar|UnsafePointer|UnsafeMutablePointer)\>"
color magenta "\<(AnyObject)\>" color magenta "\<(AnyObject)\>"
# Standard Type Aliases and Protocols # Standard Type Aliases and Protocols
@ -56,7 +56,7 @@ color white start="\\\(" end="\)"
# Comments # Comments
color green "//.*" color green "//.*"
color brightgreen "///.*" color green "///.*"
color green start="/\*\*" end="\*/" color green start="/\*\*" end="\*/"
color green "[/**]" color green "[/**]"

View File

@ -2,11 +2,11 @@ syntax "Systemd" "\.(service|socket)$"
header "^\[Unit\]$" 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 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 red "="
color brightmagenta "^\[(Unit|Install|Service|Socket)\]" color magenta "^\[(Unit|Install|Service|Socket)\]"
color brightyellow "\$MAINPID" color yellow "\$MAINPID"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -9,15 +9,15 @@ color cyan "\<(string bytelength|string compare|string equal|string first|string
## Extended TclX [info commands] ## 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)\>" 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 ## Function declaration
color brightblue "proc[[:space:]]" "(\{|\})" color blue "proc[[:space:]]" "(\{|\})"
## Syntax ## Syntax
color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)" color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)"
## Numbers ## Numbers
color brightyellow "\<[0-9]+(\.[0-9]+)?\>" color yellow "\<[0-9]+(\.[0-9]+)?\>"
## Strings ## Strings
color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
## Variables ## Variables
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
## Comments ## Comments
color magenta "(^|;)[[:space:]]*#.*" color magenta "(^|;)[[:space:]]*#.*"
## Trailing whitespace ## Trailing whitespace

View File

@ -1,18 +1,18 @@
syntax "Vala" "\.vala$" syntax "Vala" "\.vala$"
color green "\<(float|double|bool|char|int|uint|short|long|void|(un)?signed)\>" 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 "\<(for|if|while|do|else|case|default|switch|try|throw|catch)\>"
color cyan "\<(inline|typedef|struct|enum|union|extern|static|const)\>" color cyan "\<(inline|typedef|struct|enum|union|extern|static|const)\>"
color cyan "\<(operator|new|delete|return|null)\>" color cyan "\<(operator|new|delete|return|null)\>"
color cyan "\<(class|override|private|public|signal|this|weak)\>" color cyan "\<(class|override|private|public|signal|this|weak)\>"
color brightred "\<(goto|break|continue)\>" color red "\<(goto|break|continue)\>"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color blue "\<([0-9]+)\>" color blue "\<([0-9]+)\>"
color red "[-+/*=<>?:!~%&|]" "->" color red "[-+/*=<>?:!~%&|]" "->"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])//.*" color black "(^|[[:space:]])//.*"
color brightblack start="/\*" end="\*/" color black start="/\*" end="\*/"
color brightwhite,cyan "TODO:?" color white,cyan "TODO:?"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -21,12 +21,12 @@
syntax "verilog" "\.(v|vh|sv|svh)$" syntax "verilog" "\.(v|vh|sv|svh)$"
# I don't think we want this. # 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. # Module, package, etc. definitions: colorize their names.
# (I'm not sure if brightred is a good color). # (I'm not sure if red is a good color).
icolor brightred "(module|package|task|interface|program|class) [0-9A-Z_]+" icolor red "(module|package|task|interface|program|class) [0-9A-Z_]+"
icolor brightred "function [0-9A-Z_]+ [0-9A-Z_]+" icolor red "function [0-9A-Z_]+ [0-9A-Z_]+"
# Verilog keywords, taken from http://svref.renerta.com/sv00003.htm. # 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)\>" 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_]+" icolor cyan "^[[:space:]]*`[0-9A-Z_]+"
# I'm not sure what this line does... it was in c.nanorc. # 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, # 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. # 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, # Multiline strings. This regex is VERY resource intensive,
# and sometimes colours things that shouldn't be coloured. # and sometimes colours things that shouldn't be coloured.
###color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ###color yellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
# Comments. # Comments.
color brightblue "//.*" color blue "//.*"
color brightblue start="/\*" end="\*/" color blue start="/\*" end="\*/"
# Reminders. # Reminders.
color ,yellow "\<(FIXME|TODO|XXX)\>" color ,yellow "\<(FIXME|TODO|XXX)\>"

View File

@ -1,10 +1,10 @@
syntax "VI" "(^|/|\.)(ex|vim)rc$|\.vim" 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 "\<([nvxsoilc]?(nore|un)?map|[nvlx]n|[ico]?no|[cilovx][um]|s?unm)\>"
color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>" color cyan "\<(snor|nun|nm|set|if|endif|let|unlet)\>"
color red "[!&=]" color red "[!&=]"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'" color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightblack "(^|[[:space:]])\"[^"]*$" color black "(^|[[:space:]])\"[^"]*$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -1,10 +1,10 @@
syntax "Xresources" "X(defaults|resources)$" syntax "Xresources" "X(defaults|resources)$"
color green "^[[:alnum:]]+\*" color green "^[[:alnum:]]+\*"
color brightyellow "\*[[:alnum:]]+\:" color yellow "\*[[:alnum:]]+\:"
color blue "\<[0-9]+\>" color blue "\<[0-9]+\>"
color red "[*:=]" color red "[*:=]"
color brightcyan "\<(true|false)\>" color cyan "\<(true|false)\>"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -14,8 +14,8 @@ color yellow "[:-]\s+[0-9]+\.?[0-9]*(\s*($|#))"
color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) " color yellow "(^| )!!(binary|bool|float|int|map|null|omap|seq|set|str) "
# Separator # Separator
color brightwhite "^\s+-" color white "^\s+-"
color brightwhite ":(\s|\t|$)" color white ":(\s|\t|$)"
# Comments # Comments
color brightblue "(^|[[:space:]])#.*$" color blue "(^|[[:space:]])#.*$"

View File

@ -1,8 +1,8 @@
syntax "YUM" "\.repo$|yum.*\.conf$" syntax "YUM" "\.repo$|yum.*\.conf$"
color cyan "^[[:space:]]*[^=]*=" color cyan "^[[:space:]]*[^=]*="
color brightmagenta "^[[:space:]]*\[.*\]$" color magenta "^[[:space:]]*\[.*\]$"
color brightyellow "\$(releasever|arch|basearch|uuid|YUM[0-9])" color yellow "\$(releasever|arch|basearch|uuid|YUM[0-9])"
color brightblack "(^|[[:space:]])#([^{].*)?$" color black "(^|[[:space:]])#([^{].*)?$"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"
color ,red " + +| + +" color ,red " + +| + +"

View File

@ -3,7 +3,7 @@ syntax "ZSH" "\.zsh$" "\.?(zshenv|zprofile|zshrc|zlogin|zlogout|zsh-theme)$"
header "^#!.*/(env +)?zsh( |$)" header "^#!.*/(env +)?zsh( |$)"
## Numbers ## Numbers
color brightyellow "\b[0-9]+\b" color yellow "\b[0-9]+\b"
## Conditionals and control flow ## 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 "\<(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)\>" color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
## Bash-inherited ## 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 ## 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 ## 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 ## 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 ## Function definition
icolor brightgreen "^\s+(function\s+)[0-9A-Z_]+\s+\(\)" icolor green "^\s+(function\s+)[0-9A-Z_]+\s+\(\)"
## Variables ## Variables
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" icolor red "\$\{?[0-9A-Z_!@#$*?-]+\}?"
## Strings ## Strings
color yellow ""(\\.|[^"])*"" color yellow ""(\\.|[^"])*""
@ -36,7 +36,7 @@ color yellow "'(\\.|[^'])*'"
## Comments ## Comments
color cyan "(^|[[:space:]])#.*$" color cyan "(^|[[:space:]])#.*$"
color brightcyan "(^|[[:space:]])##.*$" color cyan "(^|[[:space:]])##.*$"
## Trailing spaces ## Trailing spaces
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -1 +0,0 @@
zsh.nanorc

42
zshrc.nanorc Normal file
View File

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