diff --git a/funcext/tvclib/utslmemo.tsf b/funcext/tvclib/utslmemo.tsf index 7617406..b0768d7 100644 --- a/funcext/tvclib/utslmemo.tsf +++ b/funcext/tvclib/utslmemo.tsf @@ -1672,12 +1672,12 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) // ci++; break; end } - if ivi=0xa1 or ivi=0xa3 then //处理中文符号 - begin + if if_c_sym(s,cx,ls,lx) then //处理中文符号 + begin cx++; ci--; - break; - end + break; + end if(ivi<48)or(ivi>57 and ivi<65)or(ivi>90 and ivi<95)or(ivi>95 and ivi<97)or(ivi>122 and ivi <= 127)then begin ci++; @@ -1705,9 +1705,9 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) // //ivi := ord(vi); ivi := getchar(s,cx); //if (ivi<=0x2f) or (ivi>122 and ivi<=127) then break; - if ivi=0xa1 or ivi=0xa3 then //处理中文符号 - begin - break; + if if_c_sym(s,cx,ls) then //处理中文符号 + begin + break; end if(ivi<48)or(ivi>57 and ivi<65)or(ivi>90 and ivi<95)or(ivi>95 and ivi<97)or(ivi>122 and ivi <= 127)then break; ci++; @@ -3045,13 +3045,21 @@ type TSynHighLighter = class(TComponent) // begin SetTToken(tks,ctk,idx-1); end else + if if_c_sym(s,idx,len) then + begin + SetTToken(tks,ctk,idx-1); + ctk := s[idx:(idx+1)]; + idx++; + SetTToken(tks,ctk,idx); + end + {else if idx