Build matching color schemes to editor

This commit is contained in:
Nilay Majorwar
2021-12-17 22:42:17 +05:30
parent 50e788dd3c
commit c521713b13
4 changed files with 282 additions and 5 deletions

View File

@ -71,10 +71,10 @@ export const sampleProgram = [
export const editorTokensProvider: MonacoTokensProvider = {
tokenizer: {
root: [
[/[-\+]/, "operator"],
[/[<>]/, "annotation"],
[/[\[\]]/, "keyword"],
[/[\,\.]/, "type.identifier"],
[/[-\+]/, "plain"],
[/[<>]/, "green"],
[/[\[\]]/, "violet"],
[/[\,\.]/, "orange"],
],
},
defaultToken: "comment",