run npm install to generate a package lock
This commit is contained in:
32
node_modules/highlight.js/es/languages/python-repl.js
generated
vendored
Normal file
32
node_modules/highlight.js/es/languages/python-repl.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
Language: Python REPL
|
||||
Requires: python.js
|
||||
Author: Josh Goebel <hello@joshgoebel.com>
|
||||
Category: common
|
||||
*/
|
||||
|
||||
function pythonRepl(hljs) {
|
||||
return {
|
||||
aliases: [ 'pycon' ],
|
||||
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: 'python'
|
||||
}
|
||||
},
|
||||
variants: [
|
||||
{ begin: /^>>>(?=[ ]|$)/ },
|
||||
{ begin: /^\.\.\.(?=[ ]|$)/ }
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
export { pythonRepl as default };
|
||||
Reference in New Issue
Block a user