aboutsummaryrefslogtreecommitdiff
path: root/js/prettify/lang-ml.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-ml.js
parent1a10348622e92803cc9a90ec4369bb6974cc5329 (diff)
downloadio-slides-remote-db92c5e0c26ba0bb545993bb48533d39f1934b95.tar.gz
Adding prettyprint. Clean up old files
Diffstat (limited to 'js/prettify/lang-ml.js')
-rw-r--r--js/prettify/lang-ml.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/prettify/lang-ml.js b/js/prettify/lang-ml.js
new file mode 100644
index 0000000..6df02d7
--- /dev/null
+++ b/js/prettify/lang-ml.js
@@ -0,0 +1,2 @@
1PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r Â\xa0"],["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"]);