Special case for FOO = '}' in enumerations

https://bugzilla.gnome.org/show_bug.cgi?id=741305