Search code examples
c++cideeditorhighlighting

Backslash in the end of comment lines in C/C++


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);

Solution

  • emacs 22.3.1: No to both, sadly