Jump to content

C Comments Not Parsed Correctly?

Recommended Posts

Bug description:

A /* ... */ comment appears to be terminating incorrectly.


Steps to reproduce:

Put these 3 comment lines into a .c file and compile:



* //This is a commented out comment with a space after the *



You will get unexpected identifier error.

If you add one more space between the '*' and the first '/' in line 2, the error goes away.



Expected behaviour:

I would not expect '* /'(space in the middle) to terminate a /* ... */ comment.

The IDE parser correctly shows the comment continuing.


Is the problem 100% reproduceable:

So far!


IDE version: 6.95

Compiler: BoostC

Compiler version: 6.95

Target device: PICXXXXX

OS: Windows XP

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...