mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 22:59:31 +08:00
14 lines
523 B
Text
14 lines
523 B
Text
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': /\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/
|
|
};
|