changeset 99020:08af05537037

(scan_words): Call word_boundary_p instead of comparing scripts.
author Kenichi Handa <handa@m17n.org>
date Wed, 22 Oct 2008 05:31:05 +0000
parents ce6ec63d45eb
children c1e73559ff87
files src/syntax.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;