Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Create prism-spwn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ze7111 committed May 13, 2023
1 parent 00f6fce commit e918513
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitbook/prism-spwn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Prism.languages.spwn = Prism.languages.extend("clike", {
keyword:
/\b(?:else|for|if|return|error|extract|let|type|import|impl|break|\=>|\->|continue|match|null|sync|throw|while|as|in|is)\b/,
builtin: /\b(?:null|trigger|obj|\$|self)\b/,
boolean: /\b(?:true|false)\b/,
operator:
/(==|!=|<=|>=|<|>|&&|\|\||!|=|\+\=|\-\=|\*\=|\/\=|\+|\-|\*|\/|%|\^|\.\.|\-\-|\+\+|\/\%|\/\%=|\^=|<=>|\||\&)/,
number: /(?:\b\d+(\.\d+)?\b)|(\b([0-9]+|\?)[gbci]\b)/,
string: /[a-z]?"(?:\\.|[^\\"])*"|'(?:\\.|[^\\'])*'/,
tag: /@([a-zA-Z_][a-zA-Z0-9_]*)/,
})
delete Prism.languages.spwn["class-name"]

0 comments on commit e918513

Please sign in to comment.