main
Last change
on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
667 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | module.exports = hoon
|
---|
| 4 | hoon.displayName = 'hoon'
|
---|
| 5 | hoon.aliases = []
|
---|
| 6 | function 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.