Mercurial > emacs
comparison src/syntax.c @ 77927:d15a774f9796
(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 06 Jun 2007 17:09:40 +0000 |
parents | cbb18b4e981b |
children | 922696f363b0 31beec9ee600 |
comparison
equal
deleted
inserted
replaced
77926:0d16f59843e9 | 77927:d15a774f9796 |
---|---|
1274 } | 1274 } |
1275 /* Now CH1 is a character which ends a word and FROM is the | 1275 /* Now CH1 is a character which ends a word and FROM is the |
1276 position of it. */ | 1276 position of it. */ |
1277 while (1) | 1277 while (1) |
1278 { | 1278 { |
1279 int temp_byte; | |
1280 | |
1281 if (from == beg) | 1279 if (from == beg) |
1282 break; | 1280 break; |
1283 temp_byte = dec_bytepos (from_byte); | 1281 DEC_BOTH (from, from_byte); |
1284 UPDATE_SYNTAX_TABLE_BACKWARD (from); | 1282 UPDATE_SYNTAX_TABLE_BACKWARD (from); |
1285 ch0 = FETCH_CHAR (temp_byte); | 1283 ch0 = FETCH_CHAR (from_byte); |
1286 code = SYNTAX (ch0); | 1284 code = SYNTAX (ch0); |
1287 if (!(words_include_escapes | 1285 if (!(words_include_escapes |
1288 && (code == Sescape || code == Scharquote))) | 1286 && (code == Sescape || code == Scharquote))) |
1289 if (code != Sword || WORD_BOUNDARY_P (ch0, ch1)) | 1287 if (code != Sword || WORD_BOUNDARY_P (ch0, ch1)) |
1290 break; | 1288 { |
1291 DEC_BOTH (from, from_byte); | 1289 INC_BOTH (from, from_byte); |
1290 break; | |
1291 } | |
1292 ch1 = ch0; | 1292 ch1 = ch0; |
1293 } | 1293 } |
1294 count++; | 1294 count++; |
1295 } | 1295 } |
1296 | 1296 |