Mercurial > emacs
comparison src/regex.c @ 58780:7f1f68f88ae8
(regex_compile): Fix end-of-pattern case for space.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 05 Dec 2004 23:34:16 +0000 |
parents | 829390516ec0 |
children | 5f1c0193e984 |
comparison
equal
deleted
inserted
replaced
58779:79df48a5db35 | 58780:7f1f68f88ae8 |
---|---|
2556 break; | 2556 break; |
2557 p1++; | 2557 p1++; |
2558 } | 2558 } |
2559 /* If the spaces are followed by a repetition op, | 2559 /* If the spaces are followed by a repetition op, |
2560 treat them normally. */ | 2560 treat them normally. */ |
2561 if (p1 == pend | 2561 if (p1 != pend |
2562 || (*p1 == '*' || *p1 == '+' || *p1 == '?' | 2562 && (*p1 == '*' || *p1 == '+' || *p1 == '?' |
2563 || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{'))) | 2563 || (*p1 == '\\' && p1 + 1 != pend && p1[1] == '{'))) |
2564 goto normal_char; | 2564 goto normal_char; |
2565 | 2565 |
2566 /* Replace the spaces with the whitespace regexp. */ | 2566 /* Replace the spaces with the whitespace regexp. */ |
2567 in_subpattern = 1; | 2567 in_subpattern = 1; |