hexo/node_modules/highlight.js/es/languages/clojure-repl.js

28 lines
505 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +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) {
return {
name: 'Clojure REPL',
contains: [
{
className: 'meta.prompt',
begin: /^([\w.-]+|\s*#_)?=>/,
starts: {
end: /$/,
subLanguage: 'clojure'
}
}
]
};
}
export { clojureRepl as default };