Mercurial > emacs
comparison src/regex.c @ 19184:83b4daf16443
Whitespace change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 06 Aug 1997 06:31:13 +0000 |
parents | a9bf61beded5 |
children | fc965930c738 |
comparison
equal
deleted
inserted
replaced
19183:aaf5a3f7a2bd | 19184:83b4daf16443 |
---|---|
2183 PATFETCH (c); | 2183 PATFETCH (c); |
2184 escaped_char = true; | 2184 escaped_char = true; |
2185 } | 2185 } |
2186 else | 2186 else |
2187 { | 2187 { |
2188 /* Could be the end of the bracket expression. If it's | 2188 /* Could be the end of the bracket expression. If it's |
2189 not (i.e., when the bracket expression is `[]' so | 2189 not (i.e., when the bracket expression is `[]' so |
2190 far), the ']' character bit gets set way below. */ | 2190 far), the ']' character bit gets set way below. */ |
2191 if (c == ']' && p != p1 + 1) | 2191 if (c == ']' && p != p1 + 1) |
2192 break; | 2192 break; |
2193 } | 2193 } |
2194 | 2194 |
2195 /* If C indicates start of multibyte char, get the | 2195 /* If C indicates start of multibyte char, get the |
2196 actual character code in C, and set the pattern | 2196 actual character code in C, and set the pattern |
2197 pointer P to the next character boundary. */ | 2197 pointer P to the next character boundary. */ |
2208 /* See if we're at the beginning of a possible character | 2208 /* See if we're at the beginning of a possible character |
2209 class. */ | 2209 class. */ |
2210 | 2210 |
2211 else if (!escaped_char && | 2211 else if (!escaped_char && |
2212 syntax & RE_CHAR_CLASSES && c == '[' && *p == ':') | 2212 syntax & RE_CHAR_CLASSES && c == '[' && *p == ':') |
2213 { /* Leave room for the null. */ | 2213 { |
2214 /* Leave room for the null. */ | |
2214 char str[CHAR_CLASS_MAX_LENGTH + 1]; | 2215 char str[CHAR_CLASS_MAX_LENGTH + 1]; |
2215 | 2216 |
2216 PATFETCH (c); | 2217 PATFETCH (c); |
2217 c1 = 0; | 2218 c1 = 0; |
2218 | 2219 |