forked from serialhex/nano-highlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paludis.nanorc
181 lines (122 loc) · 3.65 KB
/
paludis.nanorc
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
syntax "bashrc" "bashrc$"
## Base text
color brightblack "^.+$"
## sh syntax
color brightwhite "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
icolor magenta "(.+\)|\[.+\])"
color brightwhite "(\{|\}|\(\)|\;|\]|\[|`|\\|\$|<|>|!|==|&)"
color brightwhite "-[Ldefgruwx]\>"
color brightwhite "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color ,green "[[:space:]]+$"
color green "\".*\""
color brightwhite "case[[:space:]]\".+\""
color brightgreen "\$\{.+\}"
## Package name
color brightmagenta "\$\{PN\}"
## Keywords
color brightwhite "(CHOST|CFLAGS|CXXFLAGS|MAKEOPTS)="
color white "(SKIP_FUNCTIONS|PATH|CCACHE_SIZE|CCACHE_DIR|PALUDIS_USE_SAFE_RESUME)="
## Comments
color brightred "#.*$"
color yellow "^#.*$"
color brightyellow "^##[[:space:]].*$"
syntax "license-use" "(licenses|use)\.conf$"
## Base text
color brightblack "^.+$"
## Package name
color brightblue "/.*[[:space:]]"
## Categories
color cyan "^.*/"
## Version number
color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)"
## Repository name
color magenta "::.*[[:space:]]"
## Licenses and use
color green "[[:space:]][^[:space:]]*"
color red "[[:space:]]-[^[:space:]]*"
## Masking regulators
color brightred "^(<|<=|=|>=|>)*"
color brightwhite "^(<|<=|=|>=|>)"
## Additional variables
color brightgreen "(ALSA_CARDS|INPUT_DEVICES|LANGUAGE|LINGUAS|VIDEO_CARDS|PALUDIS_HOOKS):?"
## Trailing whitespace
color brightred ".*[[:space:]]$"
## Comments
color brightred "#.*$"
color yellow "^#.*$"
color brightyellow "^##[[:space:]].*$"
syntax "keywords" "keywords\.conf$"
## Base text
color brightblack "^.+$"
## Package name
color brightblue "/.*[[:space:]]"
## Categories
color cyan "^.*/"
## Version number
color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)"
## Repository name
color magenta "::.*[[:space:]]"
## Accepted arches
color green "[[:space:]][~]?(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd|\*)"
color red "-\*"
## Masking regulators
color brightred "^(<|<=|=|>=|>)*"
color brightwhite "^(<|<=|=|>=|>)"
## Trailing whitespace
color brightred ".*[[:space:]]$"
## Comments
color brightred "#.*$"
color yellow "^#.*$"
color brightyellow "^##[[:space:]].*$"
syntax "mask-unmask" "package_(mask|unmask)\.conf$"
## Base text
color brightblack "^.+$"
## Package name
color brightblue "/.*"
## Categories
color cyan "^.*/"
## Version number
color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*($|::)"
## Repository name
color magenta "::.*$"
## Masking regulators
color brightred "^(<|<=|=|>=|>)*"
color brightwhite "^(<|<=|=|>=|>)"
## Trailing whitespace
color brightred ".*[[:space:]]$"
## Comments
color brightred "#.*$"
color yellow "^#.*$"
color brightyellow "^##[[:space:]].*$"
syntax "mirrors" "mirrors\.conf$"
## Base text
color red "^.+$"
## Server name
color brightwhite "^.*[[:space:]]"
## Address
color brightblue "[[:space:]](ftp://|http://).*$"
## Trailing whitespace
color brightred ".*[[:space:]]$"
## Comments
color brightred "#.*$"
color yellow "^#.*$"
color brightyellow "^##[[:space:]].*$"
syntax "repositories" "repo"
## Base text
color brightblack "^.+$"
## Parameters
color magenta "=[[:space:]].+$"
color brightwhite "^.*[[:space:]]=[[:space:]]"
## Path
color green "/.+"
color brightgreen "\$\{.*\}"
## Address:
color brightblue "(svn\+https|svn\+http|http|rsync)://.*$"
## Trailing whitespace
color brightred ".*[[:space:]]$"
## Comments
color brightred "#.*$"
color yellow "^#.*$"
color brightyellow "^##[[:space:]].*$"