浏览代码

Fix microsoft/monaco-editor#688. (*) is not commet

Peng Lyu 7 年之前
父节点
当前提交
c4bd2cdd37
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/fsharp.ts

+ 1 - 1
src/fsharp.ts

@@ -121,7 +121,7 @@ export const language = <ILanguage>{
 
 		whitespace: [
 			[/[ \t\r\n]+/, ''],
-			[/\(\*/, 'comment', '@comment'],
+			[/\(\*(?!\))/, 'comment', '@comment'],
 			[/\/\/.*$/, 'comment'],
 		],