Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 代码高亮Bug
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 代码高亮Bug
WanXiong
新警察
UID 59799
Digest Posts 0
Credits 8
Posts 2
点点分 8
Reading Access 10
Registered 2011-3-3
Status Offline
#1
Post at 2012-3-7 13:54
Profile
|
Blog
|
P.M.
代码高亮Bug
我用delphi2007,专家包版本Ver: 0.9.9.621 Build 2011.10.01
输入过程中发现高亮线条错乱,而delphi编译检查无错误
最后发现以下语句导致错乱:
if bt>at then ...
上句中,at,bt为2个变量名称
将变量at换为其他,比如ta,就一切正常了
所以,可以确定,在高亮判断中,将at作为一个关键字处理了,而delphi中并没有该关键字
void
新警察
UID 67450
Digest Posts 0
Credits 15
Posts 5
点点分 15
Reading Access 10
Registered 2012-3-4
Status Offline
#2
Post at 2012-3-7 21:22
Profile
|
Blog
|
P.M.
对啊, CBuilder中也有判断不正常的
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2012-3-7 23:01
Profile
|
Blog
|
P.M.
at应该是一个关键字,用于raise语句,如帮助中的例子:
raise Exception.Create('Missing parameter') at @MyFunction;
但编辑器没有高亮它。
用关键字做变量名是容易引起解析出错,我们做过一些修补,不过确实很难完全避免。
楼上说的BCB中判断不正常的,可否举个例子?
void
新警察
UID 67450
Digest Posts 0
Credits 15
Posts 5
点点分 15
Reading Access 10
Registered 2012-3-4
Status Offline
#4
Post at 2012-3-8 10:22
Profile
|
Blog
|
P.M.
QUOTE:
原帖由
Passion
于 2012-3-7 23:01 发表
at应该是一个关键字,用于raise语句,如帮助中的例子:
raise Exception.Create('Missing parameter') at @MyFunction;
但编辑器没有高亮它。
用关键字做变量名是容易引起解析出错,我们做过一些修补,不过确实很难完全避免。
楼上说的BCB中判断不正常的,可否举个例子?
帖子在这, 不是代码高亮, 是代码提示.
http://bbs.cnpack.org/viewthread.php?tid=11982&extra=page%3D1
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 18:42
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.010165 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats