Fix case where you start a new group immediately after a label.

Thanks to Ka-Ping Yee.
This commit is contained in:
Guido van Rossum 1996-10-23 17:53:06 +00:00
parent c148cd6cdd
commit 0cbaff440d
1 changed files with 1 additions and 1 deletions

View File

@ -456,7 +456,7 @@ symcomp(pattern, gdict)
*g++ = *o++;
}
}
if (*o == '[' && !escaped) {
else if (*o == '[' && !escaped) {
*n++ = *o;
++o; /* eat the char following '[' */
*n++ = *o;