From 457a4204fc384c96894ed2ca59ba0437400d64ed Mon Sep 17 00:00:00 2001 From: Ray Yin Date: Thu, 7 Mar 2019 21:49:46 -0500 Subject: [PATCH] Fix printing of shell scripts --- src/funcs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/funcs.js b/src/funcs.js index e61df7a..0ce84a1 100644 --- a/src/funcs.js +++ b/src/funcs.js @@ -2,6 +2,11 @@ exports.resolveAliases = function(language) { const codemirror = require("codemirror/addon/runmode/runmode.node.js"); require("codemirror/mode/meta.js"); + //Resolve naming conflict between VSCode & CodeMirror for shell scripts + if (language == 'shellscript') { + language = 'shell'; + } + var table = {}; var lines = codemirror.modeInfo; for (const line of lines) {