|
32 | 32 | var tagLanguages = { |
33 | 33 | script: [ |
34 | 34 | ["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"] |
36 | 39 | ], |
37 | 40 | style: [ |
38 | 41 | ["lang", /^stylus$/i, "stylus"], |
39 | 42 | ["lang", /^sass$/i, "sass"], |
| 43 | + ["lang", /^less$/i, "text/x-less"], |
| 44 | + ["lang", /^scss$/i, "text/x-scss"], |
40 | 45 | ["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"] |
42 | 49 | ], |
43 | 50 | template: [ |
44 | 51 | ["lang", /^vue-template$/i, "vue"], |
|
0 commit comments