2022-02-18 18:04:32 +05:30

26 lines
500 B
TypeScript

// @ts-nocheck
import { MonacoTokensProvider } from "../types";
/** Type of props passed to renderer */
export type RS = {
value: number;
};
/** Sample program */
export const sampleProgram = `Program line 1
Program line 2
Program line 3`;
/** Syntax highlighting */
export const editorTokensProvider: MonacoTokensProvider = {
tokenizer: {
root: [
[/i/, "variable"],
[/d/, "keyword"],
[/s/, "constant"],
[/o/, "operator"],
],
},
defaultToken: "comment",
};