main
Last change
on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
711 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | /*
|
---|
| 2 | Language: Node REPL
|
---|
| 3 | Requires: javascript.js
|
---|
| 4 | Author: Marat Nagayev <nagaevmt@yandex.ru>
|
---|
| 5 | Category: scripting
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | /** @type LanguageFn */
|
---|
| 9 | function 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 |
|
---|
| 37 | module.exports = nodeRepl;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.