You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
543 B

  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. };