blob: 950e34b4d37d978378e7df47e2bbdce9aa6007b5 [file] [log] [blame]
{"version":3,"sources":["webpack:///./node_modules/react-syntax-highlighter/node_modules/highlight.js/lib/languages/julia-repl.js"],"names":["module","exports","hljs","name","contains","className","begin","relevance","starts","end","subLanguage","aliases"],"mappings":"8EA8CAA,EAAOC,QAvBP,SAAmBC,GACjB,MAAO,CACLC,KAAM,aACNC,SAAU,CAAC,CACTC,UAAW,OACXC,MAAO,UACPC,UAAW,GACXC,OAAQ,CAGNC,IAAK,cACLC,YAAa,SAOfC,QAAS,CAAC","file":"react-syntax-highlighter_languages_highlight_juliaRepl-2f0bece45261ca61ce38.js","sourcesContent":["/*\nLanguage: Julia REPL\nDescription: Julia REPL sessions\nAuthor: Morten Piibeleht <morten.piibeleht@gmail.com>\nWebsite: https://julialang.org\nRequires: julia.js\n\nThe Julia REPL code blocks look something like the following:\n\n julia> function foo(x)\n x + 1\n end\n foo (generic function with 1 method)\n\nThey start on a new line with \"julia>\". Usually there should also be a space after this, but\nwe also allow the code to start right after the > character. The code may run over multiple\nlines, but the additional lines must start with six spaces (i.e. be indented to match\n\"julia>\"). The rest of the code is assumed to be output from the executed code and will be\nleft un-highlighted.\n\nUsing simply spaces to identify line continuations may get a false-positive if the output\nalso prints out six spaces, but such cases should be rare.\n*/\nfunction juliaRepl(hljs) {\n return {\n name: 'Julia REPL',\n contains: [{\n className: 'meta',\n begin: /^julia>/,\n relevance: 10,\n starts: {\n // end the highlighting if we are on a new line and the line does not have at\n // least six spaces in the beginning\n end: /^(?![ ]{6})/,\n subLanguage: 'julia'\n },\n // jldoctest Markdown blocks are used in the Julia manual and package docs indicate\n // code snippets that should be verified when the documentation is built. They can be\n // either REPL-like or script-like, but are usually REPL-like and therefore we apply\n // julia-repl highlighting to them. More information can be found in Documenter's\n // manual: https://juliadocs.github.io/Documenter.jl/latest/man/doctests.html\n aliases: ['jldoctest']\n }]\n };\n}\n\nmodule.exports = juliaRepl;"],"sourceRoot":""}