aboutsummaryrefslogtreecommitdiffstats
path: root/public/prism/prism-hoon.js
blob: 70601b7a54420e374984a2a6e3310c5a4c3f434f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Prism.languages.hoon = {
  comment: {
    pattern: /::.*/,
    greedy: true,
  },
  string: {
    pattern: /"[^"]*"|'[^']*'/,
    greedy: true,
  },
  constant: /%(?:\.[ny]|[\w-]+)/,
  'class-name': /@(?:[a-z0-9-]*[a-z0-9])?|\*/i,
  function: /(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,
  keyword:
    /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/,
};