Folded #region shows repeated name after #endregion

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 16 years ago by JesperTreetop
Version: 4.0.0276
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
When using C# regions, if the region's #endregion directive includes text (a "pp-message" token according to the C# specification), this text is visible when the region is folded.

#region Region name [A]
//
#endregion Region name [B]
When folded, it will appear like so:

Region name [A] Region name [B]
The bolded Region name [A] is from the #region directive, and it's the gray bordered blob that represents and will expand the entire region. Region name [B] is the text following #endregion, and it is visible in plain black, as it'd be if it was unfolded alongside #endregion.

It doesn't matter whether the region label is the same or not in both places; the C# specification specifically says that "Matching #region and #endregion directives may have different pp-messages." The issue is simply that anything beyond #endregion in its line doesn't appear to fold, and that the entire line with #endregion in it should fold.

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks, we've updated the code for the next maintenance release to fold the text following #endregion.


Actipro Software Support

The latest build of this product (v24.1.1) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.