10 lines
297 B
JavaScript
10 lines
297 B
JavaScript
Prism.languages['nand2tetris-hdl'] = {
|
|
'comment': /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
|
|
'keyword': /\b(?:CHIP|IN|OUT|PARTS|BUILTIN|CLOCKED)\b/,
|
|
'boolean': /\b(?:true|false)\b/,
|
|
'function': /[A-Za-z][A-Za-z0-9]*(?=\()/,
|
|
'number': /\b\d+\b/,
|
|
'operator': /=|\.\./,
|
|
'punctuation': /[{}[\];(),:]/
|
|
};
|