From 60f395169a8800ed739001f47cf6a2a1aaa22d40 Mon Sep 17 00:00:00 2001 From: ficristo <ficristo.work@gmail.com> Date: Tue, 19 Sep 2017 21:48:22 +0200 Subject: [PATCH] [vue mode] Support more style types --- mode/vue/vue.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mode/vue/vue.js b/mode/vue/vue.js index c0eab6b82..84cd07c9a 100644 --- a/mode/vue/vue.js +++ b/mode/vue/vue.js @@ -32,13 +32,20 @@ var tagLanguages = { script: [ ["lang", /coffee(script)?/, "coffeescript"], - ["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"] + ["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"], + ["lang", /^babel$/, "javascript"], + ["type", /^text\/babel$/, "javascript"], + ["type", /^text\/ecmascript-\d+$/, "javascript"] ], style: [ ["lang", /^stylus$/i, "stylus"], ["lang", /^sass$/i, "sass"], + ["lang", /^less$/i, "text/x-less"], + ["lang", /^scss$/i, "text/x-scss"], ["type", /^(text\/)?(x-)?styl(us)?$/i, "stylus"], - ["type", /^text\/sass/i, "sass"] + ["type", /^text\/sass/i, "sass"], + ["type", /^(text\/)?(x-)?scss$/i, "text/x-scss"], + ["type", /^(text\/)?(x-)?less$/i, "text/x-less"] ], template: [ ["lang", /^vue-template$/i, "vue"], -- GitLab