]> thyrsus.com Git - ctopy.git/commitdiff
Fix a bug in declratio translation.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 3 Oct 2006 09:23:15 +0000 (09:23 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 3 Oct 2006 09:23:15 +0000 (09:23 +0000)
ctopy

diff --git a/ctopy b/ctopy
index 62422e7f1e13fa09f732005cc2921c985670cac3..c6ee01a4cf8c4c53247684180b40493bf342f27e 100755 (executable)
--- a/ctopy
+++ b/ctopy
@@ -86,9 +86,9 @@ repeat_transformations = (
     # Class-Vars between comma and semicolon get a following initializer 
     (r"(\n[ \t]*)(%(class)s)(.*,\s)*(%(id)s)(\s*;)", r"\1\2\3\4 = \2()\5"),
     # Scalar-vars between commas in a declaration line go away.
-    (r"(\n[ \t]*(?:%(type)s)\s+.*)(,\s*%(id)s)(,.*);", r"\1\3"),
+    (r"(\n[ \t]*(?:%(type)s)\s+.*)(,\s*%(id)s)(,.*);", r"\1\3;"),
     # Bare class-vars between commas get an initializer
-    (r"(\n[ \t]*)(%(class)s)(\s+.*,)(\s*%(id)s),(.*);", r"\1\2\3\4 = \2(),\5"),
+    (r"(\n[ \t]*)(%(class)s)(\s+.*,)(\s*%(id)s),(.*);",r"\1\2\3\4 = \2(),\5;"),
     # Any declaration line not containing an initializer goes away.
     (r"\n[ \t]*(?:%(type)s|%(class)s)[^=;]*;", ""),
     ),