From 0f2aa887a9e90426fd017e9ad3cea53166ad565c Mon Sep 17 00:00:00 2001 From: Jason Laster Date: Sun, 23 Dec 2018 14:46:40 -0500 Subject: [PATCH] Bug 1515951 - [release 112] Enable Syntax Highlighting for ClojureScript (#7584). r=bhackett --- devtools/client/debugger/new/dist/parser-worker.js | 3 ++- devtools/client/debugger/new/src/utils/source.js | 1 + devtools/client/shared/source-map/index.js | 3 ++- devtools/client/shared/source-map/worker.js | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/devtools/client/debugger/new/dist/parser-worker.js b/devtools/client/debugger/new/dist/parser-worker.js index d29bd616bcb9..9347aadfa401 100644 --- a/devtools/client/debugger/new/dist/parser-worker.js +++ b/devtools/client/debugger/new/dist/parser-worker.js @@ -23247,7 +23247,8 @@ const contentMap = { vue: "text/vue", coffee: "text/coffeescript", elm: "text/elm", - cljs: "text/x-clojure" + cljc: "text/x-clojure", + cljs: "text/x-clojurescript" }; /** diff --git a/devtools/client/debugger/new/src/utils/source.js b/devtools/client/debugger/new/src/utils/source.js index 327a5677a7eb..372699ded7f4 100644 --- a/devtools/client/debugger/new/src/utils/source.js +++ b/devtools/client/debugger/new/src/utils/source.js @@ -265,6 +265,7 @@ const contentTypeModeMap = { "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" } }; diff --git a/devtools/client/shared/source-map/index.js b/devtools/client/shared/source-map/index.js index 9fee1f28417d..9786ab034b93 100644 --- a/devtools/client/shared/source-map/index.js +++ b/devtools/client/shared/source-map/index.js @@ -554,7 +554,8 @@ const contentMap = { vue: "text/vue", coffee: "text/coffeescript", elm: "text/elm", - cljs: "text/x-clojure" + cljc: "text/x-clojure", + cljs: "text/x-clojurescript" }; /** diff --git a/devtools/client/shared/source-map/worker.js b/devtools/client/shared/source-map/worker.js index d0a5ed4d3f9a..fe31d9ce917d 100644 --- a/devtools/client/shared/source-map/worker.js +++ b/devtools/client/shared/source-map/worker.js @@ -483,7 +483,8 @@ const contentMap = { vue: "text/vue", coffee: "text/coffeescript", elm: "text/elm", - cljs: "text/x-clojure" + cljc: "text/x-clojure", + cljs: "text/x-clojurescript" }; /**