|
|
@ -86,7 +86,7 @@ BI.CodeEditor = BI.inherit(BI.Single, { |
|
|
|
this.editor.replaceSelection(param); |
|
|
|
this.editor.replaceSelection(param); |
|
|
|
var to = this.editor.getCursor(); |
|
|
|
var to = this.editor.getCursor(); |
|
|
|
var options = {className: 'param', atomic: true}; |
|
|
|
var options = {className: 'param', atomic: true}; |
|
|
|
if(BI.isNotNull(param.match(/<!.*!>/))){ |
|
|
|
if(BI.isNotNull(param.match(/^<!.*!>$/))){ |
|
|
|
options.className = 'error-param'; |
|
|
|
options.className = 'error-param'; |
|
|
|
} |
|
|
|
} |
|
|
|
this.editor.markText(from, to, options); |
|
|
|
this.editor.markText(from, to, options); |
|
|
|