summaryrefslogtreecommitdiff
path: root/slides/final/js/prettify/lang-ml.js
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-06-16 19:30:53 +0200
committerPacien TRAN-GIRARD2014-06-16 19:30:53 +0200
commitadd331408b0f207b82f3ec1b76251c700197e807 (patch)
treeefee398fbd8811adbad16dbe98b1b0506dddc363 /slides/final/js/prettify/lang-ml.js
parentc59a0f4780502c949c0d19287bea51a4c40fb109 (diff)
downloadlabviewplayer-add331408b0f207b82f3ec1b76251c700197e807.tar.gz
Import slidesHEADmaster
Diffstat (limited to 'slides/final/js/prettify/lang-ml.js')
-rw-r--r--slides/final/js/prettify/lang-ml.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/slides/final/js/prettify/lang-ml.js b/slides/final/js/prettify/lang-ml.js
new file mode 100644
index 0000000..8ed2b0c
--- /dev/null
+++ b/slides/final/js/prettify/lang-ml.js
@@ -0,0 +1,2 @@
1PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
2["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]);