ISO-Share/node_modules/prismjs/components/prism-nand2tetris-hdl.js

10 lines
299 B
JavaScript
Raw Permalink Normal View History

2024-11-26 21:16:11 +01:00
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': /[{}[\];(),:]/
};