[MonoDevelop] [PATCH] Join lines more intelligently in Vi mode (try 2)
Lluis Sanchez Gual
lluis at novell.com
Tue Jul 21 13:14:52 EDT 2009
El dt 21 de 07 de 2009 a les 12:40 -0400, en/na Adam Petaccia va
escriure:
> 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?
The CommentTag properties in ILanguageBinding are going to be removed.
Instead, the tags will be defined in the syntax mode of the language.
The comment tags are already defined in the c# syntax mode, although we
are not yet using it. Other language-specific tags should be defined in
the same way.
Lluis.
More information about the Monodevelop-list
mailing list