prism-nand2tetris-hdl.js 299 B

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