source: node_modules/highlight.js/lib/languages/node-repl.js@ 65b6638

main
Last change on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 711 bytes
Line 
1/*
2Language: Node REPL
3Requires: javascript.js
4Author: Marat Nagayev <nagaevmt@yandex.ru>
5Category: scripting
6*/
7
8/** @type LanguageFn */
9function nodeRepl(hljs) {
10 return {
11 name: 'Node REPL',
12 contains: [
13 {
14 className: 'meta',
15 starts: {
16 // a space separates the REPL prefix from the actual code
17 // this is purely for cleaner HTML output
18 end: / |$/,
19 starts: {
20 end: '$',
21 subLanguage: 'javascript'
22 }
23 },
24 variants: [
25 {
26 begin: /^>(?=[ ]|$)/
27 },
28 {
29 begin: /^\.\.\.(?=[ ]|$)/
30 }
31 ]
32 }
33 ]
34 };
35}
36
37module.exports = nodeRepl;
Note: See TracBrowser for help on using the repository browser.