Page 1 of 1

nano SLKBUILD syntax highlighting

Posted: 5. Apr 2011, 16:10
by fredg
Hi,

Copy that slkbuild.nanorc file to /usr/share/nano/ :

Code: Select all

## SalixOS SLKBUILD files
##
syntax "slkbuild" "^.*SLKBUILD$"

color white start="^." end="$"
icolor brightwhite "=" "'" "\(" "\)" "\"" "#.*$" "\," "\{" "\}"
icolor brightblue "^[[:space:]]*#.*$"

color green "^.*(pkgname|pkgver|pkgrel|arch|source|sourcetemplate|docs|url|options|dotnew).*=.*$"
color brightgreen "\<(pkgname|pkgver|pkgrel|arch|source|sourcetemplate|docs|url|options|dotnew|startdir|pkg|src)\>"
color brightgreen "(\$|\$\{|\$\()(pkgname|pkgver|pkgrel|arch|source|sourcetemplate|docs|url|options|dotnew|startdir|pkg|sr)(|\}|\))"
color brightyellow "\<(slackdesc)\>"
color brightyellow "doinst\(\)"
color brightyellow "build\(\)"
color brightred "\<(configure|make|cmake|scons|waf)\>"
color red "\<(DESTDIR|PREFIX|INSTALLDIRS)\>"
Add that line to your ~/.nanorc

Code: Select all

## SLKBUILD
include "/usr/share/nano/slkbuild.nanorc"
++

Re: nano SLKBUILD syntax highlighting

Posted: 6. Apr 2011, 00:06
by laprjns
This is great! Makes for a lot easier package building on my "Salixified" ARMedSlack Dockstar. Thanks
Rich