summaryrefslogtreecommitdiffstats
path: root/static/js/google-code-prettify/lang-yaml.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/google-code-prettify/lang-yaml.js')
-rw-r--r--static/js/google-code-prettify/lang-yaml.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/js/google-code-prettify/lang-yaml.js b/static/js/google-code-prettify/lang-yaml.js
new file mode 100644
index 0000000..c38729b
--- /dev/null
+++ b/static/js/google-code-prettify/lang-yaml.js
@@ -0,0 +1,2 @@
+var a=null;
+PR.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"]);