Top Level Namespace

Defined Under Namespace

Modules: Snibbets, TTY Classes: Array, Hash, String

Constant Summary collapse

LEXERS_DB =
"abap [abap, ABAP]\nabnf [abnf]\nactionscript, as [as]\nada [adb, ads, ada]\nadl [adl, adls, adlf, adlx]\nagda [agda]\naheui [aheui]\nalloy [als]\nambienttalk [at]\namdgpu [isa]\nampl [run]\nansys [ans]\napache [.htaccess, apache.conf, apache2.conf]\napl [apl, aplf, aplo, apln, aplc, apli, dyalog]\napplescript [applescript]\narduino [ino]\narrow [arw]\nasc [asc]\npem [pem, id_dsa, id_ecdsa, id_ecdsa_sk, id_ed25519, id_ed25519_sk, id_rsa]\naspectj [aj]\naspx-vb [aspx, asax, ascx, ashx, asmx, axd]\nasymptote, asy [asy]\naugeas [aug]\nautohotkey, ahk [ahk, ahkl]\nautoit [au3]\nawk [awk]\nbare [bare]\nshell [sh, ksh, bash, zsh]\nbatch [bat, cmd]\nbbcbasic [bbc]\nbc [bc]\nbefunge [befunge]\nbibtex [bib]\nblitzbasic [bb, decls]\nblitzmax [bmx]\nbnf [bnf]\nboa [boa]\nboo [boo]\nboogie [bpl]\nbrainfuck, bf [bf, b]\nbst [bst]\nc-objdump [c-objdump]\nc [c, h, idc]\nca65 [s]\ncadl [cadl]\ncddl [cddl]\nceylon [ceylon]\ncfc [cfc]\ncf3 [cf]\ncfm [cfm, cfml]\nchaiscript, chai [chai]\nchapel, chpl [chpl]\ncharmci [ci]\ncheetah, spitfire [tmpl, spt]\ncirru [cirru]\nclay [clay]\nclean [icl, dcl]\nclojure, clj [clj]\nclojurescript, cljs [cljs]\ncmake [cmake, CMakeLists.txt]\ncobol [cob, cpy]\ncobolfree [cbl]\ncoffeescript, coffee-script, coffee [coffee]\ncommon-lisp, cl [cl]\nlisp [lisp]\ncomponentpascal, cp [cp, cps]\ncoq [v]\ncpp, c++ [cpp, hpp, c++, h++, cc, hh, cxx, hxx, C, H, cp, CPP]\ncpp-objdump, c++-objdumb, cxx-objdump [cpp-objdump, c++-objdump, cxx-objdump]\ncpsa [cpsa]\ncr, crystal [cr]\ncrmsh, pcmk [crmsh, pcmk]\ncroc [croc]\ncryptol, cry [cry]\ncsharp, c# [cs]\ncsound, csound-orc [orc, udo]\ncsound-document, csound-csd [csd]\ncsound-score, csound-sco [sco]\ncss [css]\ncuda, cu [cu, cuh]\ncypher [cyp, cypher]\ncython, pyx, pyrex [pyx, pxd, pxi]\nd [d, di]\ndart [dart]\ndasm16 [dasm16, dasm]\ndelphi, pas, pascal, objectpascal [pas, dpr]\ndevicetree, dts [dts, dtsi]\ndg [dg]\ndiff, udiff [diff, patch]\ndocker, dockerfile [Dockerfile, docker]\ndpatch [dpatch, darcspatch]\ndtd [dtd]\njbst [duel, jbst]\ndylan-console, dylan-repl [dylan-console]\ndylan-lid, lid [lid, hdp]\ndylan [dylan, dyl, intr]\nearl-grey, earlgrey, eg [eg]\neasytrieve [ezt, mac]\nebnf [ebnf]\nec [ec, eh]\necl [ecl]\neiffel [e]\nelixir, ex, exs [ex, eex, exs, leex]\nelm [elm]\nemacs-lisp, elisp, emacs [el]\nemail, eml [eml]\nerb [erb]\nerl [erl-sh]\nerlang [erl, hrl, es, escript]\nevoque [evoque]\nexecline [exec]\nextempore [xtm]\nezhil [n]\nfactor [factor]\nfan [fan]\nfancy, fy [fy, fancypack]\nfelix, flx [flx, flxh]\nfennel, fnl [fnl]\nfish, fishshell [fish, load]\nfloscript, flo [flo]\nforth [frt, fs]\nfortran [f03, f90, F03, F90]\nfortranfixed [f, F]\nfoxpro, vfp, clipper, xbase [PRG, prg]\nfreefem [edp]\nfsharp, f# [fs, fsi]\nfstar [fst, fsti]\nfuthark [fut]\ngap [g, gd, gi, gap]\ngas, asm [s, S]\ngcode [gcode]\ngdscript, gd [gd]\ngenshi, kid, xml+genshi, xml+kid [kid]\ngherkin, cucumber [feature]\nglsl [vert, frag, geo]\ngnuplot [plot, plt]\ngo, golang [go]\ngolo [golo]\ngooddata-cl [gdc]\ngosu [gs, gsx, gsp, vark]\ngraphviz, dot [gv, dot]\ngroff, nroff, man [man]\ngroovy [groovy, gradle]\ngsql [gsql]\ngst [gst]\nhaml [haml]\nhaskell, hs [hs]\nhaxe, hxsl, hx [hx, hxsl]\nhaxeml, hxml [hxml]\nhlsl [hlsl, hlsli]\nhsail, hsa [hsail]\nhandlebars [handlebars, hbs]\nhtml+ng2 [ng2]\nhtml+php [phtml]\nhtml+twig [twig]\nhtml [html, htm, xhtml, xslt]\nhybris, hy [hy, hyb]\nhylang [hy]\ni6t [i6t]\nidl [pro]\nidris, idr [idr]\nigor, igorpro [ipf]\ninform6, i6 [inf]\ninform7, i7 [ni, i7x]\nini, cfg, dosini [ini, cfg, inf, service, socket, device, mount, automount, swap, target, path, timer, slice, scope]\nio [io]\nioke, ik [ik]\nisabelle [thy]\nj [ijs]\njags [jag, bug]\njasmin, jasminxt [j]\njava [java]\njavascript, js [js, jsm, mjs, cjs]\njcl [jcl]\njsgf [jsgf]\njslt [jslt]\njson, json-object [json]\njsonld, json-ld [jsonld]\njsp [jsp]\njulia, jl [jl]\njuttle [juttle]\nkal [kal]\nkmsg, dmesg [kmsg, dmesg]\nkoka [kk, kki]\nkotlin [kt, kts]\nkuin [kn]\nlasso, lassoscript [lasso]\nlean [lean]\nless [less]\nlimbo [b]\nliquid [liquid]\nliterate-agda, lagda [lagda]\nliterate-cryptol, lcryptol, lcry [lcry]\nliterate-haskell, lhaskell, lhs [lhs]\nliterate-idris, lidris, lidr [lidr]\nlivescript, live-script [ls]\nllvm-mir [mir]\nllvm [ll]\nlogos [x, xi, xm, xmi]\nlogtalk [lgt, logtalk]\nlsl [lsl]\nlua [lua, wlua]\nmake, makefile, mf, bsdmake [mak, mk, Makefile, makefile, Makefile. GNUmakefile]\nmako [mao]\nmaql [maql]\nmarkdown, md [md, markdown, mmd]\nmask [mask]\nmason [m, mhtml, mc, mi, autohandler, dhandler]\nmathematica, mma, nb [nb, cdf, nbp, ma]\nminiscript, ms [ms]\nmodelica [mo]\nmodula2, m2 [def, mod]\nmonkey [monkey]\nmonte [mt]\nmoocode, moo [moo]\nmoonscript, moon [moon]\nmosel [mos]\nmscgen, msc [msc]\nmupad [mu]\nmxml [mxml]\nmyghty [myt, autodelegate]\nncl [ncl]\nnemerle [n]\nnesc [nc]\nnestedtext, nt [nt]\nnewlisp [lsp, nl, kif]\nnewspeak [ns2]\nnimrod, nim [nim, nimrod]\nnit [nit]\nnixos, nix [nix]\nnsis, nsi, nsh [nsi, nsh]\nnusmv [smv]\nobjdump [objdump]\nobjective-c++, objectivec++, obj-c++, objc++ [mm, hh]\nobjectivec, objective-c, obj-c, objc [m, h]\nobjective-j, objectivej, obj-j, objj [j]\nocaml [ml, mli, mll, mly]\nodin [odin]\nomg-idl [idl, pidl]\nooc [ooc]\nopa [opa]\nopenedge, abl, progress [p, cls]\npacmanconf [pacman.conf]\npan [pan]\nparasail [psi, psl]\npawn [p, pwn, inc]\npeg [peg]\nperl, pl [pl, pm, t, perl]\nphp [php, inc]\npig [pig]\npike [pike, pmod]\npkgconfig [pc]\npointless [ptls]\npony [pony]\npostscript, postscr [ps, eps]\npot, po [pot, po]\npov [pov, inc]\npowershell, pwsh, posh, ps1, psm1 [ps1, psm1]\npraat [praat, proc, psc]\nprolog [ecl, prolog, pro, pl]\npromql [promql]\nproperties, jproperties [properties]\nprotobuf, proto [proto]\npug [pug]\njade [jade]\npuppet [pp]\npy2tb [py2tb]\npypylog, pypy [pypylog]\npytb, py3tb [pytb, py3tb]\npython, py, sage [py, pyw, jy, sage, sc, bzl, tac]\nqbasic, basic [BAS, bas]\nqml, qbs [qml, qbs]\nqvto, qvt [qvto]\nracket, rkt [rkt, rktd, rktl]\nreasonml, reason [re, rei]\nrebol [r, r3, reb]\nred [red, reds]\nredcode [cw]\nregistry [reg]\nrestructuredtext, rst, rest [rst, rest]\nrexx, arexx [rexx, rex, rx, arexx]\nrhtml [rhtml]\nride [ride]\nrng-compact, rnc [rnc]\nroboconf-graph [graph]\nroboconf-instances [instances]\nrobotframework [robot]\nrql [rql]\nrsl [rsl]\nruby, rb [rb, rbw, rake, gemspec, rbx, duby]\nrust, rs [rs, rs.in]\nsarl [sarl]\nsas [SAS, sas]\nsass [sass, scss]\nscala [scala]\nscaml [scaml]\nscdoc, scd [scd, scdoc]\nscheme, scm [scm, ss]\nscilab [sci, sce, tst]\nsgf [sgf]\nshen [shen]\nshexc, shex [shex]\nsieve [siv, sieve]\nsilver [sil, vpr]\nslash [sla]\nslim [slim]\nslurm, sbatch [sl]\nsmali [smali]\nsmalltalk, squeak, st [st]\nsmarty [tpl]\nsmithy [smithy]\nsml [sml, sig, fun]\nsnobol [snobol]\nsnowball [sbl]\nsolidity [sol]\nsp [sp]\nsparql [rq, sparql]\nspec [spec]\nr [R]\nsql [sql]\nssp [ssp]\nstan [stan]\nstata, do [do, ado]\nsupercollider, sc [sc, scd]\nswift [swift]\nswig [swg, i]\nsystemverilog, sv [sv, svh]\ntads3 [t]\ntap [tap]\ntasm [tasm]\ntcl [tcl, rvt]\ntcsh, csh [tcsh, csh]\ntea [tea]\nteal [teal]\nteratermmacro, teraterm, ttl [ttl]\ntermcap [termcap, termcap.src]\nterminfo [terminfo, terminfo.src]\nterraform, tf [tf]\ntex, latex [tex, aux, toc]\ntext [txt]\nthrift [thrift]\nti, thingsdb [ti]\ntid [tid]\ntnt [tnt]\ntrafficscript, rts [rts]\ntreetop [treetop, tt]\nturtle [ttl]\ntypescript, ts [ts]\ntyposcript [typoscript]\nucode [u, u1, u2]\nurbiscript [u]\nusd, usda [usd, usda]\nvala, vapi [vala, vapi]\nvb.net, vbnet [vb, bas]\nvbscript [vbs, VBS]\nvcl [vcl]\nvelocity [vm, fhtml]\nverilog, v [v]\nvgl [rpf]\nvhdl [vhdl, vhd]\nvim [vim, .vimrc, .exrc, .gvimrc, _vimrc, _exrc, _gvimrc, vimrc, gvimrc]\nwast, wat [wat, wast]\nwdiff [wdiff]\nwebidl [webidl]\nwhiley [whiley]\nx10, xten [x10]\nxml [xml, xsl, rss, xslt, xsd, wsdl, wsf]\nxquery, xqy, xq, xql, xqm [xqy, xquery, xq, xql, xqm]\nxslt [xsl, xslt, xpl]\nxtend [xtend]\nyaml+jinja, salt, sls [sls]\nyaml [yaml, yml]\nyang [yang]\nzeek [zeek]\nbro [bro]\nzephir [zep]\nzig [zig]\n"
SKYLIGHT_LEXERS_DB =
"abc\nasn1\nasp\nats\nawk\nactionscript\nada\nagda\nalert\napache\nbash\nbibtex\nboo\nc\ncs\ncpp\ncmake\ncss\nchangelog\nclojure\ncoffee\ncoldfusion\ncomments\ncommonlisp\ncurry\nd\ndtd\ndefault\ndiff\ndjangotemplate\ndockerfile\ndoxygen\ndoxygenlua\neiffel\nelixir\nelm\nemail\nerlang\nfsharp\nfortranfixed\nfortranfree\ngcc\nglsl\ngnuassembler\nm4\ngo\ngraphql\ngroovy\nhtml\nhamlet\nhaskell\nhaxe\nini\nisocpp\nidris\nfasm\nnasm\nj\njson\njsp\njava\njavascript\njavascriptreact\njavadoc\njulia\nkotlin\nllvm\nlatex\nlex\nlilypond\nliteratecurry\nliteratehaskell\nlua\nmips\nmakefile\nmarkdown\nmathematica\nmatlab\nmaxima\nmediawiki\nmetafont\nmodelines\nmodula2\nmodula3\nmonobasic\nmustache\nnim\nnix\nocaml\nobjectivec\nobjectivecpp\noctave\nopencl\norgmode\nphp\npovray\npascal\nperl\npike\npostscript\npowershell\nprolog\nprotobuf\npure\npurebasic\npython\nqml\nr\nrelaxng\nraku\nrelaxngcompact\nroff\nruby\nrhtml\nrust\nsass\nscss\nsgml\nsml\nspdxcomments\nsql\nsqlmysql\nsqlpostgresql\nscala\nscheme\nstan\nstata\nswift\nsystemverilog\ntoml\ntcl\ntcsh\ntexinfo\nmandoc\ntypescript\nvhdl\nverilog\nxml\nxul\nyaml\nyacc\nzsh\ndot\nnoweb\nrest\nsci\nsed\nxorg\nxslt\n"
LEXER_NORMALIZERS =
{
  'objectivec' => %w[objective-c obj-c],
  'markdown' => %w[md mmd mkdn multimarkdown],
  'bash' => %w[csh sh shell],
  'javascript' => %w[js],
  'javascriptreact' => %w[react],
  'yaml' => %w[yml]
}.freeze