1234567891011121314151617181920212223242526272829303132333435363738 |
- /*
- Language: Node REPL
- Requires: javascript.js
- Author: Marat Nagayev <nagaevmt@yandex.ru>
- Category: scripting
- */
- /** @type LanguageFn */
- function nodeRepl(hljs) {
- return {
- name: 'Node REPL',
- contains: [
- {
- className: 'meta',
- starts: {
- // a space separates the REPL prefix from the actual code
- // this is purely for cleaner HTML output
- end: / |$/,
- starts: {
- end: '$',
- subLanguage: 'javascript'
- }
- },
- variants: [
- {
- begin: /^>(?=[ ]|$)/
- },
- {
- begin: /^\.\.\.(?=[ ]|$)/
- }
- ]
- }
- ]
- };
- }
- module.exports = nodeRepl;
|