From b28028ac4082842143b0f528d6bc539da6ccb419 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 21 Sep 2017 12:49:18 -0400 Subject: mega changes, including updates and X --- www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js (limited to 'www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js') diff --git a/www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js b/www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js new file mode 100644 index 00000000..f2f36070 --- /dev/null +++ b/www/lib/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 -- cgit v1.2.3