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 252756 - incorrect dead code HL after changing macro value
Summary: incorrect dead code HL after changing macro value
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-02 15:25 UTC by Vladimir Voskresensky
Modified: 2016-10-31 11:21 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 Vladimir Voskresensky 2015-06-02 15:25:00 UTC
open sample code[1] in editor.
Some blocks are HL as gray.
Change true in 
#define TRUE true
to 1 and save file
gray HL ranges are broken

[1]
#define TRUE true
#define FALSE false

#if (TRUE)
int TRUE_PARENS_visible;
#endif
#if TRUE
int TRUE_visible;
#endif

#if (2)
int _2_PARENS_visible;
#endif
#if 2
int _2_visible;
#endif

#if (1)
int _1_PARENS_visible;
#endif
#if 1
int _1_visible;
#endif

#if (0)
int _0_PARENS_invisible;
#endif
#if 0
int _0_invisible;
#endif

#if (FALSE)
int FALSE_PARENS_invisible;
#endif
#if FALSE
int FALSE_invisible;
#endif