summaryrefslogtreecommitdiff
path: root/gobject/glib-mkenums.in
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-09-26 15:19:24 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-09-26 15:19:24 +0000
commita2b2c8143f10e3f7581d6cbf8ea039afc70db388 (patch)
tree74b0c8b07fcd12a25c606e774e98a9708bc0dbe6 /gobject/glib-mkenums.in
parent4d83c82f471876897b83d9c6aa80263520a67375 (diff)
Don't hang on '{' following a trigraph comment in the same line. (#314890,
2005-09-26 Matthias Clasen <mclasen@redhat.com> * glib-mkenums.in: Don't hang on '{' following a trigraph comment in the same line. (#314890, Mathias Hasselmann)
Diffstat (limited to 'gobject/glib-mkenums.in')
-rwxr-xr-xgobject/glib-mkenums.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 6782e0b79..f4bf92c47 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -267,6 +267,7 @@ while (<>) {
(?:/\*<
(([^*]|\*(?!/))*)
>\s*\*/)?
+ ({)?
@x) {
if (defined $2) {
my %options = parse_trigraph ($2);
@@ -280,7 +281,7 @@ while (<>) {
$option_lowercase_name = undef;
}
# Didn't have trailing '{' look on next lines
- if (!defined $1) {
+ if (!defined $1 && !defined $3) {
while (<>) {
if (s/^\s*\{//) {
last;