From 8c6496e47945d11f857d00ef732089228b700074 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 22:52:14 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- .../ext/vis/examples/graph3d/playground/prettify/lang-yaml.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 js/dos/ext/vis/examples/graph3d/playground/prettify/lang-yaml.js diff --git a/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-yaml.js b/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-yaml.js new file mode 100644 index 0000000..52723b3 --- /dev/null +++ b/js/dos/ext/vis/examples/graph3d/playground/prettify/lang-yaml.js @@ -0,0 +1,2 @@ +PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:|>?]+/,null,":|>?"],["dec",/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],["typ",/^[&]\S+/,null,"&"],["typ",/^!\S*/,null,"!"],["str",/^"(?:[^\\"]|\\.)*(?:"|$)/,null,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,null,"'"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^\s+/,null," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\r\n]|$)/],["pun",/^-/],["kwd",/^\w+:[ \r\n]/],["pln",/^\w+/]]), +["yaml","yml"]) \ No newline at end of file