|
|
@ -1,6 +1,6 @@
|
|
|
|
const CodeMirror = require('codemirror')
|
|
|
|
const CodeMirror = require('codemirror')
|
|
|
|
|
|
|
|
|
|
|
|
CodeMirror.defineMode('nimrod', function (conf, parserConf) {
|
|
|
|
CodeMirror.defineMode('nim', function (conf, parserConf) {
|
|
|
|
var ERRORCLASS = 'error'
|
|
|
|
var ERRORCLASS = 'error'
|
|
|
|
|
|
|
|
|
|
|
|
function wordRegexp(words) {
|
|
|
|
function wordRegexp(words) {
|
|
|
@ -180,10 +180,6 @@ CodeMirror.defineMode('nimrod', function (conf, parserConf) {
|
|
|
|
'isMainModule',
|
|
|
|
'isMainModule',
|
|
|
|
'CompileDate',
|
|
|
|
'CompileDate',
|
|
|
|
'CompileTime',
|
|
|
|
'CompileTime',
|
|
|
|
'NimrodVersion',
|
|
|
|
|
|
|
|
'NimrodMajor',
|
|
|
|
|
|
|
|
'NimrodMinor',
|
|
|
|
|
|
|
|
'NimrodPatch',
|
|
|
|
|
|
|
|
'cpuEndian',
|
|
|
|
'cpuEndian',
|
|
|
|
'hostOS',
|
|
|
|
'hostOS',
|
|
|
|
'hostCPU',
|
|
|
|
'hostCPU',
|
|
|
@ -633,4 +629,4 @@ CodeMirror.defineMode('nimrod', function (conf, parserConf) {
|
|
|
|
return external
|
|
|
|
return external
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
CodeMirror.defineMIME('text/x-nimrod', 'nimrod')
|
|
|
|
CodeMirror.defineMIME('text/x-nim', 'nim')
|