Does your editor/ide highlight that a++; in this C/C++ code as part of a comment?
int a=1;
//some comment \
a++;
printf("%d\n",a);
And what about this?
int a=1;
//some comment ??/
a++;
printf("%d\n",a);
Join Stack Overflow to learn, share knowledge, and build your career.
|
Does your editor/ide highlight that
And what about this?
|
|||||||||||||||||||||
|
|
emacs 22.3.1: No to both, sadly |
|||||||||||||
|
|
Good question! I was going to ask a question about this until I found this one. The Visual-DSP++ IDE from Analog Devices does not highlight either comment when writing in assembly or C. For example:
|
||||
|
|
|
Xcode sees the first as a comment, the second not. |
||||
|
|
|
XCode and CodeWarrior handle it properly. (But not the trigraph, lol.) |
||||
|
|
|
vim 7.2 sees it as a comment, and gcc 3.4.3 compiles it as a comment. |
|||||
|
|
Slickedit - yes KDevelop - yes QT Creator - No CodeBlocks - No |
|||
|
|
|
Kate (3.4) only highlights the first test, fails hilighting the second test
|
||||
|
|
|
VC6, Visual Studio 2003, 2005, 2008, 2010 all do. |
|||||
|
|
Yes, TextMate does it. |
|||
|
|
|
From http://forums.topcoder.com/?module=Thread&threadID=666932
|
|||
|
|