diff options
author | Kenichi Handa <handa@m17n.org> | 2000-10-12 02:54:26 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2000-10-12 02:54:26 +0000 |
commit | 465cf84ccde0458815736085b247852209d2cad5 (patch) | |
tree | 9bbe0bbc2e440efaf47ce4c12ad0aab0aeb8d80b /src/syntax.c | |
parent | 20401fcc56768630ea41db9d08cfc4d4a81ced5b (diff) | |
download | emacs-465cf84ccde0458815736085b247852209d2cad5.tar.gz |
(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.c | 13 |
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) { if (! SINGLE_BYTE_CHAR_P (c2)) { - /* Handle a range such as \177-\377 in multibyte - mode. Split that into two ranges, the low - one ending at 0237, and the high one starting - at the smallest character in the charset of - C2 and ending at C2. */ + /* Handle a range starting by a unibyte char and + ending by a multibyte char. Split + that into two ranges, the low one ending at + 0377, and the high one starting at the + smallest character in the charset of C2 and + ending at C2. */ int charset = CHAR_CHARSET (c2); int c1 = MAKE_CHAR (charset, 0, 0); char_ranges[n_char_ranges++] = c1; char_ranges[n_char_ranges++] = c2; - c2 = 0237; + c2 = 0377; } while (c <= c2) { |