aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regex.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/regex.c b/src/regex.c
index 0dcdedec517..a700c887da8 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -3381,21 +3381,13 @@ re_compile_fastmap (bufp)
3381 { 3381 {
3382 int fastmap_newline = fastmap['\n']; 3382 int fastmap_newline = fastmap['\n'];
3383 3383
3384 /* `.' matches anything (but if bufp->multibyte is 3384 /* `.' matches anything, except perhaps newline.
3385 nonzero, matches `\000' .. `\127' and possible multibyte 3385 Even in a multibyte buffer, it should match any
3386 character) ... */ 3386 conceivable byte value for the fastmap. */
3387 if (bufp->multibyte) 3387 if (bufp->multibyte)
3388 { 3388 match_any_multibyte_characters = true;
3389 simple_char_max = 0x80;
3390
3391 for (j = 0x80; j < 0xA0; j++)
3392 if (BASE_LEADING_CODE_P (j))
3393 fastmap[j] = 1;
3394 match_any_multibyte_characters = true;
3395 }
3396 else
3397 simple_char_max = (1 << BYTEWIDTH);
3398 3389
3390 simple_char_max = (1 << BYTEWIDTH);
3399 for (j = 0; j < simple_char_max; j++) 3391 for (j = 0; j < simple_char_max; j++)
3400 fastmap[j] = 1; 3392 fastmap[j] = 1;
3401 3393