Nested C-style comments documentation and forum topic
- Posted by ArthurCrump Feb 24, 2011
- 1125 views
In the section on Language Enhancements: 1.3.3 in the HTML or 3.3 in the PDF, it mentions that C-style comments may be nested. However, nesting is not mentioned in the main section for C-style comments: 4.1.3 in the HTML or 14.3 in the PDF.
I have tried it in a dummy program and it works. However, when I previewed the lines below, the line after the first */ was not displayed in the comment color.
/* First line of comment /* This is a nested comment */ The interpreter does not attempt to execute this line */