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.
Steps: - Run Netbeans 6.0RC1 - Create project - Create C++ header file - Move cursor in next line after "#endif /* _NEWFILE1_H */" - Press Ctrl-space ==> All strings after "#define _NEWFILE1_H" disappeared from editor
the problem is that we lost offset of called completion in case of some tokens sequences: # tokens or comment, whitespace tokens
fixed: - clear expression stack on #-token - add empty variable to remember final offset when tokenizing was finished with whitespace or comments
Created attachment 52888 [details] patch
verified in trunk build 20071113
Following high resistance process ...
I reviewed the fix. I believe it is correct and safe.
cvs commit into release60: Checking in CsmCompletionTokenProcessor.java; /shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/ext/CsmCompletionTokenProcessor.java,v <-- CsmCompletionTokenProcessor.java new revision: 1.15.2.1; previous revision: 1.15 done
verified in RC2 candidate build