aboutsummaryrefslogtreecommitdiff
path: root/js/prettify/lang-yaml.js
diff options
context:
space:
mode:
authorEric Bidelman2012-04-08 17:50:49 -0700
committerEric Bidelman2012-04-08 17:50:49 -0700
commitdb92c5e0c26ba0bb545993bb48533d39f1934b95 (patch)
treeccdf3b9ee4c54923fadaf4fe43979b2997e27342 /js/prettify/lang-yaml.js
parent1a10348622e92803cc9a90ec4369bb6974cc5329 (diff)
downloadio-slides-remote-db92c5e0c26ba0bb545993bb48533d39f1934b95.tar.gz
Adding prettyprint. Clean up old files
Diffstat (limited to 'js/prettify/lang-yaml.js')
-rw-r--r--js/prettify/lang-yaml.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/prettify/lang-yaml.js b/js/prettify/lang-yaml.js
new file mode 100644
index 0000000..c38729b
--- /dev/null
+++ b/js/prettify/lang-yaml.js
@@ -0,0 +1,2 @@
1var a=null;
2PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:>?|]+/,a,":|>?"],["dec",/^%(?:YAML|TAG)[^\n\r#]+/,a,"%"],["typ",/^&\S+/,a,"&"],["typ",/^!\S*/,a,"!"],["str",/^"(?:[^"\\]|\\.)*(?:"|$)/,a,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,a,"'"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^\s+/,a," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\n\r]|$)/],["pun",/^-/],["kwd",/^\w+:[\n\r ]/],["pln",/^\w+/]]),["yaml","yml"]);