source: node_modules/refractor/lang/hoon.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: 667 bytes
Line 
1'use strict'
2
3module.exports = hoon
4hoon.displayName = 'hoon'
5hoon.aliases = []
6function hoon(Prism) {
7 Prism.languages.hoon = {
8 comment: {
9 pattern: /::.*/,
10 greedy: true
11 },
12 string: {
13 pattern: /"[^"]*"|'[^']*'/,
14 greedy: true
15 },
16 constant: /%(?:\.[ny]|[\w-]+)/,
17 'class-name': /@(?:[a-z0-9-]*[a-z0-9])?|\*/i,
18 function: /(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,
19 keyword:
20 /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/
21 }
22}
Note: See TracBrowser for help on using the repository browser.