This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 141302 - Add to keywords C++ alternative tokens
Summary: Add to keywords C++ alternative tokens
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 11:06 UTC by avp
Modified: 2010-10-29 14:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avp 2008-07-23 11:06:45 UTC
How is in standard described C++ can have alternative tokens 
<% %> - { } and - && ...
In current version if I use this tokens parser show unresolved icon.
if first <% %> are not often used (IMHO) but logical operators for users who are switched from others language to C++
(pascal ...) are more acquainted. And this is very important for new users (for IDE and for C++).
But I understand that this is compiler-depended feature and propose to analyze compiler settings for usage this tokens
and use this in code parsing.
Comment 1 Alexey Vladykin 2010-06-04 10:47:03 UTC
Converting to defect. Highlighting correct code as error is not good.
Comment 2 Alexander Pepin 2010-10-27 13:55:59 UTC
It's not targeted to the current release.
Comment 3 nnnnnk 2010-10-27 14:03:11 UTC
I've already fixed it in my local repository :)
Comment 5 Vladimir Voskresensky 2010-10-29 13:00:35 UTC
Nik, please, update CppTokenId as well to be consistent
Comment 6 nnnnnk 2010-10-29 13:28:24 UTC
I've fixed parser to avoid missed declarations from some legacy code.

I didn't fix coloring and indent.
Also will have a lot of completion bugs on such code.
But I think that it's a P4 like trigraphs support.
And I'd like it to be filed separately.

Named operations and, bitor, etc. added to lexer.
Comment 7 Alexander Simon 2010-10-29 14:12:03 UTC
(In reply to comment #6)
> But I think that it's a P4...
Reformat can make source code not compiled. It is P2.