BUG10870 - "A better trigger editor is needed"
error: The current trigger editor has no syntax check Sol: Using CodeMirror as well as XMl editor, will give trigger editor the feature that it needs. + removing auto tabs at code begin.
This commit is contained in:
@@ -77,7 +77,11 @@ var PHPParser = Editor.Parser = (function() {
|
||||
function indentPHP(lexical) {
|
||||
return function(firstChars) {
|
||||
var firstChar = firstChars && firstChars.charAt(0), type = lexical.type;
|
||||
var closing = firstChar == type;
|
||||
if (type == "block") {
|
||||
var closing = true;
|
||||
} else {
|
||||
var closing = firstChar == type;
|
||||
}
|
||||
if (type == "form" && firstChar == "{")
|
||||
return lexical.indented;
|
||||
else if (type == "stat" || type == "form")
|
||||
|
||||
Reference in New Issue
Block a user