diff --git a/lib/custom/modes/nimrod.js b/lib/custom/modes/nimrod.js index 95ec81c..327d840 100755 --- a/lib/custom/modes/nimrod.js +++ b/lib/custom/modes/nimrod.js @@ -8,7 +8,9 @@ CodeMirror.defineMode('nimrod', function(conf, parserConf) { return new RegExp('^((' + words.join(')|(') + '))\\b') } - var operators = new RegExp('\\=\\+\\-\\*\\/\\<\\>\\@\\$\\~\\&\\%\\|\\!\\?\\^\\:\\\\') + var ops = ['=', '+', '-', '*', '/', '<', '>', '@', '$', '~', '&', '%', '|', + '?', '^', ':', '\\', '[', ']', '(', ')', ',', '{', '}', '.\\.', '.'] + var operators = new RegExp(ops.map(function(op) { return '\\' + op; }).join('|')) var identifiers = new RegExp('^[_A-Za-z][_A-Za-z0-9]*') var commonkeywords = [