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 197846 - Multi-lined #define's are not indented properly
Summary: Multi-lined #define's are not indented properly
Status: RESOLVED DUPLICATE of bug 196794
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-18 19:18 UTC by sylar
Modified: 2011-07-25 15:10 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 sylar 2011-04-18 19:18:26 UTC
When entering the code into netbeans' text editor:

#define foobar(a, b, c) do {	\
	(a) += (b);		\
	(b) += (c);		\
	(c) += (a);		\
} while (0)

the editor forces indentation back to zero, even if i try to indent it myself, and the resulting code looks like:
#define foobar(a, b, c) do { 	\
(a) += (b);			\
(b) += (c);			\
(c) += (a);			\
} while (0)
Comment 1 Alexander Simon 2011-07-25 15:10:02 UTC

*** This bug has been marked as a duplicate of bug 196794 ***