From 88c74fa9c2016c3af79333be301196458ffd8714 Mon Sep 17 00:00:00 2001 From: Todd Berman Date: Fri, 23 Sep 2016 13:40:19 -0700 Subject: [PATCH] Convert from mode names to mimetypes for better usage. --- lib/linguist/language.rb | 6 +- lib/linguist/languages.yml | 386 ++++++++++++++++++------------------- test/test_language.rb | 2 +- 3 files changed, 196 insertions(+), 198 deletions(-) diff --git a/lib/linguist/language.rb b/lib/linguist/language.rb index 85eade29..49adbbd8 100644 --- a/lib/linguist/language.rb +++ b/lib/linguist/language.rb @@ -398,13 +398,13 @@ module Linguist # Returns a String name or nil attr_reader :ace_mode - # Public: Get Codemirror mode + # Public: Get Codemirror mode (as expressed by a mimetype) # # Examples # # # => "nil" - # # => "javascript" - # # => "clike" + # # => "text/x-javascript" + # # => "text/x-csrc" # # Returns a String name or nil attr_reader :codemirror_mode diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 4bb5fbef..5762f715 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -59,7 +59,7 @@ AGS Script: - ".ash" tm_scope: source.c++ ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src language_id: 2 AMPL: type: programming @@ -97,7 +97,7 @@ APL: - dyalog tm_scope: source.apl ace_mode: text - codemirror_mode: apl + codemirror_mode: text/apl language_id: 6 ASN.1: type: data @@ -107,7 +107,7 @@ ASN.1: - ".asn1" tm_scope: source.asn ace_mode: text - codemirror_mode: asn.1 + codemirror_mode: text/x-ttcn-asn language_id: 7 ASP: type: programming @@ -126,7 +126,7 @@ ASP: - ".aspx" - ".axd" ace_mode: text - codemirror_mode: htmlembedded + codemirror_mode: application/x-aspx language_id: 8 ATS: type: programming @@ -189,7 +189,7 @@ Alpine Abuild: - APKBUILD tm_scope: source.shell ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 14 Ant Build System: type: data @@ -198,7 +198,7 @@ Ant Build System: - ant.xml - build.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: application/xml language_id: 15 ApacheConf: type: markup @@ -217,7 +217,7 @@ Apex: - ".cls" tm_scope: source.java ace_mode: java - codemirror_mode: clike + codemirror_mode: text/x-java language_id: 17 Apollo Guidance Computer: type: programming @@ -227,7 +227,7 @@ Apollo Guidance Computer: - ".agc" tm_scope: source.agc ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 18 AppleScript: type: programming @@ -256,7 +256,7 @@ Arduino: - ".ino" tm_scope: source.c++ ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src language_id: 21 AsciiDoc: type: prose @@ -289,7 +289,7 @@ Assembly: - ".nasm" tm_scope: source.assembly ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 24 Augeas: type: programming @@ -427,7 +427,7 @@ Brainfuck: - ".bf" tm_scope: source.bf ace_mode: text - codemirror_mode: brainfuck + codemirror_mode: text/x-brainfuck language_id: 38 Brightscript: type: programming @@ -454,12 +454,12 @@ C: interpreters: - tcc ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-csrc language_id: 41 C#: type: programming ace_mode: csharp - codemirror_mode: clike + codemirror_mode: text/x-csharp tm_scope: source.cs search_term: csharp color: "#178600" @@ -474,7 +474,7 @@ C#: C++: type: programming ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src search_term: cpp color: "#f34b7d" aliases: @@ -502,7 +502,7 @@ C-ObjDump: - ".c-objdump" tm_scope: objdump.x86asm ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 44 C2hs Haskell: type: programming @@ -513,7 +513,7 @@ C2hs Haskell: - ".chs" tm_scope: source.haskell ace_mode: haskell - codemirror_mode: haskell + codemirror_mode: text/x-haskell language_id: 45 CLIPS: type: programming @@ -530,7 +530,7 @@ CMake: filenames: - CMakeLists.txt ace_mode: text - codemirror_mode: cmake + codemirror_mode: text/x-cmake language_id: 47 COBOL: type: programming @@ -541,7 +541,7 @@ COBOL: - ".cobol" - ".cpy" ace_mode: cobol - codemirror_mode: cobol + codemirror_mode: text/x-cobol language_id: 48 COLLADA: type: data @@ -549,13 +549,13 @@ COLLADA: - ".dae" tm_scope: text.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/x-xml language_id: 49 CSS: type: markup tm_scope: source.css ace_mode: css - codemirror_mode: css + codemirror_mode: text/css color: "#563d7c" extensions: - ".css" @@ -611,7 +611,7 @@ ChucK: - ".ck" tm_scope: source.java ace_mode: java - codemirror_mode: clike + codemirror_mode: text/x-java language_id: 57 Cirru: type: programming @@ -648,7 +648,7 @@ Click: Clojure: type: programming ace_mode: clojure - codemirror_mode: clojure + codemirror_mode: text/x-clojure color: "#db5855" extensions: - ".clj" @@ -667,7 +667,7 @@ CoffeeScript: type: programming tm_scope: source.coffee ace_mode: coffee - codemirror_mode: coffeescript + codemirror_mode: text/x-coffeescript color: "#244776" aliases: - coffee @@ -733,7 +733,7 @@ Common Lisp: - clisp - ecl ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp language_id: 66 Component Pascal: type: programming @@ -746,7 +746,7 @@ Component Pascal: - delphi - objectpascal ace_mode: pascal - codemirror_mode: pascal + codemirror_mode: text/x-pascal language_id: 67 Cool: type: programming @@ -774,7 +774,7 @@ Cpp-ObjDump: aliases: - c++-objdump ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 70 Creole: type: prose @@ -790,7 +790,7 @@ Crystal: extensions: - ".cr" ace_mode: ruby - codemirror_mode: crystal + codemirror_mode: text/x-crystal tm_scope: source.crystal interpreters: - crystal @@ -840,7 +840,7 @@ Cuda: - ".cuh" tm_scope: source.cuda-c++ ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src color: "#3A4E3A" language_id: 77 Cycript: @@ -849,7 +849,7 @@ Cycript: - ".cy" tm_scope: source.js ace_mode: javascript - codemirror_mode: javascript + codemirror_mode: text/javascript language_id: 78 Cython: type: programming @@ -861,7 +861,7 @@ Cython: aliases: - pyrex ace_mode: text - codemirror_mode: python + codemirror_mode: text/x-cython language_id: 79 D: type: programming @@ -870,7 +870,7 @@ D: - ".d" - ".di" ace_mode: d - codemirror_mode: d + codemirror_mode: text/x-d language_id: 80 D-ObjDump: type: data @@ -878,7 +878,7 @@ D-ObjDump: - ".d-objdump" tm_scope: objdump.x86asm ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 81 DIGITAL Command Language: type: programming @@ -917,7 +917,7 @@ DTrace: - dtrace tm_scope: source.c ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-csrc language_id: 85 Darcs Patch: type: data @@ -938,7 +938,7 @@ Dart: interpreters: - dart ace_mode: dart - codemirror_mode: dart + codemirror_mode: text/x-dart language_id: 87 Diff: type: data @@ -949,7 +949,7 @@ Diff: - udiff tm_scope: source.diff ace_mode: diff - codemirror_mode: diff + codemirror_mode: text/x-diff language_id: 88 Dockerfile: type: data @@ -959,7 +959,7 @@ Dockerfile: filenames: - Dockerfile ace_mode: dockerfile - codemirror_mode: dockerfile + codemirror_mode: text/x-dockerfile language_id: 89 Dogescript: type: programming @@ -978,7 +978,7 @@ Dylan: - ".intr" - ".lid" ace_mode: text - codemirror_mode: dylan + codemirror_mode: text/x-dylan language_id: 91 E: type: programming @@ -998,7 +998,7 @@ ECL: - ".eclxml" tm_scope: none ace_mode: text - codemirror_mode: ecl + codemirror_mode: text/x-ecl language_id: 93 ECLiPSe: type: programming @@ -1024,7 +1024,7 @@ EQ: - ".eq" tm_scope: source.cs ace_mode: csharp - codemirror_mode: clike + codemirror_mode: text/x-csharp language_id: 96 Eagle: type: markup @@ -1034,7 +1034,7 @@ Eagle: - ".brd" tm_scope: text.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 97 Ecere Projects: type: data @@ -1043,7 +1043,7 @@ Ecere Projects: - ".epj" tm_scope: source.json ace_mode: json - codemirror_mode: json + codemirror_mode: application/json language_id: 98 Eiffel: type: programming @@ -1051,7 +1051,7 @@ Eiffel: extensions: - ".e" ace_mode: eiffel - codemirror_mode: eiffel + codemirror_mode: text/x-eiffel language_id: 99 Elixir: type: programming @@ -1072,7 +1072,7 @@ Elm: - ".elm" tm_scope: source.elm ace_mode: elm - codemirror_mode: elm + codemirror_mode: text/x-elm language_id: 101 Emacs Lisp: type: programming @@ -1096,7 +1096,7 @@ Emacs Lisp: - ".emacs" - ".emacs.desktop" ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp language_id: 102 EmberScript: type: programming @@ -1106,7 +1106,7 @@ EmberScript: - ".emberscript" tm_scope: source.coffee ace_mode: coffee - codemirror_mode: coffeescript + codemirror_mode: text/x-coffeescript language_id: 103 Erlang: type: programming @@ -1124,7 +1124,7 @@ Erlang: - rebar.config.lock - rebar.lock ace_mode: erlang - codemirror_mode: erlang + codemirror_mode: text/x-erlang interpreters: - escript language_id: 104 @@ -1140,7 +1140,7 @@ F#: - ".fsx" tm_scope: source.fsharp ace_mode: text - codemirror_mode: mllike + codemirror_mode: text/x-fsharp language_id: 105 FLUX: type: programming @@ -1165,7 +1165,7 @@ FORTRAN: - ".fpp" tm_scope: source.fortran.modern ace_mode: text - codemirror_mode: fortran + codemirror_mode: text/x-fortran language_id: 107 Factor: type: programming @@ -1176,7 +1176,7 @@ Factor: - ".factor-boot-rc" - ".factor-rc" ace_mode: text - codemirror_mode: factor + codemirror_mode: text/x-factor language_id: 108 Fancy: type: programming @@ -1232,7 +1232,7 @@ Forth: - ".frt" - ".fs" ace_mode: forth - codemirror_mode: forth + codemirror_mode: text/x-forth language_id: 114 FreeMarker: type: programming @@ -1287,7 +1287,7 @@ GAS: - ".ms" tm_scope: source.assembly ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 120 GCC Machine Description: type: programming @@ -1295,7 +1295,7 @@ GCC Machine Description: - ".md" tm_scope: source.lisp ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp language_id: 121 GDB: type: programming @@ -1340,7 +1340,7 @@ Game Maker Language: - ".gml" tm_scope: source.c++ ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src language_id: 125 Genshi: type: programming @@ -1351,7 +1351,7 @@ Genshi: - xml+genshi - xml+kid ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 126 Gentoo Ebuild: type: programming @@ -1360,7 +1360,7 @@ Gentoo Ebuild: - ".ebuild" tm_scope: source.shell ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 127 Gentoo Eclass: type: programming @@ -1369,7 +1369,7 @@ Gentoo Eclass: - ".eclass" tm_scope: source.shell ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 128 Gettext Catalog: type: prose @@ -1390,7 +1390,7 @@ Glyph: - ".glf" tm_scope: source.tcl ace_mode: tcl - codemirror_mode: tcl + codemirror_mode: text/x-tcl language_id: 130 Gnuplot: type: programming @@ -1411,7 +1411,7 @@ Go: extensions: - ".go" ace_mode: golang - codemirror_mode: go + codemirror_mode: text/x-go language_id: 132 Golo: type: programming @@ -1457,7 +1457,7 @@ Grammatical Framework: color: "#79aa7a" tm_scope: source.haskell ace_mode: haskell - codemirror_mode: haskell + codemirror_mode: text/x-haskell language_id: 137 Graph Modeling Language: type: data @@ -1517,12 +1517,12 @@ Groff: - nroff - troff ace_mode: text - codemirror_mode: troff + codemirror_mode: text/troff language_id: 141 Groovy: type: programming ace_mode: groovy - codemirror_mode: groovy + codemirror_mode: text/x-groovy color: "#e69f56" extensions: - ".groovy" @@ -1544,7 +1544,7 @@ Groovy Server Pages: - ".gsp" tm_scope: text.html.jsp ace_mode: jsp - codemirror_mode: htmlembedded + codemirror_mode: application/x-jsp language_id: 143 HCL: type: programming @@ -1552,7 +1552,7 @@ HCL: - ".hcl" - ".tf" ace_mode: ruby - codemirror_mode: ruby + codemirror_mode: text/x-ruby tm_scope: source.ruby language_id: 144 HLSL: @@ -1569,7 +1569,7 @@ HTML: type: markup tm_scope: text.html.basic ace_mode: html - codemirror_mode: html + codemirror_mode: text/html color: "#e44b23" aliases: - xhtml @@ -1595,7 +1595,7 @@ HTML+Django: - html+jinja - htmldjango ace_mode: django - codemirror_mode: django + codemirror_mode: text/x-django language_id: 147 HTML+ECR: type: markup @@ -1606,7 +1606,7 @@ HTML+ECR: extensions: - ".ecr" ace_mode: text - codemirror_mode: htmlembedded + codemirror_mode: text/html language_id: 148 HTML+EEX: type: markup @@ -1617,7 +1617,7 @@ HTML+EEX: extensions: - ".eex" ace_mode: text - codemirror_mode: htmlembedded + codemirror_mode: text/html language_id: 149 HTML+ERB: type: markup @@ -1629,7 +1629,7 @@ HTML+ERB: - ".erb" - ".erb.deface" ace_mode: text - codemirror_mode: htmlembedded + codemirror_mode: application/x-erb language_id: 150 HTML+PHP: type: markup @@ -1638,7 +1638,7 @@ HTML+PHP: extensions: - ".phtml" ace_mode: php - codemirror_mode: php + codemirror_mode: application/x-httpd-php language_id: 151 HTTP: type: data @@ -1646,12 +1646,12 @@ HTTP: - ".http" tm_scope: source.httpspec ace_mode: text - codemirror_mode: http + codemirror_mode: message/http language_id: 152 Hack: type: programming ace_mode: php - codemirror_mode: php + codemirror_mode: application/x-httpd-php extensions: - ".hh" - ".php" @@ -1665,7 +1665,7 @@ Haml: - ".haml" - ".haml.deface" ace_mode: haml - codemirror_mode: haml + codemirror_mode: text/x-haml color: "#ECE2A9" language_id: 154 Handlebars: @@ -1680,7 +1680,6 @@ Handlebars: - ".hbs" tm_scope: text.html.handlebars ace_mode: handlebars - codemirror_mode: handlebars language_id: 155 Harbour: type: programming @@ -1699,12 +1698,12 @@ Haskell: interpreters: - runhaskell ace_mode: haskell - codemirror_mode: haskell + codemirror_mode: text/x-haskell language_id: 157 Haxe: type: programming ace_mode: haxe - codemirror_mode: haxe + codemirror_mode: text/x-haxe color: "#df7900" extensions: - ".hx" @@ -1735,7 +1734,7 @@ IDL: - ".pro" - ".dlm" ace_mode: text - codemirror_mode: idl + codemirror_mode: text/x-idl language_id: 161 IGOR Pro: type: programming @@ -1759,7 +1758,7 @@ INI: aliases: - dosini ace_mode: ini - codemirror_mode: properties + codemirror_mode: text/x-properties language_id: 163 IRC log: type: data @@ -1859,7 +1858,7 @@ JSON: tm_scope: source.json group: JavaScript ace_mode: json - codemirror_mode: javascript + codemirror_mode: application/json searchable: false extensions: - ".json" @@ -1878,13 +1877,13 @@ JSON5: - ".json5" tm_scope: source.js ace_mode: javascript - codemirror_mode: javascript + codemirror_mode: application/json language_id: 175 JSONLD: type: data group: JavaScript ace_mode: javascript - codemirror_mode: javascript + codemirror_mode: application/ld+json extensions: - ".jsonld" tm_scope: source.js @@ -1893,7 +1892,7 @@ JSONiq: color: "#40d47e" type: programming ace_mode: jsoniq - codemirror_mode: javascript + codemirror_mode: application/json extensions: - ".jq" tm_scope: source.jq @@ -1904,7 +1903,7 @@ JSX: extensions: - ".jsx" tm_scope: source.js.jsx - ace_mode: javascript + ace_mode: text/jsx language_id: 178 Jade: group: HTML @@ -1914,7 +1913,7 @@ Jade: - ".pug" tm_scope: text.jade ace_mode: jade - codemirror_mode: pug + codemirror_mode: text/x-pug language_id: 179 Jasmin: type: programming @@ -1926,7 +1925,7 @@ Jasmin: Java: type: programming ace_mode: java - codemirror_mode: clike + codemirror_mode: text/x-java color: "#b07219" extensions: - ".java" @@ -1941,13 +1940,13 @@ Java Server Pages: - ".jsp" tm_scope: text.html.jsp ace_mode: jsp - codemirror_mode: htmlembedded + codemirror_mode: application/x-jsp language_id: 182 JavaScript: type: programming tm_scope: source.js ace_mode: javascript - codemirror_mode: javascript + codemirror_mode: text/javascript color: "#f1e05a" aliases: - js @@ -1996,12 +1995,12 @@ Julia: - ".jl" color: "#a270ba" ace_mode: julia - codemirror_mode: julia + codemirror_mode: text/x-julia language_id: 184 Jupyter Notebook: type: markup ace_mode: json - codemirror_mode: javascript + codemirror_mode: application/json tm_scope: source.json color: "#DA5B0B" extensions: @@ -2031,7 +2030,7 @@ KiCad: Kit: type: markup ace_mode: html - codemirror_mode: html + codemirror_mode: text/html extensions: - ".kit" tm_scope: text.html.basic @@ -2045,7 +2044,7 @@ Kotlin: - ".kts" tm_scope: source.Kotlin ace_mode: text - codemirror_mode: kotlin + codemirror_mode: text/x-kotlin language_id: 189 LFE: type: programming @@ -2055,7 +2054,7 @@ LFE: group: Erlang tm_scope: source.lisp ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp language_id: 190 LLVM: type: programming @@ -2088,7 +2087,7 @@ LabVIEW: - ".lvproj" tm_scope: text.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 194 Lasso: type: programming @@ -2112,7 +2111,7 @@ Latte: - ".latte" tm_scope: text.html.smarty ace_mode: smarty - codemirror_mode: smarty + codemirror_mode: text/x-smarty language_id: 196 Lean: type: programming @@ -2128,7 +2127,7 @@ Less: - ".less" tm_scope: source.css.less ace_mode: less - codemirror_mode: css + codemirror_mode: text/css color: "#A1D9A1" language_id: 198 Lex: @@ -2212,7 +2211,7 @@ Literate Haskell: - ".lhs" tm_scope: text.tex.latex.haskell ace_mode: text - codemirror_mode: haskell-literate + codemirror_mode: text/x-literate-haskell language_id: 207 LiveScript: type: programming @@ -2226,7 +2225,7 @@ LiveScript: filenames: - Slakefile ace_mode: livescript - codemirror_mode: livescript + codemirror_mode: text/x-livescript language_id: 208 Logos: type: programming @@ -2247,7 +2246,7 @@ Logtalk: LookML: type: programming ace_mode: yaml - codemirror_mode: yaml + codemirror_mode: text/x-yaml color: "#652B81" extensions: - ".lookml" @@ -2263,7 +2262,7 @@ LoomScript: Lua: type: programming ace_mode: lua - codemirror_mode: lua + codemirror_mode: text/x-lua color: "#000080" extensions: - ".lua" @@ -2283,7 +2282,7 @@ M: - ".mumps" - ".m" ace_mode: text - codemirror_mode: mumps + codemirror_mode: text/x-mumps language_id: 214 tm_scope: none M4: @@ -2321,7 +2320,7 @@ MTML: - ".mtml" tm_scope: text.html.basic ace_mode: html - codemirror_mode: html + codemirror_mode: text/html language_id: 218 MUF: type: programming @@ -2331,7 +2330,7 @@ MUF: - ".m" tm_scope: none ace_mode: forth - codemirror_mode: forth + codemirror_mode: text/x-forth language_id: 219 Makefile: type: programming @@ -2360,7 +2359,7 @@ Makefile: interpreters: - make ace_mode: makefile - codemirror_mode: cmake + codemirror_mode: text/x-cmake language_id: 220 Mako: type: programming @@ -2373,7 +2372,7 @@ Mako: Markdown: type: prose ace_mode: markdown - codemirror_mode: markdown + codemirror_mode: text/x-gfm wrap: true extensions: - ".md" @@ -2407,7 +2406,7 @@ Mathematica: aliases: - mma ace_mode: text - codemirror_mode: mathematica + codemirror_mode: text/x-mathematica language_id: 224 Matlab: type: programming @@ -2418,7 +2417,7 @@ Matlab: - ".matlab" - ".m" ace_mode: matlab - codemirror_mode: octave + codemirror_mode: text/x-octave language_id: 225 Maven POM: type: data @@ -2426,7 +2425,7 @@ Maven POM: filenames: - pom.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 226 Max: type: programming @@ -2443,7 +2442,7 @@ Max: - ".pat" tm_scope: source.json ace_mode: json - codemirror_mode: javascript + codemirror_mode: application/json language_id: 227 MediaWiki: type: prose @@ -2472,7 +2471,7 @@ Metal: - ".metal" tm_scope: source.c++ ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src language_id: 230 MiniD: type: programming @@ -2493,7 +2492,7 @@ Mirah: - ".mirah" tm_scope: source.ruby ace_mode: ruby - codemirror_mode: ruby + codemirror_mode: text/x-ruby language_id: 232 Modelica: type: programming @@ -2501,7 +2500,7 @@ Modelica: - ".mo" tm_scope: source.modelica ace_mode: text - codemirror_mode: modelica + codemirror_mode: text/x-modelica language_id: 233 Modula-2: type: programming @@ -2571,7 +2570,7 @@ NSIS: - ".nsi" - ".nsh" ace_mode: text - codemirror_mode: nsis + codemirror_mode: text/x-nsis language_id: 242 Nemerle: type: programming @@ -2605,7 +2604,7 @@ NetLogo: - ".nlogo" tm_scope: source.lisp ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp language_id: 246 NewLisp: type: programming @@ -2619,7 +2618,7 @@ NewLisp: - newlisp tm_scope: source.lisp ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp language_id: 247 Nginx: type: markup @@ -2632,7 +2631,7 @@ Nginx: aliases: - nginx configuration file ace_mode: text - codemirror_mode: nginx + codemirror_mode: text/x-nginx-conf color: "#9469E9" language_id: 248 Nimrod: @@ -2680,7 +2679,7 @@ Nu: - Nukefile tm_scope: source.nu ace_mode: scheme - codemirror_mode: scheme + codemirror_mode: text/x-scheme interpreters: - nush language_id: 253 @@ -2693,13 +2692,13 @@ NumPy: - ".numsc" tm_scope: none ace_mode: text - codemirror_mode: python + codemirror_mode: text/x-python color: "#9C8AF9" language_id: 254 OCaml: type: programming ace_mode: ocaml - codemirror_mode: mllike + codemirror_mode: text/x-ocaml color: "#3be133" extensions: - ".ml" @@ -2721,7 +2720,7 @@ ObjDump: - ".objdump" tm_scope: objdump.x86asm ace_mode: assembly_x86 - codemirror_mode: gas + codemirror_mode: text/x-gas language_id: 256 Objective-C: type: programming @@ -2735,7 +2734,7 @@ Objective-C: - ".m" - ".h" ace_mode: objectivec - codemirror_mode: clike + codemirror_mode: text/x-objectivec language_id: 257 Objective-C++: type: programming @@ -2748,7 +2747,7 @@ Objective-C++: extensions: - ".mm" ace_mode: objectivec - codemirror_mode: clike + codemirror_mode: text/x-objectivec language_id: 258 Objective-J: type: programming @@ -2793,7 +2792,7 @@ OpenCL: - ".opencl" tm_scope: source.c ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-csrc language_id: 263 OpenEdge ABL: type: programming @@ -2816,7 +2815,7 @@ OpenRC runscript: - openrc-run tm_scope: source.shell ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 265 OpenSCAD: type: programming @@ -2857,7 +2856,7 @@ Oz: - ".oz" tm_scope: source.oz ace_mode: text - codemirror_mode: oz + codemirror_mode: text/x-oz language_id: 270 PAWN: type: programming @@ -2872,7 +2871,7 @@ PHP: type: programming tm_scope: text.html.php ace_mode: php - codemirror_mode: php + codemirror_mode: application/x-httpd-php color: "#4F5D95" extensions: - ".php" @@ -2895,7 +2894,7 @@ PHP: PLSQL: type: programming ace_mode: sql - codemirror_mode: sql + codemirror_mode: text/x-plsql tm_scope: none color: "#dad8d8" extensions: @@ -2910,7 +2909,7 @@ PLSQL: PLpgSQL: type: programming ace_mode: pgsql - codemirror_mode: sql + codemirror_mode: text/x-sql tm_scope: source.sql extensions: - ".sql" @@ -2987,13 +2986,13 @@ Pascal: interpreters: - instantfpc ace_mode: pascal - codemirror_mode: pascal + codemirror_mode: text/x-pascal language_id: 281 Perl: type: programming tm_scope: source.perl ace_mode: perl - codemirror_mode: perl + codemirror_mode: text/x-perl color: "#0298c3" extensions: - ".pl" @@ -3031,7 +3030,7 @@ Perl6: - perl6 tm_scope: source.perl6fe ace_mode: perl - codemirror_mode: perl + codemirror_mode: text/x-perl language_id: 283 Pickle: type: data @@ -3071,7 +3070,7 @@ Pike: Pod: type: prose ace_mode: perl - codemirror_mode: perl + codemirror_mode: text/x-perl wrap: true extensions: - ".pod" @@ -3117,7 +3116,7 @@ PowerBuilder: PowerShell: type: programming ace_mode: powershell - codemirror_mode: powershell + codemirror_mode: text/x-powershell aliases: - posh extensions: @@ -3163,7 +3162,7 @@ Protocol Buffer: - ".proto" tm_scope: source.protobuf ace_mode: protobuf - codemirror_mode: protobuf + codemirror_mode: text/x-protobuf language_id: 297 Public Key: type: data @@ -3181,7 +3180,7 @@ Puppet: filenames: - Modulefile ace_mode: text - codemirror_mode: puppet + codemirror_mode: text/x-puppet tm_scope: source.puppet language_id: 299 Pure Data: @@ -3208,12 +3207,12 @@ PureScript: - ".purs" tm_scope: source.purescript ace_mode: haskell - codemirror_mode: haskell + codemirror_mode: text/x-haskell language_id: 302 Python: type: programming ace_mode: python - codemirror_mode: python + codemirror_mode: text/x-python color: "#3572A5" extensions: - ".py" @@ -3288,12 +3287,12 @@ R: interpreters: - Rscript ace_mode: r - codemirror_mode: r + codemirror_mode: text/x-rsrc language_id: 307 RAML: type: markup ace_mode: yaml - codemirror_mode: yaml + codemirror_mode: text/x-yaml tm_scope: source.yaml color: "#77d9fb" extensions: @@ -3339,13 +3338,13 @@ RHTML: aliases: - html+ruby ace_mode: rhtml - codemirror_mode: htmlembedded + codemirror_mode: application/x-erb language_id: 312 RMarkdown: type: prose wrap: true ace_mode: markdown - codemirror_mode: markdown + codemirror_mode: text/x-gfm extensions: - ".rmd" tm_scope: source.gfm @@ -3358,7 +3357,7 @@ RPM Spec: aliases: - specfile ace_mode: text - codemirror_mode: rpm + codemirror_mode: text/x-rpm-spec language_id: 314 RUNOFF: type: markup @@ -3461,7 +3460,7 @@ RobotFramework: Rouge: type: programming ace_mode: clojure - codemirror_mode: clojure + codemirror_mode: text/x-clojure color: "#cc0088" extensions: - ".rg" @@ -3470,7 +3469,7 @@ Rouge: Ruby: type: programming ace_mode: ruby - codemirror_mode: ruby + codemirror_mode: text/x-ruby color: "#701516" aliases: - jruby @@ -3532,7 +3531,7 @@ Rust: - ".rs" - ".rs.in" ace_mode: rust - codemirror_mode: rust + codemirror_mode: text/x-rustsrc language_id: 327 SAS: type: programming @@ -3541,14 +3540,14 @@ SAS: - ".sas" tm_scope: source.sas ace_mode: text - codemirror_mode: sas + codemirror_mode: text/x-sas language_id: 328 SCSS: type: markup tm_scope: source.scss group: CSS ace_mode: scss - codemirror_mode: css + codemirror_mode: text/x-scss extensions: - ".scss" color: "#CF649A" @@ -3576,7 +3575,7 @@ SPARQL: type: data tm_scope: source.sparql ace_mode: text - codemirror_mode: sparql + codemirror_mode: application/sparql-query extensions: - ".sparql" - ".rq" @@ -3594,7 +3593,7 @@ SQL: type: data tm_scope: source.sql ace_mode: sql - codemirror_mode: sql + codemirror_mode: text/x-sql extensions: - ".sql" - ".cql" @@ -3608,7 +3607,7 @@ SQL: SQLPL: type: programming ace_mode: sql - codemirror_mode: sql + codemirror_mode: text/x-sql tm_scope: source.sql extensions: - ".sql" @@ -3619,7 +3618,7 @@ SRecode Template: color: "#348a34" tm_scope: source.lisp ace_mode: lisp - codemirror_mode: commonlisp + codemirror_mode: text/x-common-lisp extensions: - ".srt" language_id: 335 @@ -3637,7 +3636,7 @@ SVG: - ".svg" tm_scope: text.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 337 Sage: type: programming @@ -3647,7 +3646,7 @@ Sage: - ".sagews" tm_scope: source.python ace_mode: python - codemirror_mode: python + codemirror_mode: text/x-python language_id: 338 SaltStack: type: programming @@ -3659,7 +3658,7 @@ SaltStack: - ".sls" tm_scope: source.yaml.salt ace_mode: yaml - codemirror_mode: yaml + codemirror_mode: text/x-yaml language_id: 339 Sass: type: markup @@ -3668,13 +3667,13 @@ Sass: extensions: - ".sass" ace_mode: sass - codemirror_mode: sass + codemirror_mode: text/x-sass color: "#CF649A" language_id: 340 Scala: type: programming ace_mode: scala - codemirror_mode: clike + codemirror_mode: text/x-scala color: "#c22d40" extensions: - ".scala" @@ -3708,7 +3707,7 @@ Scheme: - gosh - r6rs ace_mode: scheme - codemirror_mode: scheme + codemirror_mode: text/x-scheme language_id: 343 Scilab: type: programming @@ -3760,7 +3759,7 @@ Shell: - sh - zsh ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 346 ShellSession: type: programming @@ -3771,7 +3770,7 @@ ShellSession: - console tm_scope: text.shell-session ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 347 Shen: type: programming @@ -3797,7 +3796,7 @@ Slim: - ".slim" tm_scope: text.slim ace_mode: text - codemirror_mode: slim + codemirror_mode: text/x-slim language_id: 350 Smali: type: programming @@ -3815,14 +3814,14 @@ Smalltalk: aliases: - squeak ace_mode: text - codemirror_mode: smalltalk + codemirror_mode: text/x-stsrc language_id: 352 Smarty: type: programming extensions: - ".tpl" ace_mode: smarty - codemirror_mode: smarty + codemirror_mode: text/x-smarty tm_scope: text.html.smarty language_id: 353 SourcePawn: @@ -3844,7 +3843,7 @@ Squirrel: - ".nut" tm_scope: source.c++ ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-c++src language_id: 355 Stan: type: programming @@ -3866,7 +3865,7 @@ Standard ML: - ".sml" tm_scope: source.ml ace_mode: text - codemirror_mode: mllike + codemirror_mode: text/x-ocaml language_id: 357 Stata: type: programming @@ -3887,7 +3886,6 @@ Stylus: - ".styl" tm_scope: source.stylus ace_mode: stylus - codemirror_mode: stylus language_id: 359 SubRip Text: type: data @@ -3914,7 +3912,7 @@ Swift: extensions: - ".swift" ace_mode: text - codemirror_mode: swift + codemirror_mode: text/x-swift language_id: 362 SystemVerilog: type: programming @@ -3924,7 +3922,7 @@ SystemVerilog: - ".svh" - ".vh" ace_mode: verilog - codemirror_mode: verilog + codemirror_mode: text/x-systemverilog language_id: 363 TLA: type: programming @@ -3939,7 +3937,7 @@ TOML: - ".toml" tm_scope: source.toml ace_mode: toml - codemirror_mode: toml + codemirror_mode: text/x-toml language_id: 365 TXL: type: programming @@ -3959,7 +3957,7 @@ Tcl: - tclsh - wish ace_mode: tcl - codemirror_mode: tcl + codemirror_mode: text/x-tcl language_id: 367 Tcsh: type: programming @@ -3969,13 +3967,13 @@ Tcsh: - ".csh" tm_scope: source.shell ace_mode: sh - codemirror_mode: shell + codemirror_mode: text/x-sh language_id: 368 TeX: type: markup color: "#3D6117" ace_mode: tex - codemirror_mode: stex + codemirror_mode: text/x-stex wrap: true aliases: - latex @@ -4009,7 +4007,7 @@ Terra: - ".t" color: "#00004c" ace_mode: lua - codemirror_mode: lua + codemirror_mode: text/x-lua interpreters: - lua language_id: 371 @@ -4042,7 +4040,7 @@ Text: Textile: type: prose ace_mode: textile - codemirror_mode: textile + codemirror_mode: text/x-textile wrap: true extensions: - ".textile" @@ -4070,7 +4068,7 @@ Turtle: - ".ttl" tm_scope: source.turtle ace_mode: text - codemirror_mode: turtle + codemirror_mode: text/turtle language_id: 376 Twig: type: markup @@ -4079,7 +4077,7 @@ Twig: - ".twig" tm_scope: text.html.twig ace_mode: twig - codemirror_mode: twig + codemirror_mode: text/x-twig language_id: 377 TypeScript: type: programming @@ -4091,13 +4089,13 @@ TypeScript: - ".tsx" tm_scope: source.ts ace_mode: typescript - codemirror_mode: javascript + codemirror_mode: text/x-typescript language_id: 378 Unified Parallel C: type: programming group: C ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-csrc color: "#4e3617" extensions: - ".upc" @@ -4106,7 +4104,7 @@ Unified Parallel C: Unity3D Asset: type: data ace_mode: yaml - codemirror_mode: yaml + codemirror_mode: text/x-yaml extensions: - ".anim" - ".asset" @@ -4121,7 +4119,7 @@ Uno: extensions: - ".uno" ace_mode: csharp - codemirror_mode: clike + codemirror_mode: text/x-csharp tm_scope: source.cs language_id: 381 UnrealScript: @@ -4131,7 +4129,7 @@ UnrealScript: - ".uc" tm_scope: source.java ace_mode: java - codemirror_mode: clike + codemirror_mode: text/x-java language_id: 382 UrWeb: type: programming @@ -4165,7 +4163,7 @@ VHDL: - ".vht" - ".vhw" ace_mode: vhdl - codemirror_mode: vhdl + codemirror_mode: text/x-vhdl language_id: 385 Vala: type: programming @@ -4182,7 +4180,7 @@ Verilog: - ".v" - ".veo" ace_mode: verilog - codemirror_mode: verilog + codemirror_mode: text/x-verilog language_id: 387 VimL: type: programming @@ -4220,7 +4218,7 @@ Visual Basic: - vb.net - vbnet ace_mode: text - codemirror_mode: vb + codemirror_mode: text/x-vb language_id: 389 Volt: type: programming @@ -4229,7 +4227,7 @@ Volt: - ".volt" tm_scope: source.d ace_mode: d - codemirror_mode: d + codemirror_mode: text/x-d language_id: 390 Vue: type: markup @@ -4238,7 +4236,6 @@ Vue: - ".vue" tm_scope: text.html.vue ace_mode: html - codemirror_mode: vue language_id: 391 Wavefront Material: type: data @@ -4268,7 +4265,7 @@ WebIDL: - ".webidl" tm_scope: source.webidl ace_mode: text - codemirror_mode: webidl + codemirror_mode: text/x-webidl language_id: 395 World of Warcraft Addon Data: type: data @@ -4294,12 +4291,12 @@ XC: - ".xc" tm_scope: source.xc ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-csrc language_id: 398 XML: type: data ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml aliases: - rss - xsd @@ -4408,7 +4405,7 @@ XPages: - ".xsp.metadata" tm_scope: none ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 400 XProc: type: programming @@ -4417,7 +4414,7 @@ XProc: - ".xproc" tm_scope: text.xml ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml language_id: 401 XQuery: type: programming @@ -4429,7 +4426,7 @@ XQuery: - ".xqm" - ".xqy" ace_mode: xquery - codemirror_mode: xquery + codemirror_mode: application/xquery tm_scope: source.xq language_id: 402 XS: @@ -4438,7 +4435,7 @@ XS: - ".xs" tm_scope: source.c ace_mode: c_cpp - codemirror_mode: clike + codemirror_mode: text/x-csrc language_id: 403 XSLT: type: programming @@ -4449,7 +4446,7 @@ XSLT: - ".xsl" tm_scope: text.xml.xsl ace_mode: xml - codemirror_mode: xml + codemirror_mode: text/xml color: "#EB8CEB" language_id: 404 Xojo: @@ -4486,7 +4483,7 @@ YAML: filenames: - ".clang-format" ace_mode: yaml - codemirror_mode: yaml + codemirror_mode: text/x-yaml language_id: 407 YANG: type: data @@ -4543,7 +4540,7 @@ eC: edn: type: data ace_mode: clojure - codemirror_mode: clojure + codemirror_mode: text/x-clojure extensions: - ".edn" tm_scope: source.clojure @@ -4591,11 +4588,12 @@ reStructuredText: - ".rest.txt" - ".rst.txt" ace_mode: text - codemirror_mode: rst + codemirror_mode: text/x-rst language_id: 419 wisp: type: programming ace_mode: clojure + codemirror_mode: text/x-clojure color: "#7582D1" extensions: - ".wisp" diff --git a/test/test_language.rb b/test/test_language.rb index fec4e29b..4409ae4e 100644 --- a/test/test_language.rb +++ b/test/test_language.rb @@ -350,7 +350,7 @@ class TestLanguage < Minitest::Test end def test_codemirror_mode - assert_equal 'clike', Language['C++'].codemirror_mode + assert_equal 'text/x-c++src', Language['C++'].codemirror_mode end def test_wrap