# HG changeset patch # User Kenichi Handa # Date 1224653465 0 # Node ID 08af05537037f072d37c194248ed5a1e6ea8e062 # Parent ce6ec63d45ebcdfe5fc5ff54f1065ca0ed3579f3 (scan_words): Call word_boundary_p instead of comparing scripts. diff -r ce6ec63d45eb -r 08af05537037 src/syntax.c --- a/src/syntax.c Wed Oct 22 05:29:08 2008 +0000 +++ b/src/syntax.c Wed Oct 22 05:31:05 2008 +0000 @@ -1248,7 +1248,7 @@ if ((code != Sword && (! words_include_escapes || (code != Sescape && code != Scharquote))) - || ! EQ (CHAR_TABLE_REF (Vchar_script_table, ch1), script)) + || word_boundary_p (ch0, ch1)) break; INC_BOTH (from, from_byte); ch0 = ch1; @@ -1301,7 +1301,7 @@ if ((code != Sword && (! words_include_escapes || (code != Sescape && code != Scharquote))) - || ! EQ (CHAR_TABLE_REF (Vchar_script_table, ch0), script)) + || word_boundary_p (ch0, ch1)) { INC_BOTH (from, from_byte); break;