My favorites
▼
|
Sign in
nanosyntax
Nano Syntax Highlighting Config Files
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
syntax-nanorc
/
initscript.nanorc
r2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## initscripts syntax (stolen from gentoo.nanorc) ;)
##
syntax "initscript" "/etc/init.d/(\.|/|)"
## All the standard portage functions
#color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
## Highlight bash related syntax
color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color green "-(e|d|f|r|g|u|w|x|L)\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
## Highlight variables ... official portage ones in red, all others in bright red
color brightred "\$\{?[a-zA-Z_0-9]+\}?"
color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>"
color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
## Highlight portage commands
color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
color brightblue "\<e(begin|end|conf|install|make|warn|infon?|error|patch)\>"
color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>"
color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
color brightblue "\<(|doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
## Highlight common commands used in ebuilds
color blue "\<make\>" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>"
## Highlight comments (doesnt work that well)
color yellow "#.*$"
## Highlight strings (doesnt work that well)
color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
Show details
Hide details
Change log
r2
by Lucractius on Oct 2, 2008
Diff
First Import of syntax files
Go to:
/trunk/nanolauncher.sh
/trunk/syntax-nanorc
/trunk/syntax-nanorc/apache2.nanorc
.../syntax-nanorc/apacheconf.nanorc
.../syntax-nanorc/aptsrclist.nanorc
/trunk/syntax-nanorc/asm.nanorc
/trunk/syntax-nanorc/bash.nanorc
/trunk/syntax-nanorc/c-file.nanorc
/trunk/syntax-nanorc/c.nanorc
...k/syntax-nanorc/changelog.nanorc
.../syntax-nanorc/changelogs.nanorc
/trunk/syntax-nanorc/clike.nanorc
/trunk/syntax-nanorc/conf.nanorc
/trunk/syntax-nanorc/config.nanorc
/trunk/syntax-nanorc/config2.nanorc
/trunk/syntax-nanorc/config3.nanorc
...syntax-nanorc/configfiles.nanorc
/trunk/syntax-nanorc/conky.nanorc
/trunk/syntax-nanorc/css.nanorc
/trunk/syntax-nanorc/debian.nanorc
/trunk/syntax-nanorc/default.nanorc
/trunk/syntax-nanorc/delphi.nanorc
/trunk/syntax-nanorc/desc.nanorc
...nk/syntax-nanorc/dotemacs.nanorc
/trunk/syntax-nanorc/dummy.nanorc
/trunk/syntax-nanorc/ebuild.nanorc
.../syntax-nanorc/ekghistory.nanorc
...k/syntax-nanorc/etc-stuff.nanorc
.../syntax-nanorc/etcportage.nanorc
/trunk/syntax-nanorc/etcxml.nanorc
/trunk/syntax-nanorc/gentoo.nanorc
/trunk/syntax-nanorc/groff.nanorc
/trunk/syntax-nanorc/havp.nanorc
/trunk/syntax-nanorc/html.nanorc
...ax-nanorc/httpstatuscodes.nanorc
/trunk/syntax-nanorc/info.nanorc
/trunk/syntax-nanorc/ini.nanorc
/trunk/syntax-nanorc/initng.nanorc
.../syntax-nanorc/initscript.nanorc
/trunk/syntax-nanorc/java.nanorc
/trunk/syntax-nanorc/js.nanorc
...k/syntax-nanorc/log-stuff.nanorc
/trunk/syntax-nanorc/maincf.nanorc
...nk/syntax-nanorc/makefile.nanorc
/trunk/syntax-nanorc/man.nanorc
...syntax-nanorc/mcchangelog.nanorc
...nk/syntax-nanorc/mimetype.nanorc
/trunk/syntax-nanorc/mutt.nanorc
/trunk/syntax-nanorc/named.nanorc
/trunk/syntax-nanorc/nanorc.nanorc
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1880 bytes, 28 lines
View raw file
Powered by
Google Project Hosting