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

Summary: incorrect dead code HL after changing macro value
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: Code ModelAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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