mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
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)
This commit is contained in:
committed by
Matthias Clasen
parent
4d83c82f47
commit
a2b2c8143f
@@ -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;
|
||||
|
Reference in New Issue
Block a user