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')