]> luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/node-repl.js
Initial commit.
[flow-web.git] / static / highlight / es / languages / node-repl.js
1 /*! `node-repl` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar = (function () {
3 'use strict';
4
5 /*
6 Language: Node REPL
7 Requires: javascript.js
8 Author: Marat Nagayev <nagaevmt@yandex.ru>
9 Category: scripting
10 */
11
12 /** @type LanguageFn */
13 function nodeRepl(hljs) {
14 return {
15 name: 'Node REPL',
16 contains: [
17 {
18 className: 'meta.prompt',
19 starts: {
20 // a space separates the REPL prefix from the actual code
21 // this is purely for cleaner HTML output
22 end: / |$/,
23 starts: {
24 end: '$',
25 subLanguage: 'javascript'
26 }
27 },
28 variants: [
29 { begin: /^>(?=[ ]|$)/ },
30 { begin: /^\.\.\.(?=[ ]|$)/ }
31 ]
32 }
33 ]
34 };
35 }
36
37 return nodeRepl;
38
39 })();
40 ;
41 export default hljsGrammar;