Bug 22247 - Wrong colouring of escaped string formater
Summary: Wrong colouring of escaped string formater
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-08-21 04:37 UTC by Marek Safar
Modified: 2014-08-27 06:24 UTC (History)
2 users (show)

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

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:
Status:
RESOLVED FIXED

Description Marek Safar 2014-08-21 04:37:44 UTC
class X
{
	public static void Main ()
	{
		var l = string.Format("{{{0:d}} }", 100); // XS shows 3 red } but actually only last } should be red
		return;
	}
}
Comment 1 Ram Chandra 2014-08-21 06:56:18 UTC
I have check this issue and I observed that the first two curly braces ( {{ ) are in orange color and the third one is in red color and all the closing braces ( }}} ) are in red color. 
  
I have also check the same on VS 2012 and I observed that VS shows all the curly braces (opening + closing) in red color.

I am sure about it's correct behavior. Could you please suggest what should it's correct behavior ? 

Screencast: http://www.screencast.com/t/4of3a2U7

Environment Info:

Mac OS X 10.9.3
Xamarin Studio:5.3 (build 429)
=== Build Information ===
Release ID: 503000429
Git revision: ad1470467446b532ed54124a36bf1381a7471020
Build date: 2014-08-19 12:31:31-04
Xamarin addins: 3d041b1639f938107c5e1c71c54d9a346b30c660
Comment 2 Marek Safar 2014-08-21 07:01:53 UTC
{{{0:d}} } is not formatting sequence, there should be no red text in XS. Comparing with VS is irrelevant, it does not have this feature.
Comment 3 Ram Chandra 2014-08-21 07:32:16 UTC
I am also getting the same behavior ( as mentioned Comment 1). I observed that XS display "{{{0:d}} }" in red color.

Screencast: http://www.screencast.com/t/4of3a2U7
Comment 4 Mike Krüger 2014-08-27 06:24:14 UTC
Fixed in 5.5.0.2