clojure-repl.js 493 B

123456789101112131415161718192021222324252627
  1. /*
  2. Language: Clojure REPL
  3. Description: Clojure REPL sessions
  4. Author: Ivan Sagalaev <maniac@softwaremaniacs.org>
  5. Requires: clojure.js
  6. Website: https://clojure.org
  7. Category: lisp
  8. */
  9. /** @type LanguageFn */
  10. function clojureRepl(hljs) {
  11. return {
  12. name: 'Clojure REPL',
  13. contains: [
  14. {
  15. className: 'meta',
  16. begin: /^([\w.-]+|\s*#_)?=>/,
  17. starts: {
  18. end: /$/,
  19. subLanguage: 'clojure'
  20. }
  21. }
  22. ]
  23. };
  24. }
  25. module.exports = clojureRepl;