Bug 18232 - Unclosed XML brackets in documentation comments `/// <` affect syntax highlighting of non-commented lines
Summary: Unclosed XML brackets in documentation comments `/// <` affect syntax highlig...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.3.0
Hardware: PC Mac OS
: Low minor
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2014-03-06 16:51 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2014-03-26 11:25 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Syntax highlighting example (48.61 KB, image/png)
2014-03-06 16:51 UTC, Brendan Zagaeski (Xamarin Team, assistant)

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Brendan Zagaeski (Xamarin Team, assistant) 2014-03-06 16:51:03 UTC
Created attachment 6250 [details]
Syntax highlighting example

Unclosed XML brackets in documentation comments (comments that start with at least 3 slashes) affect syntax highlighting of non-commented lines.

## Steps to reproduce

Insert the following line in a C# project:

/// <

## Result

The text editor highlights the lines after the comment differently. The highlighting returns to normal as soon as a "greater than" symbol appears in the code.

See also the attached image.

Deleting one of the slashes from the beginning of comment prevents the issue.

## Version information

Tested on Xamarin Studio 4.3.3 build 2 and 4.2.3 build 60.
Mac OS X 10.8.5

Mono 3.2.6 ((no/9b58377)
GTK+ 2.24.23 theme: Raleigh
GTK# (
Comment 1 Mike Krüger 2014-03-07 05:12:43 UTC
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2014-03-07 11:31:22 UTC
Awesome! Thanks for the quick fix!
Comment 3 Ram Chandra 2014-03-26 11:25:33 UTC
I have checked this issue on following builds:

Mac OS X 10.7.5
Xamarin Studio 4.2.4 (build 266)

I observed that when I apply "xml comment" on c# class and remove the closing of the commenting text editor doesn't highlights the lines after the comment differently.
screencast: http://www.screencast.com/t/0xBPhq2wj

This issue is working fine. Hence, I am closing this issue.