From a4bc95881b4a6e53b4cc2208d4d0ee9a05a58610 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 22:52:18 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- .../ext/vis/examples/graph3d/playground/prettify/lang-lisp.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lisp.js diff --git a/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lisp.js b/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lisp.js new file mode 100644 index 0000000..4f8fbd8 --- /dev/null +++ b/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lisp.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(/,null,"("],["clo",/^\)/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, +null],["lit",/^[+\-]?(?:0x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["cl","el","lisp","scm"]) \ No newline at end of file