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",

View File

@ -27,10 +27,6 @@ const styles: { [k: string]: CSSProperties } = {
justifyContent: "center",
alignItems: "center",
},
activeCell: {
background: "#CED9E0",
color: "#182026",
},
};
/** Component for displaying a single tape cell */