From 17deb528382a4e7a1430e9e410c0d8961d3f2bec Mon Sep 17 00:00:00 2001 From: paladin-t Date: Fri, 22 Apr 2016 20:26:04 +0800 Subject: [PATCH] *fixed a utf8 token processing bug with class and sub routine. --- core/my_basic.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/my_basic.c b/core/my_basic.c index 2ecc2e6..abff666 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -4910,7 +4910,11 @@ _end_import: goto _exit; } _begin_class(s); +#ifdef MB_ENABLE_UNICODE_ID + if(!_is_identifier_char(sym[0]) && !mb_uu_ischar(sym)) { +#else /* MB_ENABLE_UNICODE_ID */ if(!_is_identifier_char(sym[0])) { +#endif /* MB_ENABLE_UNICODE_ID */ result = _DT_NIL; goto _exit; @@ -4949,7 +4953,11 @@ _end_import: if(_IS_FUNC(context->last_symbol, _core_def) || _IS_FUNC(context->last_symbol, _core_call)) { if(_IS_FUNC(context->last_symbol, _core_def)) _begin_routine(s); +#ifdef MB_ENABLE_UNICODE_ID + if(!_is_identifier_char(sym[0]) && !mb_uu_ischar(sym)) { +#else /* MB_ENABLE_UNICODE_ID */ if(!_is_identifier_char(sym[0])) { +#endif /* MB_ENABLE_UNICODE_ID */ result = _DT_NIL; goto _exit;