summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-hoon.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/prism/prism-hoon.js')
-rw-r--r--public/prism/prism-hoon.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/public/prism/prism-hoon.js b/public/prism/prism-hoon.js
new file mode 100644
index 0000000..70601b7
--- /dev/null
+++ b/public/prism/prism-hoon.js
@@ -0,0 +1,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:
+ /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/,
+};