summaryrefslogtreecommitdiff
path: root/pyssg.xyz/live/static/hl/languages/erlang-repl.min.js
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-12-13 20:44:08 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-12-13 20:44:08 -0600
commitabc0de079b895af1b705894eb2b63596e3e37274 (patch)
treec51d24dce55da8d9b227cbac6c2ef64a59d8e9dc /pyssg.xyz/live/static/hl/languages/erlang-repl.min.js
parentdb4b3736d4f45137a733ce5eb1e50aec968ca1d2 (diff)
add pyssg.xyz configs and templates
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/erlang-repl.min.js')
-rw-r--r--pyssg.xyz/live/static/hl/languages/erlang-repl.min.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/erlang-repl.min.js b/pyssg.xyz/live/static/hl/languages/erlang-repl.min.js
new file mode 100644
index 0000000..68ea589
--- /dev/null
+++ b/pyssg.xyz/live/static/hl/languages/erlang-repl.min.js
@@ -0,0 +1,10 @@
+hljs.registerLanguage("erlang-repl",(()=>{"use strict";return e=>({
+name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",
+keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"
+},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10
+},e.COMMENT("%","$"),{className:"number",
+begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",
+relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
+begin:"\\?(::)?([A-Z]\\w*(::)?)+"},{begin:"->"},{begin:"ok"},{begin:"!"},{
+begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",
+relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]})})()); \ No newline at end of file