Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342025
node-repl.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
674 B
Subscribers
None
node-repl.js
View Options
/*
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.prompt'
,
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
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 12:26 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3361779
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment