summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatej Knopp <matej.knopp@gmail.com>2017-05-28 22:29:20 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-13 19:03:39 -0400
commit29f9fe041b75c32d0d7400a22dae346f4ad6a670 (patch)
treef54cbc16443a6ae3410ee8780023e278c0a4fa22
parent69bfd1a7710fb4da4b2a226a401a406aec24df6b (diff)
downloadglib-29f9fe041b75c32d0d7400a22dae346f4ad6a670.tar.gz
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
-rwxr-xr-xgobject/glib-mkenums.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 84219e74e..651f0e4dd 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'''/\*(?!<)