dotfiles-pub/common/nano/syntax/pkgbuild.nanorc

43 lines
1.8 KiB
Text

syntax "pkgbuild" "PKGBUILD$" "\.install$"
# Resets everything back to plain text coloring.
# Can be used at the start of each theme file.
color white "^.*$"
color cyan "^[A-Za-z0-9_+-]+[[:space:]]*\(\)"
color red "\<(case|do|done|elif|else|esac|fi|for|function|if)\>"
color red "\<(in|select|then|time|until|while)\>"
color cyan "\<(echo|exit|export|let|local|read|return|set|shift|umask|unset)\>"
color blue "\<(pkgname|pkgver|pkgrel|epoch|pkgdesc|arch|url|license)\>"
color blue "\<(groups|depends|makedepends|checkdepends|optdepends)\>"
color blue "\<(provides|conflicts|replaces|backup|options|^install)\>"
color blue "\<(changelog|source|noextract)\>"
color blue "\<(md5sums|sha1sums|sha256sums|sha384sums|sha512sums)\>"
color blue "\<(srcdir|pkgdir)\>"
color red "\<(strip|docs|libtool|emptydirs|zipman|purge|upx)\>"
color red "\<(ccache|distcc|buildflags|makeflags)\>"
color yellow "[{}()<>!=&|;`$]|\\|\[|\]|-(eq|ne|gt|lt|ge|le|s|n|z)\>"
color green ""(\\.|[^"])*""
color blue "\$\{?[A-Za-z0-9_!@#$*?-]+\}?|`[^`]*`"
color green "'(\\.|[^'])*'"
color yellow "\\.?"
color brightblack "(^|[[:space:]])#([^{].*)?$"
color ,red "[[:space:]]+$"
color brightyellow " + +| + +"
# rainbow indent
color ,brightblack "^[[:space:]]{32}"
color ,black "^[[:space:]]{30}"
color ,brightblack "^[[:space:]]{28}"
color ,black "^[[:space:]]{26}"
color ,brightblack "^[[:space:]]{24}"
color ,black "^[[:space:]]{22}"
color ,brightblack "^[[:space:]]{20}"
color ,black "^[[:space:]]{18}"
color ,brightblack "^[[:space:]]{16}"
color ,black "^[[:space:]]{14}"
color ,brightblack "^[[:space:]]{12}"
color ,black "^[[:space:]]{10}"
color ,brightblack "^[[:space:]]{8}"
color ,black "^[[:space:]]{6}"
color ,brightblack "^[[:space:]]{4}"
color ,black "^[[:space:]]{2}"