From 0514f28ea6776911f093ba559b9bef11401f05e4 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke <marijnh@gmail.com> Date: Mon, 7 Mar 2016 15:41:26 +0100 Subject: [PATCH] [troff mode] Remove bogus MIME string Issue #3869 --- mode/meta.js | 2 +- mode/troff/troff.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mode/meta.js b/mode/meta.js index 8852e7cd..3cb9de21 100644 --- a/mode/meta.js +++ b/mode/meta.js @@ -138,7 +138,7 @@ {name: "Tiki wiki", mime: "text/tiki", mode: "tiki"}, {name: "TOML", mime: "text/x-toml", mode: "toml", ext: ["toml"]}, {name: "Tornado", mime: "text/x-tornado", mode: "tornado"}, - {name: "troff", mime: "troff", mode: "troff", ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]}, + {name: "troff", mime: "text/troff", mode: "troff", ext: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]}, {name: "TTCN", mime: "text/x-ttcn", mode: "ttcn", ext: ["ttcn", "ttcn3", "ttcnpp"]}, {name: "TTCN_CFG", mime: "text/x-ttcn-cfg", mode: "ttcn-cfg", ext: ["cfg"]}, {name: "Turtle", mime: "text/turtle", mode: "turtle", ext: ["ttl"]}, diff --git a/mode/troff/troff.js b/mode/troff/troff.js index 7e043a11..86154b6e 100644 --- a/mode/troff/troff.js +++ b/mode/troff/troff.js @@ -80,6 +80,5 @@ CodeMirror.defineMode('troff', function() { CodeMirror.defineMIME('text/troff', 'troff'); CodeMirror.defineMIME('text/x-troff', 'troff'); CodeMirror.defineMIME('application/x-troff', 'troff'); -CodeMirror.defineMIME('troff', 'troff'); }); -- GitLab