12345678910111213141516171819202122232425262728293031323334353637 |
- /*
- 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;
|