[MonoDevelop] [PATCH] Join lines more intelligently in Vi mode (try 2)

Adam Petaccia adam at tpetaccia.com
Tue Jul 21 12:40:29 EDT 2009


On Tue, 2009-07-21 at 09:34 -0400, Levi Bard wrote:
> Instead of hardcoding the comment indicator "//", why not push this
> code up into the SourceEditor addin and strip the SingleLineCommentTag
> for whatever language is appropriate to the buffer?

I'd like some help on how to do this. If I understand correctly (I may
not, bear with me) then implementing it in such a manner would cause me
to lose functionality. This patch specifically addresses C-Sharp's
(though you're right it should be generic) "///" style XML comments.
However, I would also like to be able to handle the C-style multi-line
comments form:
/**
 * Some description
 * that goes on for a while
 */

should become 

/** Some description that goes on for a while */

not

/** * Some description * that goes on for a while */

Would added a new property to the ILanguageBinding be the way to go? I
was thinking it should probably be IEnumerable because compilers such as
gcc also accept "//" in C, and languages like C# have {"///","//","*"}.
Am I heading in the right direction? Would adding IEnumerable<string>
BlockCommentContinueTag {get;} be a good idea?



More information about the Monodevelop-list mailing list