Bug 1515951 - [release 112] Enable Syntax Highlighting for ClojureScript (#7584). r=bhackett
authorJason Laster <jlaster@mozilla.com>
Sun, 23 Dec 2018 14:46:40 -0500
changeset 452005 ea2807921cc3c593661f611d6b7d4f31f145b147
parent 452004 10dc48aa3b1e99cde812866d35e2c8f6ef39f942
child 452006 8ded394acd8153647264a16e4883f46fd7345dd5
push id35278
push useraiakab@mozilla.com
push dateThu, 27 Dec 2018 21:57:04 +0000
treeherdermozilla-central@a77e8f3efc4c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs1515951
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1515951 - [release 112] Enable Syntax Highlighting for ClojureScript (#7584). r=bhackett
devtools/client/debugger/new/dist/parser-worker.js
devtools/client/debugger/new/src/utils/source.js
devtools/client/shared/source-map/index.js
devtools/client/shared/source-map/worker.js
--- a/devtools/client/debugger/new/dist/parser-worker.js
+++ b/devtools/client/debugger/new/dist/parser-worker.js
@@ -23242,17 +23242,18 @@ const contentMap = {
   jsm: "text/javascript",
   mjs: "text/javascript",
   ts: "text/typescript",
   tsx: "text/typescript-jsx",
   jsx: "text/jsx",
   vue: "text/vue",
   coffee: "text/coffeescript",
   elm: "text/elm",
-  cljs: "text/x-clojure"
+  cljc: "text/x-clojure",
+  cljs: "text/x-clojurescript"
 };
 
 /**
  * Returns the content type for the specified URL.  If no specific
  * content type can be determined, "text/plain" is returned.
  *
  * @return String
  *         The content type.
--- a/devtools/client/debugger/new/src/utils/source.js
+++ b/devtools/client/debugger/new/src/utils/source.js
@@ -260,16 +260,17 @@ const contentTypeModeMap = {
   "text/coffeescript": { name: "coffeescript" },
   "text/typescript-jsx": {
     name: "jsx",
     base: { name: "javascript", typescript: true }
   },
   "text/jsx": { name: "jsx" },
   "text/x-elm": { name: "elm" },
   "text/x-clojure": { name: "clojure" },
+  "text/x-clojurescript": { name: "clojure" },
   "text/wasm": { name: "text" },
   "text/html": { name: "htmlmixed" }
 };
 
 export function getSourcePath(url: string) {
   if (!url) {
     return "";
   }
--- a/devtools/client/shared/source-map/index.js
+++ b/devtools/client/shared/source-map/index.js
@@ -549,17 +549,18 @@ const contentMap = {
   jsm: "text/javascript",
   mjs: "text/javascript",
   ts: "text/typescript",
   tsx: "text/typescript-jsx",
   jsx: "text/jsx",
   vue: "text/vue",
   coffee: "text/coffeescript",
   elm: "text/elm",
-  cljs: "text/x-clojure"
+  cljc: "text/x-clojure",
+  cljs: "text/x-clojurescript"
 };
 
 /**
  * Returns the content type for the specified URL.  If no specific
  * content type can be determined, "text/plain" is returned.
  *
  * @return String
  *         The content type.
--- a/devtools/client/shared/source-map/worker.js
+++ b/devtools/client/shared/source-map/worker.js
@@ -478,17 +478,18 @@ const contentMap = {
   jsm: "text/javascript",
   mjs: "text/javascript",
   ts: "text/typescript",
   tsx: "text/typescript-jsx",
   jsx: "text/jsx",
   vue: "text/vue",
   coffee: "text/coffeescript",
   elm: "text/elm",
-  cljs: "text/x-clojure"
+  cljc: "text/x-clojure",
+  cljs: "text/x-clojurescript"
 };
 
 /**
  * Returns the content type for the specified URL.  If no specific
  * content type can be determined, "text/plain" is returned.
  *
  * @return String
  *         The content type.