CnPack Forum


 
Subject: 括号匹配高亮的bug
animator
新警察
Rank: 1



UID 1347
Digest Posts 0
Credits 28
Posts 17
点点分 28
Reading Access 10
Registered 2005-11-23
Status Offline
Post at 2008-1-30 09:50  Profile | Blog | P.M. 
括号匹配高亮的bug

如附件的图所示,当光标位置在注释中,并贴近 { 的时候,高亮匹配的 } 跑到注释外了。


Image Attachment: [括号匹配高亮的bug] brackets_match.jpg (2008-1-30 09:50, 8.94 K)

Top
animator
新警察
Rank: 1



UID 1347
Digest Posts 0
Credits 28
Posts 17
点点分 28
Reading Access 10
Registered 2005-11-23
Status Offline
Post at 2008-1-30 10:08  Profile | Blog | P.M. 
我认为在注释里的 { 和 } 不要高亮匹配了,UE就是这样做的。
因为注释里的代码可能是不规范的,匹配没有意义。
比如
/*
if(1 ==0)
{
    dosomething1();
//  while(1){}
    if(false)//{}
    dosomething2;
//}
}
*/
Top
 




All times are GMT++8, the time now is 2024-9-20 00:40

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008419 second(s), 9 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP