F# (**)-style comments are broken

Issue #1440 new
igor_chubin
created an issue

F# (**)-style comments are broken. They probably are not considered as comments at all.

My code:

(*
 * Recursive lambdas in F#
 * 
 * Yes, it's possible using so called y-combinators
 * (http:en.wikipedia.org/wiki/Y-combinator) (or fixed-point
 * combinators). Ex:
 *)

let rec fix f x = f (fix f) x

let fact f = function
| 0 -> 1
| x -> x * f (x-1)

let _ = (fix fact) 5 (* evaluates to "120" *)

It is highlighted fully wrong.

Comments (1)

  1. igor_chubin reporter

    Oh, I'm sorry, probably it is my fault. I used pygments.lexers.dotnet.FSharpLexer for that. Probably it was wrong. Because, I've tried pygments.lexers.FSharpLexer thereafter, and it worked 100% correct.

  2. Log in to comment