mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-03 08:39:29 +08:00
9 lines
299 B
Text
9 lines
299 B
Text
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': /[{}[\];(),:]/
|
|
};
|