Created
February 20, 2012 06:39
-
-
Save 3demax/1868152 to your computer and use it in GitHub Desktop.
/usr/share/nano/pkgbuild.nanorc
This file contains hidden or 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 is part of ~/.nanorc file | |
## Arch PKGBUILDS | |
include "/usr/share/nano/pkgbuild.nanorc" | |
# yaourt sysuplist | |
include "/usr/share/nano/sysuplist.nanorc" |
This file contains hidden or 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
# Arch PKGBUILD files | |
# | |
syntax "pkgbuild" "^.*PKGBUILD*" | |
# commands | |
#color red "\<(cd|echo|enable|exec|export|kill|popd|pushd|read|source|touch|type)\>" | |
color brightred "\<(echo|enable|exec|export|kill|popd|pushd|read|source|touch|type|make|make\ install|cmake|automake|autoconf)\>" | |
color brightblack "\<(case|cat|chmod|chown|cp|diff|do|done|elif|else|esac|exit|fi|find|for|ftp|function|grep|gzip|if|in)\>" | |
color brightblack "\<(install|ln|local|mv|return|rm|sed|select|shift|sleep|tar|then|time|until|while|yes)\>" | |
color brightwhite "(mkdir|cd|rm\ ).*$" | |
# ${*} | |
icolor yellow "\$\{?[0-9A-Z_!@#$*?-]+\}?" | |
# numerics | |
color blue "\ [0-9]*" | |
color blue "\.[0-9]*" | |
#color blue "\-[0-9]*" | |
color blue "=([0-9])+" | |
# spaces | |
color ,green "[[:space:]]+$" | |
#commands | |
color brightred "(\.\/configure|\.\/autogen\.sh)" | |
#VCS | |
color brightyellow "\<(git|bzr|co|up|br|hg|branch|checkout|clone|pull|push)\>" | |
#header unneded | |
color brightblack "\<(pkgname|pkgrel|pkgver|pkgdesc|arch|install)\>=" | |
# strings; multilines are not supported | |
color brightmagenta ""(\\.|[^"])*"" "'(\\.|[^'])*'" | |
#header unneeded | |
color brightblack "^.*(pkgbase|pkgdesc|arch|url|license).*=.*$" | |
color white "^.*pkgname.*=\<.*\>$" | |
color brightblack "^.*pkgname.*=" | |
# comments | |
color brightblack "#.*$" | |
#messages | |
color brightwhite "msg.*$" | |
#some | |
color cyan "\.install" | |
color red "\<(DESTDIR|PREFIX|prefix|sysconfdir|datadir|libdir|includedir|mandir|infodir)\>" | |
#functions | |
color green ".*(build|package).*\(.*\).*$" | |
color green "^}.*$" |
This file contains hidden or 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
## Here is an example for nanorc files. | |
## | |
syntax "sysuplist" ".*sysuplist$" | |
## Possible errors and parameters | |
icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" | |
## Keywords | |
#icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|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|include|syntax|header)\>" | |
## 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 magenta "^[[:space:]]*i?color\>" "\<(start|end)=" | |
## Strings | |
icolor white ""(\\.|[^"])*"" | |
## Comments | |
icolor brightblack "^[[:space:]]*#.*$" | |
icolor cyan "^[[:space:]]*##.*$" | |
color brightcyan "^.*upgrade.*\(.*new.*\)*$" | |
#Repos | |
color brightwhite "^[a-z,A-Z]*/.*\ " | |
color brightmagenta "^[a-z,A-Z]+\/" | |
color brightred "^core/" | |
color brightgreen "^extra/" | |
#Versions | |
color yellow " #.*$" | |
color brightblack " # " | |
color brightred "\ [0-9]\ ->\ [0-9]$" | |
color brightwhite "\->" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment