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