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.
14 lines
543 B
14 lines
543 B
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': /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/ |
|
};
|
|
|