Tracker: Bugs

5 //-comments parsing problem - ID: 1688695
Last Update: Comment added ( zappo )

Hello!

I have same problem as in http://sourceforge.net/mailarchive/message.php?msg_id=8833529 . But now it happens with c++ one line comments. Like this:

//some comment \
some comment continued

The real trouble is then you have:

//if (f==true) { \
a=b; }

parser thinks what where's unmatched bracket and methods buffer is ruined / showing incorrect information.

>This is a legal expression in C and the compiler
has no problems handling it.
=)

Thanks! You're doing a great job!



Sincerely Yours.
anonymous from linux.org.ru.


Nobody/Anonymous ( nobody ) - 2007-03-26 12:50:27 PDT

5

Open

None

Nobody/Anonymous

semantic

None

Public


Comment ( 1 )




Date: 2008-03-01 18:35:00 PST
Sender: zappoSourceForge.net SubscriberProject Admin


This appears to be a bug in cc-mode. Semantic just uses forward-comment,
and a mode author should handle this.

The comment in c-forward-comments claims to support backslashing, but I did
not see evidence of this when I tried it.
It appears to have a \ check, but it doesn't work since forward-comment
leaves the cursor after the \, not before.

if this were fixed in cc-mode, then font-locking would likely work as
well.



Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.