diff options
author | Pacien TRAN-GIRARD | 2014-06-16 19:30:53 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-06-16 19:30:53 +0200 |
commit | add331408b0f207b82f3ec1b76251c700197e807 (patch) | |
tree | efee398fbd8811adbad16dbe98b1b0506dddc363 /slides/intermediaire/js/prettify/lang-yaml.js | |
parent | c59a0f4780502c949c0d19287bea51a4c40fb109 (diff) | |
download | labviewplayer-add331408b0f207b82f3ec1b76251c700197e807.tar.gz |
Diffstat (limited to 'slides/intermediaire/js/prettify/lang-yaml.js')
-rw-r--r-- | slides/intermediaire/js/prettify/lang-yaml.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/slides/intermediaire/js/prettify/lang-yaml.js b/slides/intermediaire/js/prettify/lang-yaml.js new file mode 100644 index 0000000..c38729b --- /dev/null +++ b/slides/intermediaire/js/prettify/lang-yaml.js | |||
@@ -0,0 +1,2 @@ | |||
1 | var a=null; | ||
2 | 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"]); | ||