Bug 19467 - Lack of F# highlighting at certain lines
Summary: Lack of F# highlighting at certain lines
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-05-01 16:22 UTC by Robert Jeppesen
Modified: 2014-05-02 01:39 UTC (History)
1 user (show)

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


Attachments
Screenshot (57.92 KB, image/gif)
2014-05-01 16:22 UTC, Robert Jeppesen
Details


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 Robert Jeppesen 2014-05-01 16:22:18 UTC
Created attachment 6700 [details]
Screenshot

Original bug here:
https://github.com/fsharp/fsharpbinding/issues/512

XS 5.0 (build 784), OSX

When an F# script has exactly the content

let x = 2

where the "let x = 2" occurs on the 3rd, 4th, 6th, 8th or 10th line (no others!) then the line is not syntax-highlighted correctly (it is all monochrome).

Here's a failing test for it, to put in SyntaxHighlightingTests.cs, 

[Test]
public void TestFSharpLineBug ()
{
   TestOutput ("\n\n\nlet x = 2",
   "<span foreground=\"#009695\">let </span><span foreground=\"#444444\">x = </span><span foreground=\"#F57D00\">2</span>",
   "text/x-fsharp");
}
Comment 1 Mike Krüger 2014-05-02 01:39:42 UTC
fixed

Thanks for providing a unit test - that really speeds up fixing bugs :)