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

@ -66,13 +66,13 @@ export const sampleProgram = [
export const editorTokensProvider: MonacoTokensProvider = {
tokenizer: {
root: [
[/[\>\^<v\?]/, "red"],
[/[\+\-\*\/%!`]/, "orange"],
[/[|_]/, "blue"],
[/[":\\#]/, "green"],
[/[\$\.,]/, "violet"],
[/[gp@]/, "indigo"],
[/[&~0-9]/, "turquoise"],
[/[\>\^<v\?]/, "variable"],
[/[\+\-\*\/%!`]/, "operators"],
[/[|_]/, "meta"],
[/[":\\#]/, "tag"],
[/[\$\.,]/, "keyword"],
[/[gp@]/, "attribute"],
[/[&~0-9]/, "string"],
],
},
defaultToken: "plain",