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-lisp.js | |
parent | c59a0f4780502c949c0d19287bea51a4c40fb109 (diff) | |
download | labviewplayer-add331408b0f207b82f3ec1b76251c700197e807.tar.gz |
Diffstat (limited to 'slides/intermediaire/js/prettify/lang-lisp.js')
-rw-r--r-- | slides/intermediaire/js/prettify/lang-lisp.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/slides/intermediaire/js/prettify/lang-lisp.js b/slides/intermediaire/js/prettify/lang-lisp.js new file mode 100644 index 0000000..9c8cfa5 --- /dev/null +++ b/slides/intermediaire/js/prettify/lang-lisp.js | |||
@@ -0,0 +1,3 @@ | |||
1 | var a=null; | ||
2 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a], | ||
3 | ["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]); | ||