Browse Source

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

Peng Lyu 7 năm trước cách đây
mục cha
commit
c4bd2cdd37
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'],
 		],