Adapt languages to new syntax token scheme

This commit is contained in:
Nilay Majorwar
2022-02-03 22:39:02 +05:30
parent 24c384c4a8
commit 8d979ef111
5 changed files with 45 additions and 26 deletions

View File

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