From c4bd2cdd3719cdb9a99c86da29b8e8fef05c41e6 Mon Sep 17 00:00:00 2001 From: Peng Lyu Date: Wed, 7 Mar 2018 11:28:28 -0800 Subject: [PATCH] Fix microsoft/monaco-editor#688. (*) is not commet --- src/fsharp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsharp.ts b/src/fsharp.ts index 281385b0..26a8da6c 100644 --- a/src/fsharp.ts +++ b/src/fsharp.ts @@ -121,7 +121,7 @@ export const language = { whitespace: [ [/[ \t\r\n]+/, ''], - [/\(\*/, 'comment', '@comment'], + [/\(\*(?!\))/, 'comment', '@comment'], [/\/\/.*$/, 'comment'], ],