Welcome to mirror list, hosted at ThFree Co, Russian Federation.

julia-repl.js.map « highlight « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 218f933d5d496eb33f77ecb636ec8a29c3edab37 (plain)
1
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/julia-repl.js"],"names":["module","exports","hljs","name","contains","className","begin","relevance","starts","end","subLanguage","aliases"],"mappings":"mGAiDAA,EAAOC,QAzBP,SAAmBC,GACjB,MAAO,CACLC,KAAM,aACNC,SAAU,CACR,CACEC,UAAW,OACXC,MAAO,UACPC,UAAW,GACXC,OAAQ,CAGNC,IAAK,cACLC,YAAa,SAOjBC,QAAS,CAAC","file":"highlight/julia-repl.js?v=4b5a567f4a6b86c1b769","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*/\n\nfunction juliaRepl(hljs) {\n  return {\n    name: 'Julia REPL',\n    contains: [\n      {\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}\n\nmodule.exports = juliaRepl;\n"],"sourceRoot":""}