diff --git a/fsharp.syntaxtest/language-configuration.json b/fsharp.syntaxtest/language-configuration.json index 52734c5..4edfa68 100644 --- a/fsharp.syntaxtest/language-configuration.json +++ b/fsharp.syntaxtest/language-configuration.json @@ -36,7 +36,6 @@ "brackets": [ ["(", ")"], - ["(*", "*)"], ["{", "}"], ["[", "]"], ["[|", "|]"], diff --git a/sample-code/SimpleTypes.fs b/sample-code/SimpleTypes.fs index 5a5dc38..26d98e6 100644 --- a/sample-code/SimpleTypes.fs +++ b/sample-code/SimpleTypes.fs @@ -44,6 +44,16 @@ module Test = let b = "" let double = (*) 2 // *) was being captured as a comment + + // Both of these operators should have the same syntax highlighting, + // specifically the infix multiplication operator. + let foldSum xs = Seq.fold (+) 0 xs + let foldProduct xs = Seq.fold (*) 1 xs + + // Parenthesizing the above expression should not associate the `)` + // part of the multiplication operator with the opening paren before + // the expression. + let foldProduct2 xs = (Seq.fold (*) 1 xs) (** This block is colorized because markdown can set up his context.