|Comment char improvements [message #644275]
||Fri, 10 December 2010 10:40
| Marius Cojocaru
Registered: November 2010
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.
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 11:25]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01923 seconds