mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
This commit is contained in:
parent
ba44226434
commit
c362bfab0e
2 changed files with 19 additions and 2 deletions
|
|
@ -442,5 +442,20 @@ testTokenization('fsharp', [
|
|||
tokens: [
|
||||
{ startIndex: 0, type: 'number.float.fs' }
|
||||
]
|
||||
}],
|
||||
|
||||
[{
|
||||
line: '(* This operator -> (*) should be ignored *) let i = 0',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'comment.fs' },
|
||||
{ startIndex: 44, type: '' },
|
||||
{ startIndex: 45, type: 'keyword.let.fs' },
|
||||
{ startIndex: 48, type: '' },
|
||||
{ startIndex: 49, type: 'identifier.fs' },
|
||||
{ startIndex: 50, type: '' },
|
||||
{ startIndex: 51, type: 'delimiter.fs' },
|
||||
{ startIndex: 52, type: '' },
|
||||
{ startIndex: 53, type: 'number.fs' }
|
||||
]
|
||||
}]
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -132,9 +132,11 @@ export const language = <ILanguage>{
|
|||
],
|
||||
|
||||
comment: [
|
||||
[/[^\*]+/, 'comment'],
|
||||
[/[^*(]+/, 'comment'],
|
||||
[/\*\)/, 'comment', '@pop'],
|
||||
[/\*/, 'comment']
|
||||
[/\*/, 'comment'],
|
||||
[/\(\*\)/, 'comment'],
|
||||
[/\(/, 'comment']
|
||||
],
|
||||
|
||||
string: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue