Merge remote branch 'mozilla/master'
Conflicts: Makefile.dryice.js build_support/boot.js build_support/mini_require.js lib/ace/edit_session.js package.json
This commit is contained in:
parent
cbe37ed2d5
commit
58dc601000
4 changed files with 208 additions and 1057 deletions
|
|
@ -52,9 +52,10 @@ var EditSession = function(text, mode) {
|
|||
this.selection = new Selection(this);
|
||||
this.$breakpoints = [];
|
||||
this.$wrapData = [];
|
||||
this.listeners = [];
|
||||
|
||||
if (text instanceof Document) {
|
||||
this.setDocument(text)
|
||||
this.setDocument(text);
|
||||
} else {
|
||||
this.setDocument(new Document(text));
|
||||
}
|
||||
|
|
@ -244,7 +245,8 @@ var EditSession = function(text, mode) {
|
|||
};
|
||||
|
||||
this.tokenRe = /^[\w\d]+/g;
|
||||
this.nonTokenRe = /^(?:[^\w\d|[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF])+/g
|
||||
this.nonTokenRe = /^(?:[^\w\d|[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF])+/g;
|
||||
|
||||
this.getWordRange = function(row, column) {
|
||||
var line = this.getLine(row);
|
||||
|
||||
|
|
@ -506,7 +508,7 @@ var EditSession = function(text, mode) {
|
|||
return {
|
||||
rows: end ? end.row - rows[0] : 0,
|
||||
columns: end ? end.column - column : 0
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
this.remove = function(range) {
|
||||
|
|
@ -604,7 +606,7 @@ var EditSession = function(text, mode) {
|
|||
this.remove(deleteRange);
|
||||
}
|
||||
return range;
|
||||
}
|
||||
};
|
||||
|
||||
this.moveLinesUp = function(firstRow, lastRow) {
|
||||
if (firstRow <= 0) return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue