[glib/wip/meson] glib-mkenums: Fix parsing of multiline comments



commit 1eaf57bb3b3f36f6912427f58a3e566fd95722ce
Author: Matej Knopp <matej knopp gmail com>
Date:   Sun May 28 22:29:20 2017 +0200

    glib-mkenums: Fix parsing of multiline comments
    
    ... in glib-mkenums python port.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779332
    https://bugzilla.gnome.org/show_bug.cgi?id=783198

 gobject/glib-mkenums.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 84219e7..651f0e4 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -64,7 +64,7 @@ def parse_entries(file, file_name):
     for line in file:
         # read lines until we have no open comments
         while re.search(r'/\*([^*]|\*(?!/))*$', line):
-            line = file.readline()
+            line += file.readline()
 
         # strip comments w/o options
         line = re.sub(r'''/\*(?!<)
@@ -315,7 +315,7 @@ def process_file(curfilename):
     for line in curfile:
         # read lines until we have no open comments
         while re.search(r'/\*([^*]|\*(?!/))*$', line):
-            line = curfile.readline()
+            line += curfile.readline()
 
         # strip comments w/o options
         line = re.sub(r'''/\*(?!<)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]