diff options
author | Eric Bidelman | 2012-04-08 17:50:49 -0700 |
---|---|---|
committer | Eric Bidelman | 2012-04-08 17:50:49 -0700 |
commit | db92c5e0c26ba0bb545993bb48533d39f1934b95 (patch) | |
tree | ccdf3b9ee4c54923fadaf4fe43979b2997e27342 /js/prettify/lang-clj.js | |
parent | 1a10348622e92803cc9a90ec4369bb6974cc5329 (diff) | |
download | io-slides-remote-db92c5e0c26ba0bb545993bb48533d39f1934b95.tar.gz |
Adding prettyprint. Clean up old files
Diffstat (limited to 'js/prettify/lang-clj.js')
-rw-r--r-- | js/prettify/lang-clj.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/prettify/lang-clj.js b/js/prettify/lang-clj.js new file mode 100644 index 0000000..542a220 --- /dev/null +++ b/js/prettify/lang-clj.js | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | Copyright (C) 2011 Google Inc. | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | var a=null; | ||
17 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \xa0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a], | ||
18 | ["typ",/^:[\dA-Za-z-]+/]]),["clj"]); | ||