1 | Prism.languages['nand2tetris-hdl'] = {
|
2 | 'comment': /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
3 | 'keyword': /\b(?:CHIP|IN|OUT|PARTS|BUILTIN|CLOCKED)\b/,
|
4 | 'boolean': /\b(?:true|false)\b/,
|
5 | 'function': /[A-Za-z][A-Za-z0-9]*(?=\()/,
|
6 | 'number': /\b\d+\b/,
|
7 | 'operator': /=|\.\./,
|
8 | 'punctuation': /[{}[\];(),:]/
|
9 | };
|