Skip to content

Commit 60f3951

Browse files
ficristomarijnh
authored andcommitted
[vue mode] Support more style types
1 parent 282cf36 commit 60f3951

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

mode/vue/vue.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,20 @@
3232
var tagLanguages = {
3333
script: [
3434
["lang", /coffee(script)?/, "coffeescript"],
35-
["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"]
35+
["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"],
36+
["lang", /^babel$/, "javascript"],
37+
["type", /^text\/babel$/, "javascript"],
38+
["type", /^text\/ecmascript-\d+$/, "javascript"]
3639
],
3740
style: [
3841
["lang", /^stylus$/i, "stylus"],
3942
["lang", /^sass$/i, "sass"],
43+
["lang", /^less$/i, "text/x-less"],
44+
["lang", /^scss$/i, "text/x-scss"],
4045
["type", /^(text\/)?(x-)?styl(us)?$/i, "stylus"],
41-
["type", /^text\/sass/i, "sass"]
46+
["type", /^text\/sass/i, "sass"],
47+
["type", /^(text\/)?(x-)?scss$/i, "text/x-scss"],
48+
["type", /^(text\/)?(x-)?less$/i, "text/x-less"]
4249
],
4350
template: [
4451
["lang", /^vue-template$/i, "vue"],

0 commit comments

Comments
 (0)