Skip to main content



      Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Comment char improvements
Comment char improvements [message #644275] Fri, 10 December 2010 05:40 Go to next message
Eclipse UserFriend
Hi,

I write an editor for a language who has a different comment char then '#'.

The way is implemented now in the dltk core classes, makes difficult to change this.

Example

ScriptSourceViewerConfiguration has a nice method getCommentPrefix, and is easy to override, since anyway every language will define a class that extends this

class ScriptCommentScanner has a deprecated method getCommentChar that is still used, so I have to create a class that extends the ScriptCommentScanner, and override the getCommentChar.

worse class TodoTaskBuildParticipant in findCommentStart use hard coded the # so I have again to override this and copy the exact functionality of the upper class and change the comment char.

Can you please add a single place where the comment char is defined ( maybe TextTools).

[Updated on: Fri, 10 December 2010 06:25] by Moderator

Re: Comment char improvements [message #644500 is a reply to message #644275] Sun, 12 December 2010 06:40 Go to previous message
Eclipse UserFriend
Hi Marius,

You are right those methods can be improved.
Thank you for reporting this.
I want to make some other improvements in ScriptSourceViewerConfiguration and I'll look at methods dealing with comments as well.

Please stay tuned.

Regards,
Alex
Previous Topic:Run php indexer headless
Next Topic:[BUILD] S-3.0M4-201012120842
Goto Forum:
  


Current Time: Fri May 16 14:20:18 EDT 2025

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

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

Back to the top