This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to enable nesting comments

Hello Forum,
I wanna use nesting comments with µvision/C166. How to enable them? It is really annoying to work without them.
Thanks - Peter

N.B.: Nesting comments means something like this:
/* bla bla /* This is bla */
blub blub */
All of this is a comment. Without nesting comments the comment would end just before "blub blub" and the second "*/" would end up with an error.

Parents Reply Children
  • Having said that, I have just noticed that there is a discrepancy between the way C51 and uVision handle adjacent comments.

    C51 regards the following as 2 separate comments, but uVision only colours the bold bit as a comment:

    /* Comment 1 *//* Comment 2
                     Comment 2 cont'd */
    

    It appears that uVision has taken the "//" as a C++ Style comment, without "realising" that it's actually the C-Style "*/" and "/*" comment delimiters "back-to-back"