From fb2f1b99a8be6b42abefcd4829e4e8839ab1663c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 12 Dec 2014 16:00:43 -0500 Subject: [PATCH] Special case for FOO = '}' in enumerations https://bugzilla.gnome.org/show_bug.cgi?id=741305 --- gtkdoc-common.pl.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in index 5175473..efc2a6b 100644 --- a/gtkdoc-common.pl.in +++ b/gtkdoc-common.pl.in @@ -277,6 +277,12 @@ sub ParseEnumDeclaration { $declaration =~ s/\([^)\n]+\)//g; + # Remove apostrophed characters (e.g. '}' or ',') values to avoid getting + # confused with end of enumeration. + # See https://bugzilla.gnome.org/show_bug.cgi?id=741305 + + $declaration =~ s/\'.\'//g; + # Remove comma from comma - possible whitespace - closing brace sequence # since it is legal in GNU C and C99 to have a trailing comma but doesn't # result in an actual enum member -- 2.11.4.GIT