source: node_modules/refractor/lang/nand2tetris-hdl.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 464 bytes
RevLine 
[d24f17c]1'use strict'
2
3module.exports = nand2tetrisHdl
4nand2tetrisHdl.displayName = 'nand2tetrisHdl'
5nand2tetrisHdl.aliases = []
6function nand2tetrisHdl(Prism) {
7 Prism.languages['nand2tetris-hdl'] = {
8 comment: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
9 keyword: /\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,
10 boolean: /\b(?:false|true)\b/,
11 function: /\b[A-Za-z][A-Za-z0-9]*(?=\()/,
12 number: /\b\d+\b/,
13 operator: /=|\.\./,
14 punctuation: /[{}[\];(),:]/
15 }
16}
Note: See TracBrowser for help on using the repository browser.