|
|
|
@ -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 = [
|
|
|
|
|