From b37a6251b8ade24a348b69fb4739a8b4b688b2ce Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Sun, 29 May 2022 16:15:41 +0200 Subject: [PATCH] fix: Added support for cjs, mjs and log modes --- lib/ace/ext/modelist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ace/ext/modelist.js b/lib/ace/ext/modelist.js index 109a419e76a..3d843b6237f 100644 --- a/lib/ace/ext/modelist.js +++ b/lib/ace/ext/modelist.js @@ -110,7 +110,7 @@ var supportedModes = { Jack: ["jack"], Jade: ["jade|pug"], Java: ["java"], - JavaScript: ["js|jsm|jsx"], + JavaScript: ["js|jsm|jsx|cjs|mjs"], JSON: ["json"], JSON5: ["json5"], JSONiq: ["jq"], @@ -125,6 +125,7 @@ var supportedModes = { Liquid: ["liquid"], Lisp: ["lisp"], LiveScript: ["ls"], + Log: ["log"], LogiQL: ["logic|lql"], LSL: ["lsl"], Lua: ["lua"],