Top Level Namespace
Defined Under Namespace
Modules: Snibbets, TTY Classes: Array, Hash, String
Constant Summary collapse
- LEXERS_DB =
<<EOLEXERS abap [abap, ABAP] abnf [abnf] actionscript, as [as] ada [adb, ads, ada] adl [adl, adls, adlf, adlx] agda [agda] aheui [aheui] alloy [als] ambienttalk [at] amdgpu [isa] ampl [run] ansys [ans] apache [.htaccess, apache.conf, apache2.conf] apl [apl, aplf, aplo, apln, aplc, apli, dyalog] applescript [applescript] arduino [ino] arrow [arw] asc [asc] pem [pem, id_dsa, id_ecdsa, id_ecdsa_sk, id_ed25519, id_ed25519_sk, id_rsa] aspectj [aj] aspx-vb [aspx, asax, ascx, ashx, asmx, axd] asymptote, asy [asy] augeas [aug] autohotkey, ahk [ahk, ahkl] autoit [au3] awk [awk] bare [bare] shell [sh, ksh, bash, zsh] batch [bat, cmd] bbcbasic [bbc] bc [bc] befunge [befunge] bibtex [bib] blitzbasic [bb, decls] blitzmax [bmx] bnf [bnf] boa [boa] boo [boo] boogie [bpl] brainfuck, bf [bf, b] bst [bst] c-objdump [c-objdump] c [c, h, idc] ca65 [s] cadl [cadl] cddl [cddl] ceylon [ceylon] cfc [cfc] cf3 [cf] cfm [cfm, cfml] chaiscript, chai [chai] chapel, chpl [chpl] charmci [ci] cheetah, spitfire [tmpl, spt] cirru [cirru] clay [clay] clean [icl, dcl] clojure, clj [clj] clojurescript, cljs [cljs] cmake [cmake, CMakeLists.txt] cobol [cob, cpy] cobolfree [cbl] coffeescript, coffee-script, coffee [coffee] common-lisp, cl [cl] lisp [lisp] componentpascal, cp [cp, cps] coq [v] cpp, c++ [cpp, hpp, c++, h++, cc, hh, cxx, hxx, C, H, cp, CPP] cpp-objdump, c++-objdumb, cxx-objdump [cpp-objdump, c++-objdump, cxx-objdump] cpsa [cpsa] cr, crystal [cr] crmsh, pcmk [crmsh, pcmk] croc [croc] cryptol, cry [cry] csharp, c# [cs] csound, csound-orc [orc, udo] csound-document, csound-csd [csd] csound-score, csound-sco [sco] css [css] cuda, cu [cu, cuh] cypher [cyp, cypher] cython, pyx, pyrex [pyx, pxd, pxi] d [d, di] dart [dart] dasm16 [dasm16, dasm] delphi, pas, pascal, objectpascal [pas, dpr] devicetree, dts [dts, dtsi] dg [dg] diff, udiff [diff, patch] docker, dockerfile [Dockerfile, docker] dpatch [dpatch, darcspatch] dtd [dtd] jbst [duel, jbst] dylan-console, dylan-repl [dylan-console] dylan-lid, lid [lid, hdp] dylan [dylan, dyl, intr] earl-grey, earlgrey, eg [eg] easytrieve [ezt, mac] ebnf [ebnf] ec [ec, eh] ecl [ecl] eiffel [e] elixir, ex, exs [ex, eex, exs, leex] elm [elm] emacs-lisp, elisp, emacs [el] email, eml [eml] erb [erb] erl [erl-sh] erlang [erl, hrl, es, escript] evoque [evoque] execline [exec] extempore [xtm] ezhil [n] factor [factor] fan [fan] fancy, fy [fy, fancypack] felix, flx [flx, flxh] fennel, fnl [fnl] fish, fishshell [fish, load] floscript, flo [flo] forth [frt, fs] fortran [f03, f90, F03, F90] fortranfixed [f, F] foxpro, vfp, clipper, xbase [PRG, prg] freefem [edp] fsharp, f# [fs, fsi] fstar [fst, fsti] futhark [fut] gap [g, gd, gi, gap] gas, asm [s, S] gcode [gcode] gdscript, gd [gd] genshi, kid, xml+genshi, xml+kid [kid] gherkin, cucumber [feature] glsl [vert, frag, geo] gnuplot [plot, plt] go, golang [go] golo [golo] gooddata-cl [gdc] gosu [gs, gsx, gsp, vark] graphviz, dot [gv, dot] groff, nroff, man [man] groovy [groovy, gradle] gsql [gsql] gst [gst] haml [haml] haskell, hs [hs] haxe, hxsl, hx [hx, hxsl] haxeml, hxml [hxml] hlsl [hlsl, hlsli] hsail, hsa [hsail] handlebars [handlebars, hbs] html+ng2 [ng2] html+php [phtml] html+twig [twig] html [html, htm, xhtml, xslt] hybris, hy [hy, hyb] hylang [hy] i6t [i6t] idl [pro] idris, idr [idr] igor, igorpro [ipf] inform6, i6 [inf] inform7, i7 [ni, i7x] ini, cfg, dosini [ini, cfg, inf, service, socket, device, mount, automount, swap, target, path, timer, slice, scope] io [io] ioke, ik [ik] isabelle [thy] j [ijs] jags [jag, bug] jasmin, jasminxt [j] java [java] javascript, js [js, jsm, mjs, cjs] jcl [jcl] jsgf [jsgf] jslt [jslt] json, json-object [json] jsonld, json-ld [jsonld] jsp [jsp] julia, jl [jl] juttle [juttle] kal [kal] kmsg, dmesg [kmsg, dmesg] koka [kk, kki] kotlin [kt, kts] kuin [kn] lasso, lassoscript [lasso] lean [lean] less [less] limbo [b] liquid [liquid] literate-agda, lagda [lagda] literate-cryptol, lcryptol, lcry [lcry] literate-haskell, lhaskell, lhs [lhs] literate-idris, lidris, lidr [lidr] livescript, live-script [ls] llvm-mir [mir] llvm [ll] logos [x, xi, xm, xmi] logtalk [lgt, logtalk] lsl [lsl] lua [lua, wlua] make, makefile, mf, bsdmake [mak, mk, Makefile, makefile, Makefile. GNUmakefile] mako [mao] maql [maql] markdown, md [md, markdown, mmd] mask [mask] mason [m, mhtml, mc, mi, autohandler, dhandler] mathematica, mma, nb [nb, cdf, nbp, ma] miniscript, ms [ms] modelica [mo] modula2, m2 [def, mod] monkey [monkey] monte [mt] moocode, moo [moo] moonscript, moon [moon] mosel [mos] mscgen, msc [msc] mupad [mu] mxml [mxml] myghty [myt, autodelegate] ncl [ncl] nemerle [n] nesc [nc] nestedtext, nt [nt] newlisp [lsp, nl, kif] newspeak [ns2] nimrod, nim [nim, nimrod] nit [nit] nixos, nix [nix] nsis, nsi, nsh [nsi, nsh] nusmv [smv] objdump [objdump] objective-c++, objectivec++, obj-c++, objc++ [mm, hh] objectivec, objective-c, obj-c, objc [m, h] objective-j, objectivej, obj-j, objj [j] ocaml [ml, mli, mll, mly] odin [odin] omg-idl [idl, pidl] ooc [ooc] opa [opa] openedge, abl, progress [p, cls] pacmanconf [pacman.conf] pan [pan] parasail [psi, psl] pawn [p, pwn, inc] peg [peg] perl, pl [pl, pm, t, perl] php [php, inc] pig [pig] pike [pike, pmod] pkgconfig [pc] pointless [ptls] pony [pony] postscript, postscr [ps, eps] pot, po [pot, po] pov [pov, inc] powershell, pwsh, posh, ps1, psm1 [ps1, psm1] praat [praat, proc, psc] prolog [ecl, prolog, pro, pl] promql [promql] properties, jproperties [properties] protobuf, proto [proto] pug [pug] jade [jade] puppet [pp] py2tb [py2tb] pypylog, pypy [pypylog] pytb, py3tb [pytb, py3tb] python, py, sage [py, pyw, jy, sage, sc, bzl, tac] qbasic, basic [BAS, bas] qml, qbs [qml, qbs] qvto, qvt [qvto] racket, rkt [rkt, rktd, rktl] reasonml, reason [re, rei] rebol [r, r3, reb] red [red, reds] redcode [cw] registry [reg] restructuredtext, rst, rest [rst, rest] rexx, arexx [rexx, rex, rx, arexx] rhtml [rhtml] ride [ride] rng-compact, rnc [rnc] roboconf-graph [graph] roboconf-instances [instances] robotframework [robot] rql [rql] rsl [rsl] ruby, rb [rb, rbw, rake, gemspec, rbx, duby] rust, rs [rs, rs.in] sarl [sarl] sas [SAS, sas] sass [sass, scss] scala [scala] scaml [scaml] scdoc, scd [scd, scdoc] scheme, scm [scm, ss] scilab [sci, sce, tst] sgf [sgf] shen [shen] shexc, shex [shex] sieve [siv, sieve] silver [sil, vpr] slash [sla] slim [slim] slurm, sbatch [sl] smali [smali] smalltalk, squeak, st [st] smarty [tpl] smithy [smithy] sml [sml, sig, fun] snobol [snobol] snowball [sbl] solidity [sol] sp [sp] sparql [rq, sparql] spec [spec] r [R] sql [sql] ssp [ssp] stan [stan] stata, do [do, ado] supercollider, sc [sc, scd] swift [swift] swig [swg, i] systemverilog, sv [sv, svh] tads3 [t] tap [tap] tasm [tasm] tcl [tcl, rvt] tcsh, csh [tcsh, csh] tea [tea] teal [teal] teratermmacro, teraterm, ttl [ttl] termcap [termcap, termcap.src] terminfo [terminfo, terminfo.src] terraform, tf [tf] tex, latex [tex, aux, toc] text [txt] thrift [thrift] ti, thingsdb [ti] tid [tid] tnt [tnt] trafficscript, rts [rts] treetop [treetop, tt] turtle [ttl] typescript, ts [ts] typoscript [typoscript] ucode [u, u1, u2] urbiscript [u] usd, usda [usd, usda] vala, vapi [vala, vapi] vb.net, vbnet [vb, bas] vbscript [vbs, VBS] vcl [vcl] velocity [vm, fhtml] verilog, v [v] vgl [rpf] vhdl [vhdl, vhd] vim [vim, .vimrc, .exrc, .gvimrc, _vimrc, _exrc, _gvimrc, vimrc, gvimrc] wast, wat [wat, wast] wdiff [wdiff] webidl [webidl] whiley [whiley] x10, xten [x10] xml [xml, xsl, rss, xslt, xsd, wsdl, wsf] xquery, xqy, xq, xql, xqm [xqy, xquery, xq, xql, xqm] xslt [xsl, xslt, xpl] xtend [xtend] yaml+jinja, salt, sls [sls] yaml [yaml, yml] yang [yang] zeek [zeek] bro [bro] zephir [zep] zig [zig] EOLEXERS
- SKYLIGHT_LEXERS_DB =
<<EOSKYLEX abc asn1 asp ats awk actionscript ada agda alert apache bash bibtex boo c cs cpp cmake css changelog clojure coffee coldfusion comments commonlisp curry d dtd default diff djangotemplate dockerfile doxygen doxygenlua eiffel elixir elm email erlang fsharp fortranfixed fortranfree gcc glsl gnuassembler m4 go graphql groovy html hamlet haskell haxe ini isocpp idris fasm nasm j json jsp java javascript javascriptreact javadoc julia kotlin llvm latex lex lilypond literatecurry literatehaskell lua mips makefile markdown mathematica matlab maxima mediawiki metafont modelines modula2 modula3 monobasic mustache nim nix ocaml objectivec objectivecpp octave opencl orgmode php povray pascal perl pike postscript powershell prolog protobuf pure purebasic python qml r relaxng raku relaxngcompact roff ruby rhtml rust sass scss sgml sml spdxcomments sql sqlmysql sqlpostgresql scala scheme stan stata swift systemverilog toml tcl tcsh texinfo mandoc typescript vhdl verilog xml xul yaml yacc zsh dot noweb rest sci sed xorg xslt EOSKYLEX
- 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