aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorKenichi Handa2000-10-12 02:54:26 +0000
committerKenichi Handa2000-10-12 02:54:26 +0000
commit465cf84ccde0458815736085b247852209d2cad5 (patch)
tree9bbe0bbc2e440efaf47ce4c12ad0aab0aeb8d80b /src/syntax.c
parent20401fcc56768630ea41db9d08cfc4d4a81ced5b (diff)
downloademacs-465cf84ccde0458815736085b247852209d2cad5.tar.gz
emacs-465cf84ccde0458815736085b247852209d2cad5.zip
(skip_chars): Change the way of handling a range from unibyte char to
multibyte char.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/syntax.c b/src/syntax.c
index a3b96c44475..04aad1d9a5d 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1483,17 +1483,18 @@ skip_chars (forwardp, syntaxp, string, lim)
1483 { 1483 {
1484 if (! SINGLE_BYTE_CHAR_P (c2)) 1484 if (! SINGLE_BYTE_CHAR_P (c2))
1485 { 1485 {
1486 /* Handle a range such as \177-\377 in multibyte 1486 /* Handle a range starting by a unibyte char and
1487 mode. Split that into two ranges, the low 1487 ending by a multibyte char. Split
1488 one ending at 0237, and the high one starting 1488 that into two ranges, the low one ending at
1489 at the smallest character in the charset of 1489 0377, and the high one starting at the
1490 C2 and ending at C2. */ 1490 smallest character in the charset of C2 and
1491 ending at C2. */
1491 int charset = CHAR_CHARSET (c2); 1492 int charset = CHAR_CHARSET (c2);
1492 int c1 = MAKE_CHAR (charset, 0, 0); 1493 int c1 = MAKE_CHAR (charset, 0, 0);
1493 1494
1494 char_ranges[n_char_ranges++] = c1; 1495 char_ranges[n_char_ranges++] = c1;
1495 char_ranges[n_char_ranges++] = c2; 1496 char_ranges[n_char_ranges++] = c2;
1496 c2 = 0237; 1497 c2 = 0377;
1497 } 1498 }
1498 while (c <= c2) 1499 while (c <= c2)
1499 { 1500 {