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

@ -35,10 +35,10 @@ export const sampleProgram = [
export const editorTokensProvider: MonacoTokensProvider = {
tokenizer: {
root: [
[/i/, "orange"],
[/d/, "red"],
[/s/, "blue"],
[/o/, "green"],
[/i/, "identifier"],
[/d/, "variable"],
[/s/, "meta"],
[/o/, "tag"],
],
},
defaultToken: "comment",