From abc0de079b895af1b705894eb2b63596e3e37274 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 13 Dec 2022 20:44:08 -0600 Subject: add pyssg.xyz configs and templates --- pyssg.xyz/live/static/hl/languages/ocaml.min.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pyssg.xyz/live/static/hl/languages/ocaml.min.js (limited to 'pyssg.xyz/live/static/hl/languages/ocaml.min.js') diff --git a/pyssg.xyz/live/static/hl/languages/ocaml.min.js b/pyssg.xyz/live/static/hl/languages/ocaml.min.js new file mode 100644 index 0000000..60807c3 --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/ocaml.min.js @@ -0,0 +1,13 @@ +hljs.registerLanguage("ocaml",(()=>{"use strict";return e=>({name:"OCaml", +aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?", +keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value", +built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref", +literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal", +begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{ +contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{ +className:"type",begin:"`[A-Z][\\w']*"},{className:"type", +begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0 +},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0 +}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number", +begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)", +relevance:0},{begin:/->/}]})})()); \ No newline at end of file -- cgit v1.2.3-54-g00ecf