annotate inteligent_robot/io2012slides/js/prettify/lang-clj.js @ 3:fea44bb81877 default tip

many change
author taiki
date Tue, 10 Dec 2013 15:31:33 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
fea44bb81877 many change
taiki
parents:
diff changeset
1 /*
fea44bb81877 many change
taiki
parents:
diff changeset
2 Copyright (C) 2011 Google Inc.
fea44bb81877 many change
taiki
parents:
diff changeset
3
fea44bb81877 many change
taiki
parents:
diff changeset
4 Licensed under the Apache License, Version 2.0 (the "License");
fea44bb81877 many change
taiki
parents:
diff changeset
5 you may not use this file except in compliance with the License.
fea44bb81877 many change
taiki
parents:
diff changeset
6 You may obtain a copy of the License at
fea44bb81877 many change
taiki
parents:
diff changeset
7
fea44bb81877 many change
taiki
parents:
diff changeset
8 http://www.apache.org/licenses/LICENSE-2.0
fea44bb81877 many change
taiki
parents:
diff changeset
9
fea44bb81877 many change
taiki
parents:
diff changeset
10 Unless required by applicable law or agreed to in writing, software
fea44bb81877 many change
taiki
parents:
diff changeset
11 distributed under the License is distributed on an "AS IS" BASIS,
fea44bb81877 many change
taiki
parents:
diff changeset
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
fea44bb81877 many change
taiki
parents:
diff changeset
13 See the License for the specific language governing permissions and
fea44bb81877 many change
taiki
parents:
diff changeset
14 limitations under the License.
fea44bb81877 many change
taiki
parents:
diff changeset
15 */
fea44bb81877 many change
taiki
parents:
diff changeset
16 var a=null;
fea44bb81877 many change
taiki
parents:
diff changeset
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],
fea44bb81877 many change
taiki
parents:
diff changeset
18 ["typ",/^:[\dA-Za-z-]+/]]),["clj"]);