Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Epsilon] Supported comment markers for eol languages
[Epsilon] Supported comment markers for eol languages [message #670319] Fri, 13 May 2011 14:00 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 156
Registered: October 2009
Senior Member

Hello,

Through the Epsilon Book comments in the source code are declared by usinng "//" or "--". However I can not seem to find a concrete description of the supported comment markers. I have used Java style multi-line comments "/* ... */" and they also seem to be supported. However, when using this style, the editor fails to correctly detect the closing "*/" when creating the comment or editing it and the rest of the source code is highlighted as comments. IF I save the file, the parser does not complaint so I guess the comments are being parsed correctly. If I close and reopen the file the highlighting is fixed and comment coloring is kept correctly until the "*/".

Is this a bug in the eol editor/tokenizer,or are Java style comments not fully supported?

Regards,

Horacio


Horacio Hoyos Rodriguez
EngD Student
University Of York
Re: [Epsilon] Supported comment markers for eol languages [message #670386 is a reply to message #670319] Fri, 13 May 2011 18:54 Go to previous messageGo to next message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 310
Registered: January 2010
Senior Member
Hi Horacio,

I have looked at the ANTLR grammar used by EOL and it seems it is a bug in the EOL editor. EOL accepts -- and // for line comments, and -* *- and /* */ for block comments.

Could you file a bug for /* */ and post the number here? I'll take care of it. For the time being, -* *- should work.

Regards,
Antonio
Re: [Epsilon] Supported comment markers for eol languages [message #671166 is a reply to message #670386] Tue, 17 May 2011 00:05 Go to previous message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 156
Registered: October 2009
Senior Member

Antonio,

I opened the bug as requested: https://bugs.eclipse.org/bugs/show_bug.cgi?id=346016

Best regards,

Horacio


Horacio Hoyos Rodriguez
EngD Student
University Of York
Previous Topic:setMaximumSize
Next Topic:Model Transformation Round-trip
Goto Forum:
  


Current Time: Sat Dec 20 21:45:29 GMT 2014

Powered by FUDForum. Page generated in 0.12429 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software