mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +01:00
Merge branch 'main' into feature/json_docsym
This commit is contained in:
commit
84a181bb6b
20 changed files with 677 additions and 581 deletions
|
|
@ -259,7 +259,6 @@ export const language = <languages.IMonarchLanguage>{
|
|||
'%',
|
||||
'<<',
|
||||
'>>',
|
||||
'>>>',
|
||||
'+=',
|
||||
'-=',
|
||||
'*=',
|
||||
|
|
@ -269,8 +268,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
'^=',
|
||||
'%=',
|
||||
'<<=',
|
||||
'>>=',
|
||||
'>>>='
|
||||
'>>='
|
||||
],
|
||||
|
||||
// we include these common regular expressions
|
||||
|
|
@ -312,8 +310,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
// [[ attributes ]].
|
||||
[/\[\s*\[/, { token: 'annotation', next: '@annotation' }],
|
||||
// delimiters and operators
|
||||
[/[{}()\[\]]/, '@brackets'],
|
||||
[/[<>](?!@symbols)/, '@brackets'],
|
||||
[/[{}()<>\[\]]/, '@brackets'],
|
||||
[
|
||||
/@symbols/,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
'raise',
|
||||
'return',
|
||||
'try',
|
||||
'type', // new in Python 3.12
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
|
|
|
|||
|
|
@ -32,7 +32,10 @@ export class JSONWorker {
|
|||
return resolvePath(base, relativePath);
|
||||
}
|
||||
},
|
||||
schemaRequestService: createData.enableSchemaRequest ? defaultSchemaRequestService : undefined
|
||||
schemaRequestService: createData.enableSchemaRequest
|
||||
? defaultSchemaRequestService
|
||||
: undefined,
|
||||
clientCapabilities: jsonService.ClientCapabilities.LATEST
|
||||
});
|
||||
this._languageService.configure(this._languageSettings);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue