index.d.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. type 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. declare const LinguistLanguages: Record<LanguageName, LinguistLanguages.Language>;
  604. declare namespace LinguistLanguages {
  605. interface Language {
  606. name: string;
  607. /**
  608. * Either data, programming, markup, prose, or nil
  609. */
  610. type: string;
  611. /**
  612. * CSS hex color to represent the language. Only used if type is "programming" or "markup".
  613. */
  614. color?: string;
  615. /**
  616. * An Array of associated extensions (the first one is
  617. * considered the primary extension, the others should be
  618. * listed alphabetically)
  619. */
  620. extensions?: string[];
  621. /**
  622. * The TextMate scope that represents this programming
  623. * language. This should match one of the scopes listed in
  624. * the grammars.yml file. Use "none" if there is no grammar
  625. * for this language.
  626. */
  627. tmScope: string;
  628. /**
  629. * A String name of the Ace Mode used for highlighting whenever
  630. * a file is edited. This must match one of the filenames in http://git.io/3XO_Cg.
  631. * Use "text" if a mode does not exist.
  632. */
  633. aceMode: string;
  634. /**
  635. * Integer used as a language-name-independent indexed field so that we can rename
  636. * languages in Linguist without reindexing all the code on GitHub. Must not be
  637. * changed for existing languages without the explicit permission of GitHub staff.
  638. */
  639. languageId: number;
  640. /**
  641. * An Array of additional aliases (implicitly
  642. * includes name.downcase)
  643. */
  644. aliases?: string[];
  645. /**
  646. * A String name of the CodeMirror Mode used for highlighting whenever a file is edited.
  647. * This must match a mode from https://git.io/vi9Fx
  648. */
  649. codemirrorMode?: string;
  650. /**
  651. * A String name of the file mime type used for highlighting whenever a file is edited.
  652. * This should match the `mime` associated with the mode from https://git.io/f4SoQ
  653. */
  654. codemirrorMimeType?: string;
  655. /**
  656. * An Array of associated interpreters
  657. */
  658. interpreters?: string[];
  659. /**
  660. * Name of the parent language. Languages in a group are counted
  661. * in the statistics as the parent language.
  662. */
  663. group?: string;
  664. /**
  665. * An Array of filenames commonly associated with the language
  666. */
  667. filenames?: string[];
  668. /**
  669. * Boolean wrap to enable line wrapping (default: false)
  670. */
  671. wrap?: boolean;
  672. /**
  673. * Optional field. Only necessary as a replacement for the sample directory name if the
  674. * language name is not a valid filename under the Windows filesystem (e.g., if it
  675. * contains an asterisk).
  676. */
  677. fsName?: string;
  678. searchable?: boolean;
  679. }
  680. }
  681. export = LinguistLanguages;