Skip to content

Commit

Permalink
Merge pull request desktop#3610 from mtkp/add-clojurescript
Browse files Browse the repository at this point in the history
highlight .cljc, .cljs, .edn with clojure highlighter
  • Loading branch information
joshaber authored Dec 14, 2017
2 parents 23c470e + 64d1a20 commit 724cf61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/highlighter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ extensionMIMEMap.set('.rb', 'text/x-ruby')

import 'codemirror/mode/clojure/clojure'
extensionMIMEMap.set('.clj', 'text/x-clojure')
extensionMIMEMap.set('.cljc', 'text/x-clojure')
extensionMIMEMap.set('.cljs', 'text/x-clojure')
extensionMIMEMap.set('.edn', 'text/x-clojure')

function guessMimeType(contents: string) {
if (contents.startsWith('<?xml')) {
Expand Down

0 comments on commit 724cf61

Please sign in to comment.