nano SLKBUILD syntax highlighting

Other talk about Salix
Post Reply
User avatar
fredg
Posts: 232
Joined: 3. Oct 2009, 16:50
Location: Lyon, France
Contact:

nano SLKBUILD syntax highlighting

Post 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"
++
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: nano SLKBUILD syntax highlighting

Post by laprjns »

This is great! Makes for a lot easier package building on my "Salixified" ARMedSlack Dockstar. Thanks
Rich
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
Post Reply