C/C++ comments:

/* commented line */
normal line
start of line /* comment */ end of line
/* multi
   line 
   comment 
*/ after multi-line comment
// c++ comment
before c++ comment // c++ comment
/* c-comment
// with c++ comment
   in it */

//*
abc
/*
Should not see this
*/
xyz



/* should not see next line
*/ bar should not be bar

// test of lines with "" in them
this is a // test
this is "another // test" // comment
this is "an\"other" // test
this "is" "another // test" // comment
this "is" "another" // test


valid c++ comment // don't see me
c++ comment "in a // string"

this is a " /* " test
/* test */
"*/"
multi-line start /* test
of multi line 
and more lines
	   */ multi-line end


Hash comments:

Normal line

partly commented line, comment starts now: 

not a comment

this is a 
this is "another # test" 
this is "ano\"ther" 
this "is" "another # test" 
this "is" "another" 

This is a 
I like "lots of # comments"

/* oops!
