2024-01-16 21:26:16 +08:00
|
|
|
/*
|
|
|
|
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) {
|
2023-12-18 13:12:25 +08:00
|
|
|
return {
|
2024-01-16 21:26:16 +08:00
|
|
|
name: 'Clojure REPL',
|
2023-12-18 13:12:25 +08:00
|
|
|
contains: [
|
|
|
|
{
|
|
|
|
className: 'meta',
|
|
|
|
begin: /^([\w.-]+|\s*#_)?=>/,
|
|
|
|
starts: {
|
|
|
|
end: /$/,
|
|
|
|
subLanguage: 'clojure'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2024-01-16 21:26:16 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = clojureRepl;
|