From 9d9280d0ee301dc447cb75138399391bc0ae9c3a Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Sat, 2 May 2020 15:13:52 -0700 Subject: [PATCH] rename nimrod to nim (#997) --- lib/constants.js | 2 +- lib/custom/modes/{nimrod.js => nim.js} | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) rename lib/custom/modes/{nimrod.js => nim.js} (98%) diff --git a/lib/constants.js b/lib/constants.js index 2a0e238..e2b1794 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -851,7 +851,7 @@ export const LANGUAGES = [ }, { name: 'Nim', - mode: 'nimrod', + mode: 'nim', custom: true, highlight: true, }, diff --git a/lib/custom/modes/nimrod.js b/lib/custom/modes/nim.js similarity index 98% rename from lib/custom/modes/nimrod.js rename to lib/custom/modes/nim.js index 0d6e925..8777520 100755 --- a/lib/custom/modes/nimrod.js +++ b/lib/custom/modes/nim.js @@ -1,6 +1,6 @@ const CodeMirror = require('codemirror') -CodeMirror.defineMode('nimrod', function (conf, parserConf) { +CodeMirror.defineMode('nim', function (conf, parserConf) { var ERRORCLASS = 'error' function wordRegexp(words) { @@ -180,10 +180,6 @@ CodeMirror.defineMode('nimrod', function (conf, parserConf) { 'isMainModule', 'CompileDate', 'CompileTime', - 'NimrodVersion', - 'NimrodMajor', - 'NimrodMinor', - 'NimrodPatch', 'cpuEndian', 'hostOS', 'hostCPU', @@ -633,4 +629,4 @@ CodeMirror.defineMode('nimrod', function (conf, parserConf) { return external }) -CodeMirror.defineMIME('text/x-nimrod', 'nimrod') +CodeMirror.defineMIME('text/x-nim', 'nim')