mirror of https://github.com/jkjoy/sunpeiwen.git
28 lines
500 B
JavaScript
28 lines
500 B
JavaScript
|
/*
|
||
|
Language: Clojure REPL
|
||
|
Description: Clojure REPL sessions
|
||
|
Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
|
||
|
Requires: clojure.js
|
||
|
Website: https://clojure.org
|
||
|
Category: lisp
|
||
|
*/
|
||
|
|
||
|
/** @type LanguageFn */
|
||
|
function clojureRepl(hljs) {
|
||
|
return {
|
||
|
name: 'Clojure REPL',
|
||
|
contains: [
|
||
|
{
|
||
|
className: 'meta.prompt',
|
||
|
begin: /^([\w.-]+|\s*#_)?=>/,
|
||
|
starts: {
|
||
|
end: /$/,
|
||
|
subLanguage: 'clojure'
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = clojureRepl;
|