PageSourceSearch

https://www.oauth.com/wp-content/plugins/syntaxhighlighter/third-party-brushes/shBrushClojure.js?ver=20090602

js oauth.com collected 2026-09-24 07:32:41 UTC 1,490 bytes, 26 lines download raw bytes

1// Contributed by Travis Whitton
2// http://travis-whitton.blogspot.com/2009/06/syntaxhighlighter-for-clojure.html
3
4SyntaxHighlighter.brushes.Clojure = function()
5{
6	var funcs = ':arglists :doc :file :line :macro :name :ns :private :tag :test new alias alter ' +
7				'and apply assert class cond conj count def defmacro defn defstruct deref do '     +
8				'doall dorun doseq dosync eval filter finally find first fn gen-class gensym if '  +
9				'import inc keys let list loop map ns or print println quote rand recur reduce '   +
10				'ref repeat require rest send seq set sort str struct sync take test throw '       +
11				'trampoline try type use var vec when while';
12
13	this.regexList = [
14			{ regex: new RegExp(';[^\]]+$', 'gm'),                           css: 'comments' },
15			{ regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' },
16			{ regex: /\[|\]/g,                                               css: 'keyword' },
17			{ regex: /'[a-z][A-Za-z0-9_]*/g,                                 css: 'color1' }, // symbols
18			{ regex: /:[a-z][A-Za-z0-9_\-]*/g,                               css: 'color2' }, // keywords
19			{ regex: new RegExp(this.getKeywords(funcs), 'gmi'),             css: 'functions' }
20	];
21
22	this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags);
23}
24
25SyntaxHighlighter.brushes.Clojure.prototype     = new SyntaxHighlighter.Highlighter();
26SyntaxHighlighter.brushes.Clojure.aliases       = ['clojure', 'Clojure', 'clj'];

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.