-
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.
- Loading branch information
Showing
76 changed files
with
490 additions
and
614 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <http://unlicense.org/> |
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,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,18 +1,20 @@ | ||
## 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 | ||
color brightblue ";.*" | ||
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$" | ||
syntax "bash" "\.sh$" "\.bash$" "/.bash_profile$" "(\.|/)profile$" "\rc$" "(\.|/)control$" | ||
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="=" | ||
icolor magenta start="^[[:space:]]*[0-9a-z-]" end="=" | ||
|
||
# bracket/parenthesis | ||
# Braces and parentheses | ||
icolor brightred "(^|[[:space:]])((\[|\()[0-9a-z_!@#$%^&*-]+(\]|\)))" | ||
|
||
# number | ||
color green "[[:space:]][0-9.KM]+" | ||
# Numbers | ||
icolor green "[[:space:]][0-9]+[0-9.]*[KMGT]*" | ||
|
||
# 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 ";|:|\{|\}" | ||
|
Oops, something went wrong.