-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apache2.nanorc apacheconf.nanorc aptsrclist.nanorc asm.nanorc bash.nanorc changelog.nanorc # NOTE: changelog.nanorc and changelogs.nanorc are questionable, and may cover only some niche use cases changelogs.nanorc # SEE: NOTE for changelog.nanorc c.nanorc coffee.nanorc config2.nanorc config3.nanorc configfiles.nanorc config.nanorc conf.nanorc conky.nanorc css.nanorc # NOTE: css.nanorc is questionable in terms of completeness. cython.nanorc Remove commented legacy blocks from: changelog.nanorc Remove altogether: debian.nanorc # NOTE: Nearly identical to aptsrclist.nanorc, except with less-sensible colour choices.
- Loading branch information
Showing
18 changed files
with
65 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
## syntax highlighting for /etc/apt/sources.list | ||
|
||
syntax "apt/sources.list" "sources\.list(\.old|~)?$" | ||
# component | ||
## Component | ||
color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._\-\(\) ]+\]/) [^ ]+ .+$" | ||
# distribution | ||
|
||
## Distribution | ||
color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._\-\(\) ]+\]/) [^ ]+" | ||
# URI | ||
|
||
## URI | ||
color brightgreen "(http|file|ftp):/[^ ]+" | ||
# cdroms | ||
# [^\]] does not workÉ | ||
|
||
## CD-ROMs | ||
# FIXME: [^\]] does not work. | ||
color brightgreen "cdrom:\[[a-zA-Z0-9\._\-\(\) ]+\]/" | ||
# deb / deb-src | ||
|
||
## deb / deb-src | ||
color cyan "^deb" | ||
color brightblue "^deb-src" | ||
# comments | ||
|
||
## Comments | ||
color brightyellow "#.*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
## assembler. | ||
## | ||
syntax "asm" "\.(S|s|asm)$" | ||
color red "\<[A-Z_]{2,}\>" | ||
color brightgreen "\.(data|subsection|text)" | ||
color green "\.(align|file|globl|global|hidden|section|size|type|weak)" | ||
color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)" | ||
icolor brightred "^[[:space:]]*[.0-9A-Z_]*:" | ||
color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" | ||
## Highlight strings (note: VERY resource intensive) | ||
|
||
## Strings | ||
# NOTE: Very resource intensive. | ||
color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" | ||
color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" | ||
## Highlight comments | ||
|
||
## Comments | ||
color brightblue "//.*" | ||
color brightblue start="/\*" end="\*/" | ||
## Highlight trailing whitespace | ||
|
||
## Trailing whitespace | ||
color ,green "[[:space:]]+$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,29 @@ | ||
# Bash Syntax Highlighting | ||
# | ||
# Bram Schoenmakers <[email protected]> | ||
# | ||
# Version 1.1 | ||
|
||
syntax "bash" "\.sh$" "\.bash$" | ||
header "^#!.*/(ba|k|pdk)?sh[-0-9_]*" | ||
|
||
# Some Bash syntax first | ||
|
||
# Control | ||
## Control | ||
color magenta "\<(if|else|for|function|case|esac|in|select|until|while|do|elif|then|set|\.|done|fi)\>" | ||
|
||
# Brackets and redirects | ||
## Brackets and redirects | ||
color yellow "[(){}[;|<>]" | ||
color yellow "\]" | ||
|
||
# Builtins | ||
## Builtins | ||
color red "\<(source|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|suspend|test|times|trap|type|ulimit|umask|unalias|wait)\>" | ||
|
||
# Unix Commands | ||
## Unix Commands | ||
color red "\<(arch|awk|bash|bunzip2|bzcat|bzcmp|bzdiff|bzegrep|bzfgrep|bzgrep|bzip2|bzip2recover|bzless|bzmore|cat|chattr|chgrp|chmod|chown|chvt|cp|date|dd|deallocvt|df|dir|dircolors|dmesg|dnsdomainname|domainname|du|dumpkeys|echo|ed|egrep|false|fgconsole|fgrep|fuser|gawk|getkeycodes|gocr|grep|groups|gunzip|gzexe|gzip|hostname|igawk|install|kbd_mode|kbdrate|killall|last|lastb|link|ln|loadkeys|loadunimap|login|ls|lsattr|lsmod|lsmod.old|mapscrn|mesg|mkdir|mkfifo|mknod|mktemp|more|mount|mv|nano|netstat|nisdomainname|openvt|pgawk|pidof|ping|ps|pstree|pwd|rbash|readlink|red|resizecons|rm|rmdir|run-parts|sash|sed|setfont|setkeycodes|setleds|setmetamode|setserial|sh|showkey|shred|sleep|ssed|stat|stty|su|sync|tar|tempfile|touch|true|umount|uname|unicode_start|unicode_stop|unlink|utmpdump|uuidgen|vdir|wall|wc|ypdomainname|zcat|zcmp|zdiff|zegrep|zfgrep|zforce|zgrep|zless|zmore|znew|zsh)\>" | ||
|
||
# More Unix Commands | ||
color red "\<(aclocal|aconnect|aplay|apm|apmsleep|apropos|ar|arecord|as|as86|autoconf|autoheader|automake|awk|basename|bc|bison|c\+\+|cal|cat|cc|cdda2wav|cdparanoia|cdrdao|cd-read|cdrecord|chfn|chgrp|chmod|chown|chroot|chsh|clear|cmp|co|col|comm|cp|cpio|cpp|cut|dc|dd|df|diff|diff3|dir|dircolors|directomatic|dirname|du|env|expr|fbset|file|find|flex|flex\+\+|fmt|free|ftp|funzip|fuser|g\+\+|gawk|gc|gcc|gdb|getent|getopt|gettext|gettextize|gimp|gimp-remote|gimptool|gmake|gs|head|hexdump|id|install|join|kill|killall|ld|ld86|ldd|less|lex|ln|locate|lockfile|logname|lp|lpr|ls|lynx|m4|make|man|mkdir|mknod|msgfmt|mv|namei|nasm|nawk|nice|nl|nm|nm86|nmap|nohup|nop|od|passwd|patch|pcregrep|pcretest|perl|perror|pidof|pr|printf|procmail|prune|ps2ascii|ps2epsi|ps2frag|ps2pdf|ps2ps|psbook|psmerge|psnup|psresize|psselect|pstops|rcs|rev|rm|scp|sed|seq|setterm|shred|size|size86|skill|slogin|snice|sort|sox|split|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|stat|strings|strip|sudo|suidperl|sum|tac|tail|tee|test|tr|uniq|unlink|unzip|updatedb|updmap|uptime|users|vmstat|w|wc|wget|whatis|whereis|which|who|whoami|write|xargs|yacc|yes|zip|zsoelim)\>" | ||
## More Unix Commands | ||
color red "\<(aclocal|aconnect|aplay|apm|apmsleep|apropos|ar|arecord|as|as86|autoconf|autoheader|automake|awk|basename|bc|bison|c\+\+|cal|cat|cc|cdda2wav|cdparanoia|cdrdao|cd-read|cdrecord|chfn|chgrp|chmod|chown|chroot|chsh|clear|cmp|co|col|comm|cp|cpio|cpp|cut|dc|dd|df|diff|diff3|dir|dircolors|directomatic|dirname|du|env|expr|fbset|file|find|flex|flex\+\+|fmt|free|ftp|funzip|fuser|g\+\+|gawk|gc|gcc|gdb|getent|getopt|gettext|gettextize|gimp|gimp-remote|gimptool|gmake|gs|head|hexdump|id|install|join|kill|killall|ld|ld86|ldd|less|lex|ln|locate|lockfile|logname|lp|lpr|ls|lynx|m4|make|man|mkdir|mknod|msgfmt|mv|namei|nasm|nawk|nc|nice|nl|nm|nm86|nmap|nohup|nop|od|passwd|patch|pcregrep|pcretest|perl|perror|pidof|pr|printf|procmail|prune|ps2ascii|ps2epsi|ps2frag|ps2pdf|ps2ps|psbook|psmerge|psnup|psresize|psselect|pstops|rcs|rev|rm|scp|sed|seq|setterm|shred|size|size86|skill|slogin|snice|sort|sox|split|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|stat|strings|strip|sudo|suidperl|sum|tac|tail|tee|test|tr|uniq|unlink|unzip|updatedb|updmap|uptime|users|vmstat|w|wc|wget|whatis|whereis|which|who|whoami|write|xargs|yacc|yes|zip|zsoelim)\>" | ||
|
||
# Strings | ||
## Strings | ||
color blue "\"(\\.|[^\"])*\"" | ||
color blue "'(\\.|[^\'])*'" | ||
|
||
# Variables, keep it below the strings, such that vars are highlighted inside strings. | ||
## Variables | ||
# NOTE: Keep this section below the Strings section, such that Variables are highlighted inside strings. | ||
color cyan start="[$@%]" end="([[:alnum:]]|_)*" | ||
|
||
# Comments | ||
## Comments | ||
color green "#.*$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
syntax "coffee" "\.coffee$" | ||
## Decimal, octal and hexadecimal numbers. | ||
## Decimal, octal and hexadecimal numbers | ||
color red "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" | ||
|
||
## Floating-point numbers. | ||
## Floating-point numbers | ||
color red "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" | ||
color red "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" | ||
|
||
## Keywords and punctuation of similar purpose. | ||
## Keywords and punctuation of similar purpose | ||
color brightblue "\<(break|case|catch|continue|default|delete|do|else|finally)\>" | ||
color brightblue "\<(and|by|class|do|extends|for|function|if|isnt|is|in|instanceof|new|null|of|return|switch)\>" | ||
color brightblue "\<(switch|this|throw|try|typeof|until|undefined|var|void|while|when|with)\>" | ||
color brightblue "(->|=|\.\.|<|>|\|\|&&|!)" | ||
|
||
## Type specifiers and special types. | ||
## Type specifiers and special types | ||
color magenta "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" | ||
color magenta "\<(Number|Object|RegExp|String)\>" | ||
color magenta "\<(true|yes|on|false|off|no)\>" | ||
|
||
## Strings. | ||
## Strings | ||
color green "L?\"(\\"|[^"])*\"" | ||
color green "L?'(\'|[^'])*'" | ||
|
||
## Escapes. | ||
## Escapes | ||
color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" | ||
|
||
## Comments. | ||
## Comments | ||
color cyan "#\ .*$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
# Generic *.conf file syntax highlighting | ||
# | ||
syntax "conf" "\.c(onf|nf|fg)$" | ||
|
||
syntax "conf" "\.(c(onf|nf|fg))$" | ||
|
||
# string | ||
# Strings | ||
icolor yellow ""(\\.|[^"])*"" | ||
|
||
# variable name & value | ||
# Variable name and value | ||
icolor brightyellow start="=" end="$" | ||
icolor magenta start="(^|[[:space:]])[0-9a-z-]" end="=" | ||
|
||
# bracket/parenthesis | ||
# Braces and parentheses | ||
icolor brightred "(^|[[:space:]])((\[|\()[0-9a-z_!@#$%^&*-]+(\]|\)))" | ||
|
||
# number | ||
# Numbers | ||
color green "[[:space:]][0-9.KM]+" | ||
|
||
# comment | ||
# Comments | ||
color cyan start="(^|[[:space:]])(#|;).*$" end="$" | ||
color brightblue "(^|[[:space:]])(#|;)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
############################################################################## | ||
# | ||
# Syntax highlighting for CSS files | ||
# | ||
# Author: Simon Rupf, simon.rupf(a)int-ag.ch | ||
# License: GPL 2 or later | ||
# | ||
# Version: 2005-02-14 | ||
# | ||
############################################################################## | ||
|
||
syntax "css" "\.css$" | ||
color brightred "." | ||
color brightyellow start="\{" end="\}" | ||
color brightwhite start=":" end="[;^\{]" | ||
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" | ||
color brightblue start="\/\*" end="\\*/" | ||
color green ";|:|\{|\}" | ||
color brightred "." | ||
color brightyellow start="\{" end="\}" | ||
color brightwhite start=":" end="[;^\{]" | ||
color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" | ||
color brightblue start="\/\*" end="\\*/" | ||
color green ";|:|\{|\}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
## Cython nanorc, based off of Python nanorc. | ||
## | ||
syntax "cython" "\.pyx$" "\.pxd$" "\.pyi$" | ||
icolor brightred "def [ 0-9A-Z_]+" | ||
icolor brightred "cpdef [ 0-9A-Z_]+\(.\*?\):" | ||
icolor brightred "cdef cppclass [ 0-9A-Z_]+\(.\*?\):" | ||
|
||
|
||
|
||
# Python Keyword Color | ||
## Python keywords | ||
color green "\<(and|as|assert|class|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with)\>" | ||
color brightmagenta "\<(continue|break|return)\>" | ||
|
||
# Cython Keyword Color | ||
## Cython keywords | ||
color green "\<(cdef|cimport|cpdef|cppclass|ctypedef|extern|include|namespace|property|struct)\>" | ||
color red "\<(bint|char|double|int|public|void)\>" | ||
|
||
#Operator Color | ||
## Operators | ||
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" | ||
|
||
#Parenthetical Color | ||
## Braces and parentheses | ||
color magenta "[(){}]" "\[" "\]" | ||
|
||
#String Color | ||
## Strings | ||
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" | ||
color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" | ||
color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''" | ||
|
||
# Comment Color | ||
## Comments | ||
color brightblue "#.*$" |
This file was deleted.
Oops, something went wrong.