vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
| 1 | /* Prism 1.30.0, one file per language, loaded on demand. |
| 2 | |
| 3 | The worker (prism-worker.js) imports prism.min.js — markup, css, clike and |
| 4 | javascript, Prism's default build — and then this manifest. A language the |
| 5 | core does not define is imported from prism-languages/ the first time a blob |
| 6 | or a fenced code block names it, so a page parses the grammar it shows |
| 7 | instead of all 293 components Prism ships. |
| 8 | |
| 9 | Each entry is a language name to the component files that define it, in |
| 10 | dependency order: usually just itself, more when a grammar extends something |
| 11 | Prism keeps out of the core (php needs markup-templating, scala needs java, |
| 12 | arduino needs cpp). The files are Prism's own minified components, unmodified. |
| 13 | |
| 14 | Vendored rather than fetched so an instance is still one file, and generated |
| 15 | rather than built: there is no npm build step in this repository. A language |
| 16 | added here also needs an extension in the server's table (highlight.go), and |
| 17 | TestPrismLanguagesAreVendored holds the two together. Regenerate with |
| 18 | scripts/vendor-prism.py. */ |
| 19 | |
| 20 | self.PRISM_LANGUAGES = {"abap":["abap"],"abnf":["abnf"],"actionscript":["sql","graphql","markdown","js-extras","js-templates","actionscript"],"ada":["ada"],"adoc":["asciidoc"],"agda":["agda"],"al":["al"],"antlr4":["antlr4"],"apacheconf":["apacheconf"],"apex":["sql","apex"],"apl":["apl"],"applescript":["applescript"],"aql":["aql"],"arduino":["c","cpp","arduino"],"arff":["arff"],"arm-asm":["armasm"],"armasm":["armasm"],"art":["arturo"],"arturo":["arturo"],"asciidoc":["asciidoc"],"asm6502":["asm6502"],"asmatmel":["asmatmel"],"aspnet":["csharp","aspnet","xml-doc"],"autohotkey":["autohotkey"],"autoit":["autoit"],"avdl":["avro-idl"],"avisynth":["avisynth"],"avro-idl":["avro-idl"],"avs":["avisynth"],"awk":["awk"],"bash":["bash"],"basic":["basic"],"batch":["batch"],"bbcode":["bbcode"],"bbj":["bbj"],"bicep":["bicep"],"birb":["birb"],"bison":["c","bison"],"bnf":["bnf"],"bqn":["bqn"],"brainfuck":["brainfuck"],"brightscript":["brightscript"],"bro":["bro"],"bsl":["bsl"],"c":["c"],"cfc":["cfscript"],"cfscript":["cfscript"],"chaiscript":["c","cpp","chaiscript"],"cil":["cil"],"cilk":["c","cpp","cilkcpp"],"cilk-c":["c","cilkc"],"cilk-cpp":["c","cpp","cilkcpp"],"cilkc":["c","cilkc"],"cilkcpp":["c","cpp","cilkcpp"],"clojure":["clojure"],"cmake":["cmake"],"cobol":["cobol"],"coffee":["sql","graphql","markdown","js-extras","js-templates","coffeescript"],"coffeescript":["sql","graphql","markdown","js-extras","js-templates","coffeescript"],"conc":["concurnas"],"concurnas":["concurnas"],"context":["latex"],"cooklang":["cooklang"],"coq":["coq"],"cpp":["c","cpp"],"crystal":["ruby","crystal"],"cs":["csharp","xml-doc"],"csharp":["csharp","xml-doc"],"cshtml":["csharp","cshtml","xml-doc"],"csp":["csp"],"css":["css-extras"],"csv":["csv"],"cue":["cue"],"cypher":["cypher"],"d":["d"],"dart":["dart"],"dataweave":["dataweave"],"dax":["dax"],"dhall":["dhall"],"diff":["diff"],"django":["markup-templating","django"],"dns-zone":["dns-zone-file"],"dns-zone-file":["dns-zone-file"],"docker":["docker"],"dockerfile":["docker"],"dot":["dot"],"dotnet":["csharp","xml-doc"],"ebnf":["ebnf"],"editorconfig":["editorconfig"],"eiffel":["eiffel"],"ejs":["sql","graphql","markdown","js-extras","js-templates","markup-templating","ejs"],"elisp":["lisp"],"elixir":["elixir"],"elm":["elm"],"emacs":["lisp"],"emacs-lisp":["lisp"],"erb":["ruby","markup-templating","erb"],"erlang":["erlang"],"eta":["sql","graphql","markdown","js-extras","js-templates","markup-templating","ejs"],"etlua":["markup-templating","lua","etlua"],"excel-formula":["excel-formula"],"factor":["factor"],"false":["false"],"firestore-security-rules":["firestore-security-rules"],"flow":["sql","graphql","markdown","js-extras","js-templates","flow"],"fortran":["fortran"],"fsharp":["fsharp","xml-doc"],"ftl":["markup-templating","ftl"],"g4":["antlr4"],"gamemakerlanguage":["gml"],"gap":["gap"],"gawk":["awk"],"gcode":["gcode"],"gdscript":["gdscript"],"gedcom":["gedcom"],"gettext":["gettext"],"gherkin":["gherkin"],"git":["git"],"gitignore":["ignore"],"glsl":["c","glsl"],"gml":["gml"],"gn":["gn"],"gni":["gn"],"go":["go"],"go-mod":["go-module"],"go-module":["go-module"],"gradle":["gradle"],"graphql":["graphql"],"groovy":["groovy"],"gv":["dot"],"haml":["ruby","haml"],"handlebars":["markup-templating","handlebars"],"haskell":["haskell"],"haxe":["haxe"],"hbs":["markup-templating","handlebars"],"hcl":["hcl"],"hgignore":["ignore"],"hlsl":["c","hlsl"],"hoon":["hoon"],"hpkp":["hpkp"],"hs":["haskell"],"hsts":["hsts"],"http":["http"],"ichigojam":["ichigojam"],"icon":["icon"],"icu-message-format":["icu-message-format"],"idr":["haskell","idris"],"idris":["haskell","idris"],"iecst":["iecst"],"ignore":["ignore"],"inform7":["inform7"],"ini":["ini"],"ino":["c","cpp","arduino"],"io":["io"],"j":["j"],"java":["java"],"javadoc":["java","javadoclike","javadoc"],"javadoclike":["javadoclike"],"javascript":["sql","graphql","markdown","js-extras","js-templates"],"javastacktrace":["javastacktrace"],"jexl":["jexl"],"jinja2":["markup-templating","django"],"jolie":["jolie"],"jq":["jq"],"js":["sql","graphql","markdown","js-extras","js-templates"],"jsdoc":["sql","graphql","markdown","js-extras","js-templates","javadoclike","typescript","jsdoc"],"json":["json"],"json5":["json","json5"],"jsonp":["json","jsonp"],"jsstacktrace":["jsstacktrace"],"jsx":["sql","graphql","markdown","js-extras","js-templates","jsx"],"julia":["julia"],"keepalived":["keepalived"],"keyman":["keyman"],"kotlin":["kotlin"],"kt":["kotlin"],"kts":["kotlin"],"kum":["kumir"],"kumir":["kumir"],"kusto":["kusto"],"latex":["latex"],"latte":["markup-templating","php","php-extras","latte"],"ld":["linker-script"],"less":["css-extras","less"],"lilypond":["scheme","lilypond"],"linker-script":["linker-script"],"liquid":["markup-templating","liquid"],"lisp":["lisp"],"livescript":["livescript"],"llvm":["llvm"],"log":["log"],"lolcode":["lolcode"],"lua":["lua"],"ly":["scheme","lilypond"],"magma":["magma"],"makefile":["makefile"],"markdown":["markdown"],"markup-templating":["markup-templating"],"mata":["mata"],"mathematica":["wolfram"],"matlab":["matlab"],"maxscript":["maxscript"],"md":["markdown"],"mel":["mel"],"mermaid":["mermaid"],"metafont":["metafont"],"mizar":["mizar"],"mongodb":["sql","graphql","markdown","js-extras","js-templates","mongodb"],"monkey":["monkey"],"moon":["moonscript"],"moonscript":["moonscript"],"mscript":["powerquery"],"mustache":["markup-templating","handlebars"],"n1ql":["n1ql"],"n4js":["sql","graphql","markdown","js-extras","js-templates","n4js"],"n4jsd":["sql","graphql","markdown","js-extras","js-templates","n4js"],"nand2tetris-hdl":["nand2tetris-hdl"],"nani":["naniscript"],"naniscript":["naniscript"],"nasm":["nasm"],"nb":["wolfram"],"neon":["neon"],"nevod":["nevod"],"nginx":["nginx"],"nim":["nim"],"nix":["nix"],"npmignore":["ignore"],"nsis":["nsis"],"objc":["c","objectivec"],"objectivec":["c","objectivec"],"objectpascal":["pascal"],"ocaml":["ocaml"],"odin":["odin"],"opencl":["c","opencl"],"openqasm":["openqasm"],"oscript":["bsl"],"oz":["oz"],"parigp":["parigp"],"parser":["parser"],"pascal":["pascal"],"pascaligo":["pascaligo"],"pbfasm":["purebasic"],"pcaxis":["pcaxis"],"pcode":["peoplecode"],"peoplecode":["peoplecode"],"perl":["perl"],"php":["markup-templating","php","php-extras"],"phpdoc":["markup-templating","javadoclike","php","php-extras","phpdoc"],"plant-uml":["plant-uml"],"plantuml":["plant-uml"],"plsql":["sql","plsql"],"po":["gettext"],"powerquery":["powerquery"],"powershell":["powershell"],"pq":["powerquery"],"processing":["processing"],"prolog":["prolog"],"promql":["promql"],"properties":["properties"],"protobuf":["protobuf"],"psl":["psl"],"pug":["sql","graphql","markdown","js-extras","js-templates","pug"],"puppet":["puppet"],"pure":["pure"],"purebasic":["purebasic"],"purescript":["haskell","purescript"],"purs":["haskell","purescript"],"px":["pcaxis"],"py":["python"],"python":["python"],"q":["q"],"qasm":["openqasm"],"qml":["sql","graphql","markdown","js-extras","js-templates","qml"],"qore":["qore"],"qs":["qsharp"],"qsharp":["qsharp"],"r":["r"],"racket":["scheme","racket"],"razor":["csharp","cshtml","xml-doc"],"rb":["ruby"],"rbnf":["bnf"],"reason":["reason"],"regex":["regex"],"rego":["rego"],"renpy":["renpy"],"res":["rescript"],"rescript":["rescript"],"rest":["rest"],"rip":["rip"],"rkt":["scheme","racket"],"roboconf":["roboconf"],"robot":["robotframework"],"robotframework":["robotframework"],"rpy":["renpy"],"rq":["turtle","sparql"],"ruby":["ruby"],"rust":["rust"],"sas":["sas"],"sass":["css-extras","sass"],"scala":["java","scala"],"scheme":["scheme"],"sclang":["supercollider"],"scss":["css-extras","scss"],"sh":["bash"],"sh-session":["bash","shell-session"],"shell":["bash"],"shell-session":["bash","shell-session"],"shellsession":["bash","shell-session"],"shortcode":["bbcode"],"sln":["solution-file"],"smali":["smali"],"smalltalk":["smalltalk"],"smarty":["markup-templating","smarty"],"sml":["sml"],"smlnj":["sml"],"sol":["solidity"],"solidity":["solidity"],"solution-file":["solution-file"],"soy":["markup-templating","soy"],"sparql":["turtle","sparql"],"splunk-spl":["splunk-spl"],"sqf":["sqf"],"sql":["sql"],"squirrel":["squirrel"],"stan":["stan"],"stata":["java","mata","python","stata"],"stylus":["stylus"],"supercollider":["supercollider"],"swift":["swift"],"systemd":["systemd"],"t4":["csharp","t4-templating","t4-cs","xml-doc"],"t4-cs":["csharp","t4-templating","t4-cs","xml-doc"],"t4-templating":["t4-templating"],"t4-vb":["basic","t4-templating","vbnet","xml-doc","t4-vb"],"tap":["yaml","tap"],"tcl":["tcl"],"tex":["latex"],"textile":["textile"],"toml":["toml"],"tremor":["tremor"],"trickle":["tremor"],"trig":["turtle"],"troy":["tremor"],"ts":["sql","graphql","markdown","js-extras","js-templates","typescript"],"tsconfig":["typoscript"],"tsx":["sql","graphql","markdown","js-extras","js-templates","typescript","jsx","tsx"],"tt2":["markup-templating","tt2"],"turtle":["turtle"],"twig":["markup-templating","twig"],"typescript":["sql","graphql","markdown","js-extras","js-templates","typescript"],"typoscript":["typoscript"],"uc":["unrealscript"],"unrealscript":["unrealscript"],"uorazor":["uorazor"],"uri":["uri"],"url":["uri"],"uscript":["unrealscript"],"v":["v"],"vala":["vala"],"vb":["visual-basic"],"vba":["visual-basic"],"vbnet":["basic","vbnet","xml-doc"],"velocity":["velocity"],"verilog":["verilog"],"vhdl":["vhdl"],"vim":["vim"],"visual-basic":["visual-basic"],"warpscript":["warpscript"],"wasm":["wasm"],"web-idl":["web-idl"],"webidl":["web-idl"],"webmanifest":["json"],"wgsl":["wgsl"],"wiki":["wiki"],"wl":["wolfram"],"wolfram":["wolfram"],"wren":["wren"],"xeora":["xeora"],"xeoracube":["xeora"],"xls":["excel-formula"],"xlsx":["excel-formula"],"xojo":["xojo"],"xquery":["xquery"],"yaml":["yaml"],"yang":["yang"],"yml":["yaml"],"zig":["zig"]}; |
| 21 |