Update ace.js to 1.2.6
This commit is contained in:
parent
ab784a82fd
commit
473df00ae5
@ -2283,6 +2283,9 @@ var TextInput = function(parentNode, host) {
|
||||
if (e.type == "compositionend" && c.range) {
|
||||
host.selection.setRange(c.range);
|
||||
}
|
||||
if (useragent.isChrome && useragent.isChrome >= 53) {
|
||||
onInput();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -6047,7 +6050,7 @@ var Mode = function() {
|
||||
};
|
||||
|
||||
(function() {
|
||||
this.$behaviour = new CstyleBehaviour();
|
||||
this.$defaultBehaviour = new CstyleBehaviour();
|
||||
|
||||
this.tokenRe = new RegExp("^["
|
||||
+ unicode.packages.L
|
||||
@ -10533,7 +10536,7 @@ var Search = function() {
|
||||
needle = lang.escapeRegExp(needle);
|
||||
|
||||
if (options.wholeWord)
|
||||
needle = "\\b" + needle + "\\b";
|
||||
needle = addWordBoundary(needle, options);
|
||||
|
||||
var modifier = options.caseSensitive ? "gm" : "gmi";
|
||||
|
||||
@ -10622,6 +10625,15 @@ var Search = function() {
|
||||
|
||||
}).call(Search.prototype);
|
||||
|
||||
function addWordBoundary(needle, options) {
|
||||
function wordBoundary(c) {
|
||||
if (/\w/.test(c) || options.regExp) return "\\b";
|
||||
return "";
|
||||
}
|
||||
return wordBoundary(needle[0]) + needle
|
||||
+ wordBoundary(needle[needle.length - 1]);
|
||||
}
|
||||
|
||||
exports.Search = Search;
|
||||
});
|
||||
|
||||
@ -10976,7 +10988,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "goToNextError",
|
||||
bindKey: bindKey("Alt-E", "Ctrl-E"),
|
||||
bindKey: bindKey("Alt-E", "F4"),
|
||||
exec: function(editor) {
|
||||
config.loadModule("ace/ext/error_marker", function(module) {
|
||||
module.showErrorMarker(editor, 1);
|
||||
@ -10986,7 +10998,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "goToPreviousError",
|
||||
bindKey: bindKey("Alt-Shift-E", "Ctrl-Shift-E"),
|
||||
bindKey: bindKey("Alt-Shift-E", "Shift-F4"),
|
||||
exec: function(editor) {
|
||||
config.loadModule("ace/ext/error_marker", function(module) {
|
||||
module.showErrorMarker(editor, -1);
|
||||
@ -11111,7 +11123,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "selecttostart",
|
||||
bindKey: bindKey("Ctrl-Shift-Home", "Command-Shift-Up"),
|
||||
bindKey: bindKey("Ctrl-Shift-Home", "Command-Shift-Home|Command-Shift-Up"),
|
||||
exec: function(editor) { editor.getSelection().selectFileStart(); },
|
||||
multiSelectAction: "forEach",
|
||||
readOnly: true,
|
||||
@ -11127,7 +11139,7 @@ exports.commands = [{
|
||||
aceCommandGroup: "fileJump"
|
||||
}, {
|
||||
name: "selectup",
|
||||
bindKey: bindKey("Shift-Up", "Shift-Up"),
|
||||
bindKey: bindKey("Shift-Up", "Shift-Up|Ctrl-Shift-P"),
|
||||
exec: function(editor) { editor.getSelection().selectUp(); },
|
||||
multiSelectAction: "forEach",
|
||||
scrollIntoView: "cursor",
|
||||
@ -11141,7 +11153,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "selecttoend",
|
||||
bindKey: bindKey("Ctrl-Shift-End", "Command-Shift-Down"),
|
||||
bindKey: bindKey("Ctrl-Shift-End", "Command-Shift-End|Command-Shift-Down"),
|
||||
exec: function(editor) { editor.getSelection().selectFileEnd(); },
|
||||
multiSelectAction: "forEach",
|
||||
readOnly: true,
|
||||
@ -11157,7 +11169,7 @@ exports.commands = [{
|
||||
aceCommandGroup: "fileJump"
|
||||
}, {
|
||||
name: "selectdown",
|
||||
bindKey: bindKey("Shift-Down", "Shift-Down"),
|
||||
bindKey: bindKey("Shift-Down", "Shift-Down|Ctrl-Shift-N"),
|
||||
exec: function(editor) { editor.getSelection().selectDown(); },
|
||||
multiSelectAction: "forEach",
|
||||
scrollIntoView: "cursor",
|
||||
@ -11185,7 +11197,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "selecttolinestart",
|
||||
bindKey: bindKey("Alt-Shift-Left", "Command-Shift-Left"),
|
||||
bindKey: bindKey("Alt-Shift-Left", "Command-Shift-Left|Ctrl-Shift-A"),
|
||||
exec: function(editor) { editor.getSelection().selectLineStart(); },
|
||||
multiSelectAction: "forEach",
|
||||
scrollIntoView: "cursor",
|
||||
@ -11199,7 +11211,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "selectleft",
|
||||
bindKey: bindKey("Shift-Left", "Shift-Left"),
|
||||
bindKey: bindKey("Shift-Left", "Shift-Left|Ctrl-Shift-B"),
|
||||
exec: function(editor) { editor.getSelection().selectLeft(); },
|
||||
multiSelectAction: "forEach",
|
||||
scrollIntoView: "cursor",
|
||||
@ -11227,7 +11239,7 @@ exports.commands = [{
|
||||
readOnly: true
|
||||
}, {
|
||||
name: "selecttolineend",
|
||||
bindKey: bindKey("Alt-Shift-Right", "Command-Shift-Right"),
|
||||
bindKey: bindKey("Alt-Shift-Right", "Command-Shift-Right|Shift-End|Ctrl-Shift-E"),
|
||||
exec: function(editor) { editor.getSelection().selectLineEnd(); },
|
||||
multiSelectAction: "forEach",
|
||||
scrollIntoView: "cursor",
|
||||
@ -12091,7 +12103,8 @@ var Editor = function(renderer, session) {
|
||||
var row = iterator.getCurrentTokenRow();
|
||||
var column = iterator.getCurrentTokenColumn();
|
||||
var range = new Range(row, column, row, column+token.value.length);
|
||||
if (session.$tagHighlight && range.compareRange(session.$backMarkers[session.$tagHighlight].range)!==0) {
|
||||
var sbm = session.$backMarkers[session.$tagHighlight];
|
||||
if (session.$tagHighlight && sbm != undefined && range.compareRange(sbm.range) !== 0) {
|
||||
session.removeMarker(session.$tagHighlight);
|
||||
session.$tagHighlight = null;
|
||||
}
|
||||
@ -19039,7 +19052,7 @@ exports.createEditSession = function(text, mode) {
|
||||
}
|
||||
exports.EditSession = EditSession;
|
||||
exports.UndoManager = UndoManager;
|
||||
exports.version = "1.2.5";
|
||||
exports.version = "1.2.6";
|
||||
});
|
||||
(function() {
|
||||
window.require(["ace/ace"], function(a) {
|
||||
|
Loading…
Reference in New Issue
Block a user