Merge branch 'main' into feature/json_docsym

This commit is contained in:
Martin Aeschlimann 2023-12-15 10:30:42 +01:00 committed by GitHub
commit 84a181bb6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 677 additions and 581 deletions

View file

@ -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/,
{

View file

@ -93,6 +93,7 @@ export const language = <languages.IMonarchLanguage>{
'raise',
'return',
'try',
'type', // new in Python 3.12
'while',
'with',
'yield',

View file

@ -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);
}