This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / gentoo.nanorc
1 ## Here is an example for ebuilds/eclasses
2 ##
3 syntax "Ebuild" "\.e(build|class)$"
4 comment "#"
5
6 ## All the standard portage functions
7 color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
8 ## Highlight bash related syntax
9 color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>"
10 color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
11 color green "-(e|d|f|r|g|u|w|x|L)\>"
12 color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
13 ## Highlight variables ... official portage ones in red, all others in bright red
14 color brightred "\$\{?[a-zA-Z_0-9]+\}?"
15 color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>"
16 color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
17 ## Highlight portage commands
18 color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
19 color brightblue "\<e(begin|end|conf|install|make|warn|infon?|error|log|patch|new(group|user))\>"
20 color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>"
21 color brightblue "\<(do|new)(ins|s?bin|doc|lib(\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
22 color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
23 color brightblue "prepall(docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
24 color brightblue "\<(doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
25 ## Highlight common commands used in ebuilds
26 color blue "\<make\>" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>"
27 ## Highlight comments (doesnt work that well)
28 color yellow "#.*$"
29 ## Highlight strings (doesnt work that well)
30 color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
31 ## Trailing space is bad!
32 color ,green "[[:space:]]+$"
33
34 ## Here is an example for Portage control files
35 ##
36 syntax "etc-portage" "\.(keywords|mask|unmask|use)$"
37 ## Base text:
38 color green "^.+$"
39 ## Use flags:
40 color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+"
41 color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+"
42 ## Likely version numbers:
43 color magenta "-[[:digit:]].*([[:space:]]|$)"
44 ## Accepted arches:
45 color white "[~-]?\<(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\>"
46 color white "[[:space:]][~-]?\*"
47 ## Categories:
48 color cyan "^[[:space:]]*.*/"
49 ## Masking regulators:
50 color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
51 ## Comments:
52 color yellow "#.*$"