prism-hoon.js 543 B

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