Package: nano
Version: 2.2.5-1
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch natty

Tiago Silva reported:

  The 'auto' specifier is presently not supported in nanorc.

The attached patch (provided by Tiago, but I massaged it into quilt form
with a DEP-3 header) fixes this.

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]
=== added directory 'debian/patches'
=== added file 'debian/patches/c-nanorc-auto.patch'
--- debian/patches/c-nanorc-auto.patch	1970-01-01 00:00:00 +0000
+++ debian/patches/c-nanorc-auto.patch	2010-11-29 17:03:38 +0000
@@ -0,0 +1,19 @@
+Description: Support C/C++ 'auto' storage class specifier
+Author: Tiago Silva
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/674474
+Forwarded: no
+Last-Update: 2010-11-29
+
+Index: b/doc/syntax/c.nanorc
+===================================================================
+--- a/doc/syntax/c.nanorc
++++ b/doc/syntax/c.nanorc
+@@ -2,7 +2,7 @@
+ ##
+ syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
+ color brightred "\<[A-Z_][0-9A-Z_]+\>" 
+-color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
++color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|auto|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
+ color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
+ color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
+ color brightyellow "\<(for|if|while|do|else|case|default|switch)\>"

=== added file 'debian/patches/series'
--- debian/patches/series	1970-01-01 00:00:00 +0000
+++ debian/patches/series	2010-11-29 17:01:22 +0000
@@ -0,0 +1 @@
+c-nanorc-auto.patch

=== modified file 'doc/syntax/c.nanorc'
--- doc/syntax/c.nanorc	2010-04-15 19:26:23 +0000
+++ doc/syntax/c.nanorc	2010-11-29 17:07:30 +0000
@@ -2,7 +2,7 @@
 ##
 syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
 color brightred "\<[A-Z_][0-9A-Z_]+\>" 
-color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
+color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|auto|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
 color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
 color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
 color brightyellow "\<(for|if|while|do|else|case|default|switch)\>"

Reply via email to