summaryrefslogtreecommitdiff
path: root/www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-10-28 13:31:36 -0700
committerPliable Pixels <pliablepixels@gmail.com>2016-10-28 13:31:36 -0700
commit05e761abca3ff42dbba371af0560b82707dfe7c0 (patch)
tree268cc06b931357a0ffad684961ff6d24eeec3b4b /www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js
parent55a9e628760dc31400457099e4aaabc767beed70 (diff)
updated vis
Diffstat (limited to 'www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js')
-rw-r--r--www/lib/vis/examples/graph3d/playground/prettify/lang-yaml.js2
1 files changed, 2 insertions, 0 deletions
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