diff options
Diffstat (limited to 'public/prism/prism-nand2tetris-hdl.min.js')
| -rw-r--r-- | public/prism/prism-nand2tetris-hdl.min.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/prism/prism-nand2tetris-hdl.min.js b/public/prism/prism-nand2tetris-hdl.min.js new file mode 100644 index 0000000..02f2e5b --- /dev/null +++ b/public/prism/prism-nand2tetris-hdl.min.js @@ -0,0 +1,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: /[{}[\];(),:]/, +}; |
