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