UNPKG

11.5 kBTypeScriptView Raw
1type LanguageName =
2 | "1C Enterprise"
3 | "4D"
4 | "ABAP"
5 | "ABAP CDS"
6 | "ABNF"
7 | "AGS Script"
8 | "AIDL"
9 | "AL"
10 | "AMPL"
11 | "ANTLR"
12 | "API Blueprint"
13 | "APL"
14 | "ASL"
15 | "ASN.1"
16 | "ASP.NET"
17 | "ATS"
18 | "ActionScript"
19 | "Ada"
20 | "Adobe Font Metrics"
21 | "Agda"
22 | "Alloy"
23 | "Alpine Abuild"
24 | "Altium Designer"
25 | "AngelScript"
26 | "Ant Build System"
27 | "ApacheConf"
28 | "Apex"
29 | "Apollo Guidance Computer"
30 | "AppleScript"
31 | "Arc"
32 | "AsciiDoc"
33 | "AspectJ"
34 | "Assembly"
35 | "Asymptote"
36 | "Augeas"
37 | "AutoHotkey"
38 | "AutoIt"
39 | "Avro IDL"
40 | "Awk"
41 | "BASIC"
42 | "Ballerina"
43 | "Batchfile"
44 | "Beef"
45 | "Befunge"
46 | "BibTeX"
47 | "Bicep"
48 | "Bison"
49 | "BitBake"
50 | "Blade"
51 | "BlitzBasic"
52 | "BlitzMax"
53 | "Bluespec"
54 | "Boo"
55 | "Boogie"
56 | "Brainfuck"
57 | "Brightscript"
58 | "Browserslist"
59 | "C"
60 | "C#"
61 | "C++"
62 | "C-ObjDump"
63 | "C2hs Haskell"
64 | "CIL"
65 | "CLIPS"
66 | "CMake"
67 | "COBOL"
68 | "CODEOWNERS"
69 | "COLLADA"
70 | "CSON"
71 | "CSS"
72 | "CSV"
73 | "CUE"
74 | "CWeb"
75 | "Cabal Config"
76 | "Cap'n Proto"
77 | "CartoCSS"
78 | "Ceylon"
79 | "Chapel"
80 | "Charity"
81 | "ChucK"
82 | "Cirru"
83 | "Clarion"
84 | "Classic ASP"
85 | "Clean"
86 | "Click"
87 | "Clojure"
88 | "Closure Templates"
89 | "Cloud Firestore Security Rules"
90 | "CoNLL-U"
91 | "CodeQL"
92 | "CoffeeScript"
93 | "ColdFusion"
94 | "ColdFusion CFC"
95 | "Common Lisp"
96 | "Common Workflow Language"
97 | "Component Pascal"
98 | "Cool"
99 | "Coq"
100 | "Cpp-ObjDump"
101 | "Creole"
102 | "Crystal"
103 | "Csound"
104 | "Csound Document"
105 | "Csound Score"
106 | "Cuda"
107 | "Cue Sheet"
108 | "Cycript"
109 | "Cython"
110 | "D"
111 | "D-ObjDump"
112 | "DIGITAL Command Language"
113 | "DM"
114 | "DNS Zone"
115 | "DTrace"
116 | "Dafny"
117 | "Darcs Patch"
118 | "Dart"
119 | "DataWeave"
120 | "Dhall"
121 | "Diff"
122 | "DirectX 3D File"
123 | "Dockerfile"
124 | "Dogescript"
125 | "Dylan"
126 | "E"
127 | "EBNF"
128 | "ECL"
129 | "ECLiPSe"
130 | "EJS"
131 | "EML"
132 | "EQ"
133 | "Eagle"
134 | "Easybuild"
135 | "Ecere Projects"
136 | "EditorConfig"
137 | "Edje Data Collection"
138 | "Eiffel"
139 | "Elixir"
140 | "Elm"
141 | "Emacs Lisp"
142 | "EmberScript"
143 | "Erlang"
144 | "F#"
145 | "F*"
146 | "FIGlet Font"
147 | "FLUX"
148 | "Factor"
149 | "Fancy"
150 | "Fantom"
151 | "Faust"
152 | "Filebench WML"
153 | "Filterscript"
154 | "Fluent"
155 | "Formatted"
156 | "Forth"
157 | "Fortran"
158 | "Fortran Free Form"
159 | "FreeBasic"
160 | "FreeMarker"
161 | "Frege"
162 | "Futhark"
163 | "G-code"
164 | "GAML"
165 | "GAMS"
166 | "GAP"
167 | "GCC Machine Description"
168 | "GDB"
169 | "GDScript"
170 | "GEDCOM"
171 | "GLSL"
172 | "GN"
173 | "Game Maker Language"
174 | "Gemfile.lock"
175 | "Genie"
176 | "Genshi"
177 | "Gentoo Ebuild"
178 | "Gentoo Eclass"
179 | "Gerber Image"
180 | "Gettext Catalog"
181 | "Gherkin"
182 | "Git Attributes"
183 | "Git Config"
184 | "Glyph"
185 | "Glyph Bitmap Distribution Format"
186 | "Gnuplot"
187 | "Go"
188 | "Golo"
189 | "Gosu"
190 | "Grace"
191 | "Gradle"
192 | "Grammatical Framework"
193 | "Graph Modeling Language"
194 | "GraphQL"
195 | "Graphviz (DOT)"
196 | "Groovy"
197 | "Groovy Server Pages"
198 | "HAProxy"
199 | "HCL"
200 | "HLSL"
201 | "HTML"
202 | "HTML+ECR"
203 | "HTML+EEX"
204 | "HTML+ERB"
205 | "HTML+PHP"
206 | "HTML+Razor"
207 | "HTTP"
208 | "HXML"
209 | "Hack"
210 | "Haml"
211 | "Handlebars"
212 | "Harbour"
213 | "Haskell"
214 | "Haxe"
215 | "HiveQL"
216 | "HolyC"
217 | "Hy"
218 | "HyPhy"
219 | "IDL"
220 | "IGOR Pro"
221 | "INI"
222 | "IRC log"
223 | "Idris"
224 | "Ignore List"
225 | "ImageJ Macro"
226 | "Inform 7"
227 | "Inno Setup"
228 | "Io"
229 | "Ioke"
230 | "Isabelle"
231 | "Isabelle ROOT"
232 | "J"
233 | "JFlex"
234 | "JSON"
235 | "JSON with Comments"
236 | "JSON5"
237 | "JSONLD"
238 | "JSONiq"
239 | "Jasmin"
240 | "Java"
241 | "Java Properties"
242 | "Java Server Pages"
243 | "JavaScript"
244 | "JavaScript+ERB"
245 | "Jinja"
246 | "Jison"
247 | "Jison Lex"
248 | "Jolie"
249 | "Jsonnet"
250 | "Julia"
251 | "Jupyter Notebook"
252 | "KRL"
253 | "Kaitai Struct"
254 | "KiCad Layout"
255 | "KiCad Legacy Layout"
256 | "KiCad Schematic"
257 | "Kit"
258 | "Kotlin"
259 | "Kusto"
260 | "LFE"
261 | "LLVM"
262 | "LOLCODE"
263 | "LSL"
264 | "LTspice Symbol"
265 | "LabVIEW"
266 | "Lark"
267 | "Lasso"
268 | "Latte"
269 | "Lean"
270 | "Less"
271 | "Lex"
272 | "LilyPond"
273 | "Limbo"
274 | "Linker Script"
275 | "Linux Kernel Module"
276 | "Liquid"
277 | "Literate Agda"
278 | "Literate CoffeeScript"
279 | "Literate Haskell"
280 | "LiveScript"
281 | "Logos"
282 | "Logtalk"
283 | "LookML"
284 | "LoomScript"
285 | "Lua"
286 | "M"
287 | "M4"
288 | "M4Sugar"
289 | "MATLAB"
290 | "MAXScript"
291 | "MLIR"
292 | "MQL4"
293 | "MQL5"
294 | "MTML"
295 | "MUF"
296 | "Macaulay2"
297 | "Makefile"
298 | "Mako"
299 | "Markdown"
300 | "Marko"
301 | "Mask"
302 | "Mathematica"
303 | "Maven POM"
304 | "Max"
305 | "Mercury"
306 | "Meson"
307 | "Metal"
308 | "Microsoft Developer Studio Project"
309 | "Microsoft Visual Studio Solution"
310 | "MiniD"
311 | "Mirah"
312 | "Modelica"
313 | "Modula-2"
314 | "Modula-3"
315 | "Module Management System"
316 | "Monkey"
317 | "Moocode"
318 | "MoonScript"
319 | "Motorola 68K Assembly"
320 | "Muse"
321 | "Mustache"
322 | "Myghty"
323 | "NASL"
324 | "NCL"
325 | "NEON"
326 | "NL"
327 | "NPM Config"
328 | "NSIS"
329 | "NWScript"
330 | "Nearley"
331 | "Nemerle"
332 | "NetLinx"
333 | "NetLinx+ERB"
334 | "NetLogo"
335 | "NewLisp"
336 | "Nextflow"
337 | "Nginx"
338 | "Nim"
339 | "Ninja"
340 | "Nit"
341 | "Nix"
342 | "Nu"
343 | "NumPy"
344 | "Nunjucks"
345 | "OCaml"
346 | "ObjDump"
347 | "Object Data Instance Notation"
348 | "ObjectScript"
349 | "Objective-C"
350 | "Objective-C++"
351 | "Objective-J"
352 | "Odin"
353 | "Omgrofl"
354 | "Opa"
355 | "Opal"
356 | "Open Policy Agent"
357 | "OpenCL"
358 | "OpenEdge ABL"
359 | "OpenQASM"
360 | "OpenRC runscript"
361 | "OpenSCAD"
362 | "OpenStep Property List"
363 | "OpenType Feature File"
364 | "Org"
365 | "Ox"
366 | "Oxygene"
367 | "Oz"
368 | "P4"
369 | "PEG.js"
370 | "PHP"
371 | "PLSQL"
372 | "PLpgSQL"
373 | "POV-Ray SDL"
374 | "Pan"
375 | "Papyrus"
376 | "Parrot"
377 | "Parrot Assembly"
378 | "Parrot Internal Representation"
379 | "Pascal"
380 | "Pawn"
381 | "Pep8"
382 | "Perl"
383 | "Pic"
384 | "Pickle"
385 | "PicoLisp"
386 | "PigLatin"
387 | "Pike"
388 | "PlantUML"
389 | "Pod"
390 | "Pod 6"
391 | "PogoScript"
392 | "Pony"
393 | "PostCSS"
394 | "PostScript"
395 | "PowerBuilder"
396 | "PowerShell"
397 | "Prisma"
398 | "Processing"
399 | "Proguard"
400 | "Prolog"
401 | "Propeller Spin"
402 | "Protocol Buffer"
403 | "Public Key"
404 | "Pug"
405 | "Puppet"
406 | "Pure Data"
407 | "PureBasic"
408 | "PureScript"
409 | "Python"
410 | "Python console"
411 | "Python traceback"
412 | "Q#"
413 | "QML"
414 | "QMake"
415 | "Qt Script"
416 | "Quake"
417 | "R"
418 | "RAML"
419 | "RDoc"
420 | "REALbasic"
421 | "REXX"
422 | "RMarkdown"
423 | "RPC"
424 | "RPM Spec"
425 | "RUNOFF"
426 | "Racket"
427 | "Ragel"
428 | "Raku"
429 | "Rascal"
430 | "Raw token data"
431 | "ReScript"
432 | "Readline Config"
433 | "Reason"
434 | "Rebol"
435 | "Record Jar"
436 | "Red"
437 | "Redcode"
438 | "Redirect Rules"
439 | "Regular Expression"
440 | "Ren'Py"
441 | "RenderScript"
442 | "Rich Text Format"
443 | "Ring"
444 | "Riot"
445 | "RobotFramework"
446 | "Roff"
447 | "Roff Manpage"
448 | "Rouge"
449 | "Ruby"
450 | "Rust"
451 | "SAS"
452 | "SCSS"
453 | "SELinux Policy"
454 | "SMT"
455 | "SPARQL"
456 | "SQF"
457 | "SQL"
458 | "SQLPL"
459 | "SRecode Template"
460 | "SSH Config"
461 | "STON"
462 | "SVG"
463 | "SWIG"
464 | "Sage"
465 | "SaltStack"
466 | "Sass"
467 | "Scala"
468 | "Scaml"
469 | "Scheme"
470 | "Scilab"
471 | "Self"
472 | "ShaderLab"
473 | "Shell"
474 | "ShellSession"
475 | "Shen"
476 | "Sieve"
477 | "Singularity"
478 | "Slash"
479 | "Slice"
480 | "Slim"
481 | "SmPL"
482 | "Smali"
483 | "Smalltalk"
484 | "Smarty"
485 | "Solidity"
486 | "Soong"
487 | "SourcePawn"
488 | "Spline Font Database"
489 | "Squirrel"
490 | "Stan"
491 | "Standard ML"
492 | "Starlark"
493 | "Stata"
494 | "StringTemplate"
495 | "Stylus"
496 | "SubRip Text"
497 | "SugarSS"
498 | "SuperCollider"
499 | "Svelte"
500 | "Swift"
501 | "SystemVerilog"
502 | "TI Program"
503 | "TLA"
504 | "TOML"
505 | "TSQL"
506 | "TSV"
507 | "TSX"
508 | "TXL"
509 | "Tcl"
510 | "Tcsh"
511 | "TeX"
512 | "Tea"
513 | "Terra"
514 | "Texinfo"
515 | "Text"
516 | "TextMate Properties"
517 | "Textile"
518 | "Thrift"
519 | "Turing"
520 | "Turtle"
521 | "Twig"
522 | "Type Language"
523 | "TypeScript"
524 | "Unified Parallel C"
525 | "Unity3D Asset"
526 | "Unix Assembly"
527 | "Uno"
528 | "UnrealScript"
529 | "UrWeb"
530 | "V"
531 | "VBA"
532 | "VBScript"
533 | "VCL"
534 | "VHDL"
535 | "Vala"
536 | "Valve Data Format"
537 | "Verilog"
538 | "Vim Help File"
539 | "Vim Snippet"
540 | "Vim script"
541 | "Visual Basic .NET"
542 | "Volt"
543 | "Vue"
544 | "Wavefront Material"
545 | "Wavefront Object"
546 | "Web Ontology Language"
547 | "WebAssembly"
548 | "WebIDL"
549 | "WebVTT"
550 | "Wget Config"
551 | "Wikitext"
552 | "Windows Registry Entries"
553 | "Wollok"
554 | "World of Warcraft Addon Data"
555 | "X BitMap"
556 | "X Font Directory Index"
557 | "X PixMap"
558 | "X10"
559 | "XC"
560 | "XCompose"
561 | "XML"
562 | "XML Property List"
563 | "XPages"
564 | "XProc"
565 | "XQuery"
566 | "XS"
567 | "XSLT"
568 | "Xojo"
569 | "Xonsh"
570 | "Xtend"
571 | "YAML"
572 | "YANG"
573 | "YARA"
574 | "YASnippet"
575 | "Yacc"
576 | "ZAP"
577 | "ZIL"
578 | "Zeek"
579 | "ZenScript"
580 | "Zephir"
581 | "Zig"
582 | "Zimpl"
583 | "cURL Config"
584 | "desktop"
585 | "dircolors"
586 | "eC"
587 | "edn"
588 | "fish"
589 | "jq"
590 | "mIRC Script"
591 | "mcfunction"
592 | "mupad"
593 | "nanorc"
594 | "nesC"
595 | "ooc"
596 | "q"
597 | "reStructuredText"
598 | "robots.txt"
599 | "sed"
600 | "wdl"
601 | "wisp"
602 | "xBase";
603
604declare const LinguistLanguages: Record<LanguageName, LinguistLanguages.Language>;
605
606declare namespace LinguistLanguages {
607 interface Language {
608 name: string;
609 /**
610 * Either data, programming, markup, prose, or nil
611 */
612 type: string;
613 /**
614 * CSS hex color to represent the language. Only used if type is "programming" or "markup".
615 */
616 color?: string;
617 /**
618 * An Array of associated extensions (the first one is
619 * considered the primary extension, the others should be
620 * listed alphabetically)
621 */
622 extensions?: string[];
623 /**
624 * The TextMate scope that represents this programming
625 * language. This should match one of the scopes listed in
626 * the grammars.yml file. Use "none" if there is no grammar
627 * for this language.
628 */
629 tmScope: string;
630 /**
631 * A String name of the Ace Mode used for highlighting whenever
632 * a file is edited. This must match one of the filenames in http://git.io/3XO_Cg.
633 * Use "text" if a mode does not exist.
634 */
635 aceMode: string;
636 /**
637 * Integer used as a language-name-independent indexed field so that we can rename
638 * languages in Linguist without reindexing all the code on GitHub. Must not be
639 * changed for existing languages without the explicit permission of GitHub staff.
640 */
641 languageId: number;
642 /**
643 * An Array of additional aliases (implicitly
644 * includes name.downcase)
645 */
646 aliases?: string[];
647 /**
648 * A String name of the CodeMirror Mode used for highlighting whenever a file is edited.
649 * This must match a mode from https://git.io/vi9Fx
650 */
651 codemirrorMode?: string;
652 /**
653 * A String name of the file mime type used for highlighting whenever a file is edited.
654 * This should match the `mime` associated with the mode from https://git.io/f4SoQ
655 */
656 codemirrorMimeType?: string;
657 /**
658 * An Array of associated interpreters
659 */
660 interpreters?: string[];
661 /**
662 * Name of the parent language. Languages in a group are counted
663 * in the statistics as the parent language.
664 */
665 group?: string;
666 /**
667 * An Array of filenames commonly associated with the language
668 */
669 filenames?: string[];
670 /**
671 * Boolean wrap to enable line wrapping (default: false)
672 */
673 wrap?: boolean;
674 /**
675 * Optional field. Only necessary as a replacement for the sample directory name if the
676 * language name is not a valid filename under the Windows filesystem (e.g., if it
677 * contains an asterisk).
678 */
679 fsName?: string;
680 searchable?: boolean;
681 }
682}
683
684export = LinguistLanguages;