1 |
vapier 12/08/26 03:24:37 |
2 |
|
3 |
Added: nano-2.3.1-shell-nanorc.patch |
4 |
nano-2.3.1-bind-unbind-docs.patch |
5 |
nano-2.3.1-drop-target.patch |
6 |
nano-2.3.1-gentoo-nanorc.patch |
7 |
Log: |
8 |
Update nanorc files #397413 by Davide Pesavento. Split USE=nls dependency #398975 by Maxim Kammerer. |
9 |
|
10 |
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 app-editors/nano/files/nano-2.3.1-shell-nanorc.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-shell-nanorc.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-shell-nanorc.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: nano-2.3.1-shell-nanorc.patch |
19 |
=================================================================== |
20 |
From 5a6a9c107148162f47032b03af3f393c3888c5df Mon Sep 17 00:00:00 2001 |
21 |
From: Mike Frysinger <vapier@g.o> |
22 |
Date: Tue, 28 Feb 2012 11:14:33 -0500 |
23 |
Subject: [PATCH] shell syntax: major updates |
24 |
|
25 |
Highlight more shell builtins and common commands. |
26 |
|
27 |
Rewrite the variable highlighting to be more exact and handle cases where |
28 |
string operations are used. |
29 |
|
30 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
31 |
--- |
32 |
doc/syntax/sh.nanorc | 13 +++++++++---- |
33 |
1 file changed, 9 insertions(+), 4 deletions(-) |
34 |
|
35 |
diff --git a/doc/syntax/sh.nanorc b/doc/syntax/sh.nanorc |
36 |
index f660105..a664ef6 100644 |
37 |
--- a/doc/syntax/sh.nanorc |
38 |
+++ b/doc/syntax/sh.nanorc |
39 |
@@ -4,12 +4,17 @@ syntax "sh" "\.sh$" |
40 |
magic "(POSIX|Bourne.*) shell script text" |
41 |
header "^#!.*/(ba|k|pdk)?sh[-0-9_]*" |
42 |
icolor brightgreen "^[0-9A-Z_]+\(\)" |
43 |
-color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" |
44 |
-color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" |
45 |
+color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>" |
46 |
+color green "\<(declare|eval|exec|export|let|local)\>" |
47 |
+color green "[{}():;|`$<>!=&\\]" "(\]|\[)" |
48 |
color green "-[Ldefgruwx]\>" |
49 |
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" |
50 |
-color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" |
51 |
-icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" |
52 |
+color brightblue "\<(awk|cat|cd|ch(grp|mod|own)|cp|echo|env|grep|install|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|umask|unset)\>" |
53 |
+# Basic variable names (no braces) |
54 |
+color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*" |
55 |
+# More complicated variable names; handles braces |
56 |
+# and replacements and arrays |
57 |
+color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:space:]]*[[:alnum:]_]+[[:space:]]*|@)\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})" |
58 |
color cyan "(^|[[:space:]])#.*$" |
59 |
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" |
60 |
color ,green "[[:space:]]+$" |
61 |
-- |
62 |
1.7.9.7 |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
1.1 app-editors/nano/files/nano-2.3.1-bind-unbind-docs.patch |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-bind-unbind-docs.patch?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-bind-unbind-docs.patch?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: nano-2.3.1-bind-unbind-docs.patch |
73 |
=================================================================== |
74 |
From 5afd6d3e9558f8295496f7c59c765947e7f19d8a Mon Sep 17 00:00:00 2001 |
75 |
From: Mike Frysinger <vapier@g.o> |
76 |
Date: Mon, 28 Nov 2011 15:37:02 -0500 |
77 |
Subject: [PATCH 1/2] nanorc(5): fix bind/unbind documentation |
78 |
|
79 |
The unbind section is listed after valid key/menu/functions, but tries |
80 |
to say those sections come after it. So reorganization the section so |
81 |
that bind/unbind comes first, and then we cover the key/menu/functions |
82 |
after both of them. |
83 |
|
84 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
85 |
--- |
86 |
doc/man/nanorc.5 | 32 +++++++++++++++++++------------- |
87 |
1 file changed, 19 insertions(+), 13 deletions(-) |
88 |
|
89 |
diff --git a/doc/man/nanorc.5 b/doc/man/nanorc.5 |
90 |
index da33179..2da71ab 100644 |
91 |
--- a/doc/man/nanorc.5 |
92 |
+++ b/doc/man/nanorc.5 |
93 |
@@ -282,9 +282,19 @@ Read in self-contained color syntaxes from \fIsyntaxfile\fP. Note that |
94 |
.SH KEY BINDINGS |
95 |
Key bindings may be reassigned via the following commands: |
96 |
.TP |
97 |
-.B bind \fIkey\fP \fIfunction\fP \fImenu\fP |
98 |
+.B bind \fIkey\fP \fIfunction\fP \fImenu\fP |
99 |
Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the |
100 |
-context of menu \fImenu\fP. The format of \fIkey\fP should be one of: |
101 |
+context of menu \fImenu\fP. |
102 |
+.TP |
103 |
+.B unbind \fIkey\fP \fImenu\fP |
104 |
+Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all |
105 |
+menus by using \fIall\fP. Same key syntax as for binding. |
106 |
+Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the |
107 |
+context of menu \fImenu\fP. |
108 |
+.TP |
109 |
+ |
110 |
+The format of \fIkey\fP should be one of: |
111 |
+ |
112 |
.TP |
113 |
.B ^ |
114 |
followed by an alpha character or the word "Space". |
115 |
@@ -298,8 +308,10 @@ Example: M-C |
116 |
followed by a numeric value from 1 to 16. |
117 |
Example: F10 |
118 |
.TP |
119 |
-Valid function names to be bound include: |
120 |
-.TP 3 |
121 |
+ |
122 |
+Valid \fIfunction\fP names to be bound include: |
123 |
+ |
124 |
+.TP 2 |
125 |
.B help |
126 |
Invoke the help menu. |
127 |
.TP |
128 |
@@ -506,8 +518,9 @@ Toggle whether long lines will be wrapped to the next line. |
129 |
Toggle whether the suspend sequence (normally ^Z) will suspend the editor window. |
130 |
.TP |
131 |
|
132 |
-Valid menu sections are: |
133 |
-.TP |
134 |
+Valid \fImenu\fP sections are: |
135 |
+ |
136 |
+.TP 2 |
137 |
.B main |
138 |
The main editor window where text is entered. |
139 |
.TP |
140 |
@@ -549,13 +562,6 @@ The 'go to directory' menu. |
141 |
.TP |
142 |
.B all |
143 |
A special name meaning: apply to all menus where this function exists. |
144 |
- |
145 |
-.TP |
146 |
-.B unbind \fIkey\fP \fImenu\fP |
147 |
-Unbind the key \fIkey\fP from the menu named \fImenu\fP or from all |
148 |
-menus by using \fIall\fP. Same key syntax as for binding. |
149 |
-Rebinds the key \fIkey\fP to a new function named \fIfunction\fP in the |
150 |
-context of menu \fImenu\fP. The format of \fIkey\fP should be one of: |
151 |
.SH FILES |
152 |
.TP |
153 |
.I SYSCONFDIR/nanorc |
154 |
-- |
155 |
1.7.9.7 |
156 |
|
157 |
From 4b3e912d4a5c3561d1cfaf944d33ba9c30a9a555 Mon Sep 17 00:00:00 2001 |
158 |
From: Mike Frysinger <vapier@g.o> |
159 |
Date: Mon, 28 Nov 2011 15:38:26 -0500 |
160 |
Subject: [PATCH 2/2] nanorc syntax: add bind/unbind commands |
161 |
|
162 |
We don't currently handle the bind/unbind commands, so adding them to |
163 |
your nanorc file with colorization enabled makes it look like they're |
164 |
not actually supported. |
165 |
|
166 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
167 |
--- |
168 |
doc/syntax/nanorc.nanorc | 6 ++++-- |
169 |
1 file changed, 4 insertions(+), 2 deletions(-) |
170 |
|
171 |
diff --git a/doc/syntax/nanorc.nanorc b/doc/syntax/nanorc.nanorc |
172 |
index bda5f4f..287be56 100644 |
173 |
--- a/doc/syntax/nanorc.nanorc |
174 |
+++ b/doc/syntax/nanorc.nanorc |
175 |
@@ -2,10 +2,12 @@ |
176 |
## |
177 |
syntax "nanorc" "\.?nanorc$" |
178 |
## Possible errors and parameters |
179 |
-icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" |
180 |
+icolor brightwhite "^[[:space:]]*((un)?(bind|set)|include|syntax|i?color).*$" |
181 |
## Keywords |
182 |
icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(allow_insecure_backup|autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|poslog|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|softwrap|speller|suspend|suspendenable|tabsize|tabstospaces|tempfile|undo|view|whitespace|wordbounds)\>" |
183 |
-icolor green "^[[:space:]]*(set|unset|include|syntax|header|magic)\>" |
184 |
+icolor brightgreen "^[[:space:]]*bind[[:space:]]+((\^|M-)([[:alpha:]]|space)|F([0-9]|1[0-6]))[[:space:]]+[[:alpha:]]+[[:space:]]+[[:alpha:]]+[[:space:]]*$" |
185 |
+icolor brightgreen "^[[:space:]]*unbind[[:space:]]+((\^|M-)([[:alpha:]]|space)|F([0-9]|1[0-6]))[[:space:]]+[[:alpha:]]+[[:space:]]*$" |
186 |
+icolor green "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic)\>" |
187 |
## Colors |
188 |
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" |
189 |
icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" |
190 |
-- |
191 |
1.7.9.7 |
192 |
|
193 |
|
194 |
|
195 |
1.1 app-editors/nano/files/nano-2.3.1-drop-target.patch |
196 |
|
197 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-drop-target.patch?rev=1.1&view=markup |
198 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-drop-target.patch?rev=1.1&content-type=text/plain |
199 |
|
200 |
Index: nano-2.3.1-drop-target.patch |
201 |
=================================================================== |
202 |
From 0708d921211fa0f89288690593c406a682b2c826 Mon Sep 17 00:00:00 2001 |
203 |
From: Mike Frysinger <vapier@g.o> |
204 |
Date: Tue, 14 Jun 2011 16:00:52 -0400 |
205 |
Subject: [PATCH] drop --target as it makes no sense |
206 |
|
207 |
Since nano doesn't produce code, the --target option to configure |
208 |
doesn't make sense. So only support --{build,host} since those are |
209 |
what we need in order to cross-compile. |
210 |
|
211 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
212 |
--- |
213 |
configure.ac | 2 +- |
214 |
1 file changed, 1 insertion(+), 1 deletion(-) |
215 |
|
216 |
diff --git a/configure.ac b/configure.ac |
217 |
index c590737..3eb61c2 100644 |
218 |
--- a/configure.ac |
219 |
+++ b/configure.ac |
220 |
@@ -22,7 +22,7 @@ |
221 |
|
222 |
AC_INIT([GNU nano], [2.3.1], [nano-devel@×××.org], [nano]) |
223 |
AC_CONFIG_SRCDIR([src/nano.c]) |
224 |
-AC_CANONICAL_TARGET([]) |
225 |
+AC_CANONICAL_HOST |
226 |
AM_INIT_AUTOMAKE |
227 |
AC_CONFIG_HEADERS([config.h]) |
228 |
|
229 |
-- |
230 |
1.7.9.7 |
231 |
|
232 |
|
233 |
|
234 |
|
235 |
1.1 app-editors/nano/files/nano-2.3.1-gentoo-nanorc.patch |
236 |
|
237 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-gentoo-nanorc.patch?rev=1.1&view=markup |
238 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/nano/files/nano-2.3.1-gentoo-nanorc.patch?rev=1.1&content-type=text/plain |
239 |
|
240 |
Index: nano-2.3.1-gentoo-nanorc.patch |
241 |
=================================================================== |
242 |
From b7e6bbe4ee980a5bb166bae8cd5603301cb6e22f Mon Sep 17 00:00:00 2001 |
243 |
From: Mike Frysinger <vapier@g.o> |
244 |
Date: Sat, 25 Aug 2012 23:03:22 -0400 |
245 |
Subject: [PATCH] gentoo syntax: update |
246 |
|
247 |
Update to newer EAPIs, and fold in updated shell changes too. |
248 |
Much of this is based on work by Davide. |
249 |
|
250 |
Reported-by: Davide Pesavento <pesa@g.o> |
251 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
252 |
--- |
253 |
doc/syntax/gentoo.nanorc | 44 ++++++++++++++++++++++++++------------------ |
254 |
1 file changed, 26 insertions(+), 18 deletions(-) |
255 |
|
256 |
diff --git a/doc/syntax/gentoo.nanorc b/doc/syntax/gentoo.nanorc |
257 |
index 2ad1597..55dd101 100644 |
258 |
--- a/doc/syntax/gentoo.nanorc |
259 |
+++ b/doc/syntax/gentoo.nanorc |
260 |
@@ -2,30 +2,38 @@ |
261 |
## |
262 |
syntax "ebuild" "\.e(build|class)$" |
263 |
## All the standard portage functions |
264 |
-color brightgreen "^src_(unpack|prepare|configure|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))" |
265 |
+color brightgreen "(^|\<default_)src_(unpack|prepare|configure|compile|install|test)\>" |
266 |
+color brightgreen "^pkg_(config|nofetch|pretend|setup|(pre|post)(inst|rm))\>" |
267 |
+color brightgreen "\<default(_pkg_nofetch)?\>" |
268 |
## Highlight bash related syntax |
269 |
-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)\>" |
270 |
-color green "\<(declare|eval|exec|let)\>" |
271 |
-color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" |
272 |
-color green "-[edfgruwxL]\>" |
273 |
-color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" |
274 |
+color green "\<(break|case|continue|do|done|elif|else|esac|exit|fi|for|function|if|in|read|return|select|shift|then|time|until|while)\>" |
275 |
+color green "\<(declare|eval|exec|export|let|local)\>" |
276 |
+color green "[{}():;|`$<>!=&\\]" "(\]|\[)" |
277 |
+color green "-[defhnrsuwxzL]\>" |
278 |
+color green "-(eq|ne|gt|lt|ge|le)\>" |
279 |
## Highlight variables ... official portage ones in red, all others in bright red |
280 |
-color brightred "\$\{?[a-zA-Z_0-9]+\}?" |
281 |
-color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|(P|R)?DEPEND|PROVIDE|PROPERTIES|RESTRICT|USERLAND)\>" |
282 |
-color red "\<(S|D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|ROOT|WORKDIR)\>" "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>" |
283 |
-color red "\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>" "\<WANT_AUTO(CONF|MAKE)\>" "\<AT_M4DIR\>" |
284 |
+color brightred "\$[-0-9@*#?$!]" "\$[[:alpha:]_][[:alnum:]_]*" |
285 |
+color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:digit:]]|@)+\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\})" |
286 |
+color red "\<(EAPI|ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|(P|R)?DEPEND|PROVIDE|PROPERTIES|REQUIRED_USE|RESTRICT|USERLAND)\>" |
287 |
+color red "\<(S|E?D|T|PV|PF|P|PN|PR|PVR|A|CATEGORY|DISTDIR|FILESDIR|EPREFIX|E?ROOT|WORKDIR)\>" |
288 |
+color red "\<(AS|C(PP|XX)?|LD)FLAGS\>" "\<C(HOST|TARGET|BUILD)\>" |
289 |
+color red "\<QA_((TEXTRELS|EXECSTACK|WX_LOAD)(_[a-zA-Z_0-9]+)?|DT_HASH|PRESTRIPPED)\>" |
290 |
+color red "\<(PATCHES|(HTML_)?DOCS)\>" "\<WANT_(AUTO(CONF|MAKE)|LIBTOOL)\>" "\<AT_M4DIR\>" |
291 |
## Highlight portage commands |
292 |
-color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*" |
293 |
-color brightblue "\<e(begin|end|conf|install|make|qmake[34]|ant|(qa)?warn|infon?|error|log|patch|new(group|user))\>" |
294 |
-color brightblue "\<e(pause|beep|mktemp|(cvs|svn)_clean|punt_cxx)\>" "\<e(aclocal|auto(reconf|header|conf|make))\>" |
295 |
-color brightblue "\<built_with_use\>" "\<make_desktop_entry\>" "\<unpack(_(makeself|pdv))?\>" |
296 |
-color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" |
297 |
+color magenta "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\> [!a-zA-Z0-9_+ -]*" "inherit.*" |
298 |
+color brightblue "\<e(begin|end|conf|install|make|qmake4|ant|(qa)?warn|infon?|error|log|patch(_user)?|new(group|user))\>" |
299 |
+color brightblue "\<e(pause|beep|mktemp|(cvs|svn)_clean|punt_cxx)\>" "\<e(aclocal|auto(reconf|header|conf|make)|libtoolize)\>" |
300 |
+color brightblue "\<e(stack|shopts|umask)_(push|pop)\>" "\<version_is_at_least\>" |
301 |
+color brightblue "\<make_desktop_entry\>" "\<unpack(_(makeself|pdv))?\>" |
302 |
+color brightblue "\<(die|has|inherit|nonfatal)\>" "\<(use(_(with|enable|if_iuse)|x)?|in_iuse)\>" "\<(has|best)_version\>" |
303 |
color brightblue "\<(do|new)(ins|(games)?s?bin|doc|lib(\.so|\.a)?|man|info|exe|initd|confd|envd|pam|menu|icon)\>" |
304 |
-color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>" |
305 |
-color brightblue "prepall(docs|info|man|strip)?" "prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)" |
306 |
+color brightblue "\<do(compress|python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>" |
307 |
+color brightblue "\<prepall(docs|info|man|strip)?\>" "\<prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)\>" |
308 |
color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe|ins|dir)opts\>" |
309 |
+color brightblue "\<tc-get(BUILD_)?(AR|AS|CC|CPP|CXX|LD|NM|OBJCOPY|PKG_CONFIG|RANLIB)\>" |
310 |
+color brightblue "\<tc-(arch(-kernel)?|export|has-(tls|openmp))\>" |
311 |
## Highlight common commands used in ebuilds |
312 |
-color blue "\<make\>" "\<(awk|cat|cd|chmod|chown|cp|echo|env|export|find|e?grep|ln|mkdir|mv|rm|sed|set|tar|touch|unset|xargs)\>" |
313 |
+color blue "\<(awk|cat|cd|chmod|chown|cp|echo|env|find|e?grep|ln|make|mkdir|mv|popd|printf|pushd|rm|rmdir|sed|set|tar|touch|unset|xargs)\>" |
314 |
## Highlight comments (doesnt work that well) |
315 |
color yellow "(^|[[:space:]])#.*$" |
316 |
## Highlight strings (doesnt work that well) |
317 |
-- |
318 |
1.7.9.7 |