[glib/meson-for-merge] glib-mkenums: Fix parsing of multiline comments
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/meson-for-merge] glib-mkenums: Fix parsing of multiline comments
- Date: Fri, 14 Jul 2017 00:22:44 +0000 (UTC)
commit 29f9fe041b75c32d0d7400a22dae346f4ad6a670
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]