Skip to content

Commit 2eb94e5

Browse files
BigBlueHatmarijnh
authored andcommitted
[vue mode] Fix media type
Demo had the correct `text/x-vue` defineMIME was using `script/x-vue` There is, however, no `script/*` top-level media type: http://www.iana.org/assignments/media-types/media-types.xhtml Left, old `script/x-vue` for backwards compatibility.
1 parent 0164f02 commit 2eb94e5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mode/meta.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
{name: "Velocity", mime: "text/velocity", mode: "velocity", ext: ["vtl"]},
155155
{name: "Verilog", mime: "text/x-verilog", mode: "verilog", ext: ["v"]},
156156
{name: "VHDL", mime: "text/x-vhdl", mode: "vhdl", ext: ["vhd", "vhdl"]},
157+
{name: "Vue.js Component", mimes: ["script/x-vue", "text/x-vue"], mode: "vue", ext: ["vue"]},
157158
{name: "XML", mimes: ["application/xml", "text/xml"], mode: "xml", ext: ["xml", "xsl", "xsd"], alias: ["rss", "wsdl", "xsd"]},
158159
{name: "XQuery", mime: "application/xquery", mode: "xquery", ext: ["xy", "xquery"]},
159160
{name: "Yacas", mime: "text/x-yacas", mode: "yacas", ext: ["ys"]},

mode/vue/vue.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@
6666
}, "htmlmixed", "xml", "javascript", "coffeescript", "css", "sass", "stylus", "pug", "handlebars");
6767

6868
CodeMirror.defineMIME("script/x-vue", "vue");
69+
CodeMirror.defineMIME("text/x-vue", "vue");
6970
});

0 commit comments

Comments
 (0)