From 1fe88230ec2d27c3ee94aa6f76d155b4992abe5d Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 22:51:55 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lua.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lua.js diff --git a/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lua.js b/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lua.js new file mode 100644 index 0000000..3059ba1 --- /dev/null +++ b/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-lua.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])*(?:\'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],["str",/^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i], +["pln",/^[a-z_]\w*/i],["pun",/^[^\w\t\n\r \xA0][^\w\t\n\r \xA0\"\'\-\+=]*/]]),["lua"]) \ No newline at end of file