updated build dir
This commit is contained in:
parent
a53d984016
commit
f78fb12086
63 changed files with 996 additions and 1610 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
1
build/demo/kitchen-sink/kitchen-sink.js
Normal file
1
build/demo/kitchen-sink/kitchen-sink.js
Normal file
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
|
@ -6,18 +6,18 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<title>Ace Kitchen Sink</title>
|
<title>Ace Kitchen Sink</title>
|
||||||
<meta name="author" content="Fabian Jakobs">
|
<meta name="author" content="Fabian Jakobs">
|
||||||
<link rel="stylesheet" href="demo/styles.css" type="text/css" media="screen" charset="utf-8">
|
<link rel="stylesheet" href="demo/kitchen-sink/styles.css" type="text/css" media="screen" charset="utf-8">
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
Ace
|
Ace
|
||||||
version 0.2.0
|
version 0.2.0
|
||||||
commit 6d4df6c5208b7ed4b10caf48dfd3d8c806406d04
|
commit 375511c6d03e1e270e641cc6a432bec493b39055
|
||||||
|
|
||||||
|
|
||||||
-->
|
-->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<img id="logo" src="demo/logo.png">
|
<img id="logo" src="demo/kitchen-sink/logo.png">
|
||||||
<table id="controls">
|
<table id="controls">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -190,20 +190,20 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var require = {
|
var require = {
|
||||||
paths: {
|
paths: {
|
||||||
demo: "../demo",
|
demo: "..",
|
||||||
ace: "../lib/ace",
|
ace: "../../lib/ace",
|
||||||
cockpit: "../support/cockpit/lib/cockpit",
|
cockpit: "../../support/cockpit/lib/cockpit",
|
||||||
pilot: "../support/pilot/lib/pilot"
|
pilot: "../../support/pilot/lib/pilot"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script src="demo/require.js" data-main="demo/boot" type="text/javascript" charset="utf-8"></script>
|
<script src="demo/kitchen-sink/require.js" data-main="demo/kitchen-sink/boot" type="text/javascript" charset="utf-8"></script>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
<script src="demo/kitchen-sink-uncompressed.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
|
<script src="demo/kitchen-sink/kitchen-sink-uncompressed.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
require("demo/boot");
|
require("demo/kitchen-sink/boot");
|
||||||
</script>
|
</script>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5347,11 +5347,11 @@ exports.setCssClass = function(node, className, include) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function hasCssString(id, doc) {
|
exports.hasCssString = function(id, doc) {
|
||||||
var index = 0, sheets;
|
var index = 0, sheets;
|
||||||
doc = doc || document
|
doc = doc || document
|
||||||
|
|
||||||
if ((sheets = doc.styleSheets)) {
|
if (doc.createStyleSheet && (sheets = doc.styleSheets)) {
|
||||||
while (index < sheets.length)
|
while (index < sheets.length)
|
||||||
if (sheets[index++].title === id) return true;
|
if (sheets[index++].title === id) return true;
|
||||||
} else if ((sheets = doc.getElementsByTagName("style"))) {
|
} else if ((sheets = doc.getElementsByTagName("style"))) {
|
||||||
|
|
@ -5361,23 +5361,28 @@ function hasCssString(id, doc) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.hasCssString = hasCssString;
|
|
||||||
|
|
||||||
exports.importCssString = function importCssString(cssText, id, doc) {
|
exports.importCssString = function importCssString(cssText, id, doc) {
|
||||||
doc = doc || document;
|
doc = doc || document;
|
||||||
// If style is already imported return immediately.
|
// If style is already imported return immediately.
|
||||||
if (id && hasCssString(id, doc)) return null;
|
if (id && exports.hasCssString(id, doc))
|
||||||
|
return null;
|
||||||
|
|
||||||
|
var style;
|
||||||
|
|
||||||
if (doc.createStyleSheet) {
|
if (doc.createStyleSheet) {
|
||||||
var sheet = doc.createStyleSheet();
|
style = doc.createStyleSheet();
|
||||||
sheet.cssText = cssText;
|
style.cssText = cssText;
|
||||||
if (id) sheet.title = id;
|
if (id)
|
||||||
|
style.title = id;
|
||||||
} else {
|
} else {
|
||||||
var style = doc.createElementNS ?
|
style = doc.createElementNS ?
|
||||||
doc.createElementNS(XHTML_NS, "style") :
|
doc.createElementNS(XHTML_NS, "style") :
|
||||||
doc.createElement("style");
|
doc.createElement("style");
|
||||||
|
|
||||||
if (id) style.id = id;
|
|
||||||
style.appendChild(doc.createTextNode(cssText));
|
style.appendChild(doc.createTextNode(cssText));
|
||||||
|
if (id)
|
||||||
|
style.id = id;
|
||||||
|
|
||||||
var head = doc.getElementsByTagName("head")[0] || doc.documentElement;
|
var head = doc.getElementsByTagName("head")[0] || doc.documentElement;
|
||||||
head.appendChild(style);
|
head.appendChild(style);
|
||||||
|
|
@ -6660,7 +6665,7 @@ var Editor =function(renderer, session) {
|
||||||
indentString = lang.stringRepeat(" ", count);
|
indentString = lang.stringRepeat(" ", count);
|
||||||
} else
|
} else
|
||||||
indentString = "\t";
|
indentString = "\t";
|
||||||
return this.onTextInput(indentString);
|
return this.onTextInput(indentString, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -7421,6 +7426,7 @@ var MouseHandler = function(editor) {
|
||||||
|
|
||||||
var mouseTarget = editor.renderer.getMouseEventTarget();
|
var mouseTarget = editor.renderer.getMouseEventTarget();
|
||||||
event.addListener(mouseTarget, "mousedown", this.onMouseDown.bind(this));
|
event.addListener(mouseTarget, "mousedown", this.onMouseDown.bind(this));
|
||||||
|
event.addListener(mouseTarget, "click", this.onMouseClick.bind(this));
|
||||||
event.addListener(mouseTarget, "mousemove", this.onMouseMove.bind(this));
|
event.addListener(mouseTarget, "mousemove", this.onMouseMove.bind(this));
|
||||||
event.addMultiMouseDownListener(mouseTarget, 0, 2, 500, this.onMouseDoubleClick.bind(this));
|
event.addMultiMouseDownListener(mouseTarget, 0, 2, 500, this.onMouseDoubleClick.bind(this));
|
||||||
event.addMultiMouseDownListener(mouseTarget, 0, 3, 600, this.onMouseTripleClick.bind(this));
|
event.addMultiMouseDownListener(mouseTarget, 0, 3, 600, this.onMouseTripleClick.bind(this));
|
||||||
|
|
@ -7442,6 +7448,10 @@ var MouseHandler = function(editor) {
|
||||||
this.onMouseDown = function(e) {
|
this.onMouseDown = function(e) {
|
||||||
this.editor._dispatchEvent("mousedown", new MouseEvent(e, this.editor));
|
this.editor._dispatchEvent("mousedown", new MouseEvent(e, this.editor));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.onMouseClick = function(e) {
|
||||||
|
this.editor._dispatchEvent("click", new MouseEvent(e, this.editor));
|
||||||
|
};
|
||||||
|
|
||||||
this.onMouseMove = function(e) {
|
this.onMouseMove = function(e) {
|
||||||
// optimization, because mousemove doesn't have a default handler.
|
// optimization, because mousemove doesn't have a default handler.
|
||||||
|
|
@ -7605,18 +7615,18 @@ function DefaultHandlers(editor) {
|
||||||
mousePageY = event.getDocumentY(e);
|
mousePageY = event.getDocumentY(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
var onMouseSelectionEnd = function() {
|
var onMouseSelectionEnd = function(e) {
|
||||||
clearInterval(timerId);
|
clearInterval(timerId);
|
||||||
if (state == STATE_UNKNOWN)
|
if (state == STATE_UNKNOWN)
|
||||||
onStartSelect(pos);
|
onStartSelect(pos);
|
||||||
else if (state == STATE_DRAG)
|
else if (state == STATE_DRAG)
|
||||||
onMouseDragSelectionEnd();
|
onMouseDragSelectionEnd(e);
|
||||||
|
|
||||||
_self.$clickSelection = null;
|
_self.$clickSelection = null;
|
||||||
state = STATE_UNKNOWN;
|
state = STATE_UNKNOWN;
|
||||||
};
|
};
|
||||||
|
|
||||||
var onMouseDragSelectionEnd = function() {
|
var onMouseDragSelectionEnd = function(e) {
|
||||||
dom.removeCssClass(editor.container, "ace_dragging");
|
dom.removeCssClass(editor.container, "ace_dragging");
|
||||||
editor.session.removeMarker(dragSelectionMarker);
|
editor.session.removeMarker(dragSelectionMarker);
|
||||||
|
|
||||||
|
|
@ -7636,7 +7646,12 @@ function DefaultHandlers(editor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.clearSelection();
|
editor.clearSelection();
|
||||||
var newRange = editor.moveText(dragRange, dragCursor);
|
if (e && (e.ctrlKey || e.altKey)) {
|
||||||
|
var session = editor.session;
|
||||||
|
var newRange = session.insert(dragCursor, session.getTextRange(dragRange));
|
||||||
|
} else {
|
||||||
|
var newRange = editor.moveText(dragRange, dragCursor);
|
||||||
|
}
|
||||||
if (!newRange) {
|
if (!newRange) {
|
||||||
dragCursor = null;
|
dragCursor = null;
|
||||||
return;
|
return;
|
||||||
|
|
@ -8495,6 +8510,35 @@ canon.addCommand({
|
||||||
exec: function(env, args, request) { env.editor.transposeLetters(); }
|
exec: function(env, args, request) { env.editor.transposeLetters(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
canon.addCommand({
|
||||||
|
name: "fold",
|
||||||
|
bindKey: bindKey("Alt-L", "Alt-L"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.toggleFold(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
canon.addCommand({
|
||||||
|
name: "unfold",
|
||||||
|
bindKey: bindKey("Alt-Shift-L", "Alt-Shift-L"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.toggleFold(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
canon.addCommand({
|
||||||
|
name: "foldall",
|
||||||
|
bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.foldAll();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
canon.addCommand({
|
||||||
|
name: "unfoldall",
|
||||||
|
bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.unFoldAll();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
/* vim:ts=4:sts=4:sw=4:
|
/* vim:ts=4:sts=4:sw=4:
|
||||||
* ***** BEGIN LICENSE BLOCK *****
|
* ***** BEGIN LICENSE BLOCK *****
|
||||||
|
|
@ -8589,7 +8633,7 @@ var EditSession = function(text, mode) {
|
||||||
this.doc = doc;
|
this.doc = doc;
|
||||||
doc.on("change", this.onChange.bind(this));
|
doc.on("change", this.onChange.bind(this));
|
||||||
this.on("changeFold", this.onChangeFold.bind(this));
|
this.on("changeFold", this.onChangeFold.bind(this));
|
||||||
|
|
||||||
if (this.bgTokenizer) {
|
if (this.bgTokenizer) {
|
||||||
this.bgTokenizer.setDocument(this.getDocument());
|
this.bgTokenizer.setDocument(this.getDocument());
|
||||||
this.bgTokenizer.start(0);
|
this.bgTokenizer.start(0);
|
||||||
|
|
@ -8634,7 +8678,7 @@ var EditSession = function(text, mode) {
|
||||||
folds: removedFolds
|
folds: removedFolds
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$informUndoManager.schedule();
|
this.$informUndoManager.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -8646,7 +8690,7 @@ var EditSession = function(text, mode) {
|
||||||
this.doc.setValue(text);
|
this.doc.setValue(text);
|
||||||
this.selection.moveCursorTo(0, 0);
|
this.selection.moveCursorTo(0, 0);
|
||||||
this.selection.clearSelection();
|
this.selection.clearSelection();
|
||||||
|
|
||||||
this.$resetRowCache(0);
|
this.$resetRowCache(0);
|
||||||
this.$deltas = [];
|
this.$deltas = [];
|
||||||
this.$deltasDoc = [];
|
this.$deltasDoc = [];
|
||||||
|
|
@ -8671,6 +8715,27 @@ var EditSession = function(text, mode) {
|
||||||
return this.bgTokenizer.getTokens(firstRow, lastRow);
|
return this.bgTokenizer.getTokens(firstRow, lastRow);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.getTokenAt = function(row, column) {
|
||||||
|
var tokens = this.bgTokenizer.getTokens(row, row)[0].tokens;
|
||||||
|
var token, c = 0;
|
||||||
|
if (column == null) {
|
||||||
|
i = tokens.length - 1;
|
||||||
|
c = this.getLine(row).length;
|
||||||
|
} else {
|
||||||
|
for (var i = 0; i < tokens.length; i++) {
|
||||||
|
c += tokens[i].value.length;
|
||||||
|
if (c >= column)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
token = tokens[i];
|
||||||
|
if (!token)
|
||||||
|
return null;
|
||||||
|
token.index = i;
|
||||||
|
token.start = c - token.value.length;
|
||||||
|
return token;
|
||||||
|
};
|
||||||
|
|
||||||
this.setUndoManager = function(undoManager) {
|
this.setUndoManager = function(undoManager) {
|
||||||
this.$undoManager = undoManager;
|
this.$undoManager = undoManager;
|
||||||
this.$resetRowCache(0);
|
this.$resetRowCache(0);
|
||||||
|
|
@ -8685,7 +8750,7 @@ var EditSession = function(text, mode) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.$syncInformUndoManager = function() {
|
this.$syncInformUndoManager = function() {
|
||||||
self.$informUndoManager.cancel();
|
self.$informUndoManager.cancel();
|
||||||
|
|
||||||
if (self.$deltasFold.length) {
|
if (self.$deltasFold.length) {
|
||||||
self.$deltas.push({
|
self.$deltas.push({
|
||||||
group: "fold",
|
group: "fold",
|
||||||
|
|
@ -8693,7 +8758,7 @@ var EditSession = function(text, mode) {
|
||||||
});
|
});
|
||||||
self.$deltasFold = [];
|
self.$deltasFold = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.$deltasDoc.length) {
|
if (self.$deltasDoc.length) {
|
||||||
self.$deltas.push({
|
self.$deltas.push({
|
||||||
group: "doc",
|
group: "doc",
|
||||||
|
|
@ -8701,14 +8766,14 @@ var EditSession = function(text, mode) {
|
||||||
});
|
});
|
||||||
self.$deltasDoc = [];
|
self.$deltasDoc = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.$deltas.length > 0) {
|
if (self.$deltas.length > 0) {
|
||||||
undoManager.execute({
|
undoManager.execute({
|
||||||
action: "aceupdate",
|
action: "aceupdate",
|
||||||
args: [self.$deltas, self]
|
args: [self.$deltas, self]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.$deltas = [];
|
self.$deltas = [];
|
||||||
}
|
}
|
||||||
this.$informUndoManager =
|
this.$informUndoManager =
|
||||||
|
|
@ -8977,7 +9042,7 @@ var EditSession = function(text, mode) {
|
||||||
|
|
||||||
this.bgTokenizer.setDocument(this.getDocument());
|
this.bgTokenizer.setDocument(this.getDocument());
|
||||||
this.bgTokenizer.start(0);
|
this.bgTokenizer.start(0);
|
||||||
|
|
||||||
this.tokenRe = mode.tokenRe;
|
this.tokenRe = mode.tokenRe;
|
||||||
this.nonTokenRe = mode.nonTokenRe;
|
this.nonTokenRe = mode.nonTokenRe;
|
||||||
|
|
||||||
|
|
@ -9392,7 +9457,7 @@ var EditSession = function(text, mode) {
|
||||||
this.$clipRowToDocument = function(row) {
|
this.$clipRowToDocument = function(row) {
|
||||||
return Math.max(0, Math.min(row, this.doc.getLength()-1));
|
return Math.max(0, Math.min(row, this.doc.getLength()-1));
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$clipPositionToDocument = function(row, column) {
|
this.$clipPositionToDocument = function(row, column) {
|
||||||
column = Math.max(0, column);
|
column = Math.max(0, column);
|
||||||
|
|
||||||
|
|
@ -9408,7 +9473,7 @@ var EditSession = function(text, mode) {
|
||||||
column = Math.min(this.doc.getLine(row).length, column);
|
column = Math.min(this.doc.getLine(row).length, column);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
row: row,
|
row: row,
|
||||||
column: column
|
column: column
|
||||||
|
|
@ -9674,6 +9739,7 @@ var EditSession = function(text, mode) {
|
||||||
CHAR_EXT = 2,
|
CHAR_EXT = 2,
|
||||||
PLACEHOLDER_START = 3,
|
PLACEHOLDER_START = 3,
|
||||||
PLACEHOLDER_BODY = 4,
|
PLACEHOLDER_BODY = 4,
|
||||||
|
PUNCTUATION = 9,
|
||||||
SPACE = 10,
|
SPACE = 10,
|
||||||
TAB = 11,
|
TAB = 11,
|
||||||
TAB_SPACE = 12;
|
TAB_SPACE = 12;
|
||||||
|
|
@ -9717,7 +9783,7 @@ var EditSession = function(text, mode) {
|
||||||
// a split is simple.
|
// a split is simple.
|
||||||
if (tokens[split] >= SPACE) {
|
if (tokens[split] >= SPACE) {
|
||||||
// Include all following spaces + tabs in this split as well.
|
// Include all following spaces + tabs in this split as well.
|
||||||
while (tokens[split] >= SPACE) {
|
while (tokens[split] >= SPACE) {
|
||||||
split ++;
|
split ++;
|
||||||
}
|
}
|
||||||
addSplit(split);
|
addSplit(split);
|
||||||
|
|
@ -9772,16 +9838,17 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// === ELSE ===
|
// === ELSE ===
|
||||||
// Search for the first non space/tab/placeholder token backwards.
|
// Search for the first non space/tab/placeholder/punctuation token backwards.
|
||||||
for (split; split != lastSplit - 1; split--) {
|
var minSplit = Math.max(split - 10, lastSplit - 1);
|
||||||
if (tokens[split] >= PLACEHOLDER_START) {
|
while (split > minSplit && tokens[split] < PLACEHOLDER_START) {
|
||||||
split++;
|
split --;
|
||||||
break;
|
}
|
||||||
}
|
while (split > minSplit && tokens[split] == PUNCTUATION) {
|
||||||
|
split --;
|
||||||
}
|
}
|
||||||
// If we found one, then add the split.
|
// If we found one, then add the split.
|
||||||
if (split > lastSplit) {
|
if (split > minSplit) {
|
||||||
addSplit(split);
|
addSplit(++split);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9789,7 +9856,7 @@ var EditSession = function(text, mode) {
|
||||||
split = lastSplit + wrapLimit;
|
split = lastSplit + wrapLimit;
|
||||||
// The split is inside of a CHAR or CHAR_EXT token and no space
|
// The split is inside of a CHAR or CHAR_EXT token and no space
|
||||||
// around -> force a split.
|
// around -> force a split.
|
||||||
addSplit(lastSplit + wrapLimit);
|
addSplit(split);
|
||||||
}
|
}
|
||||||
return splits;
|
return splits;
|
||||||
}
|
}
|
||||||
|
|
@ -9815,11 +9882,13 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Space
|
// Space
|
||||||
else if(c == 32) {
|
else if (c == 32) {
|
||||||
arr.push(SPACE);
|
arr.push(SPACE);
|
||||||
|
} else if((c > 39 && c < 48) || (c > 57 && c < 64)) {
|
||||||
|
arr.push(PUNCTUATION);
|
||||||
}
|
}
|
||||||
// full width characters
|
// full width characters
|
||||||
else if (isFullWidth(c)) {
|
else if (c >= 0x1100 && isFullWidth(c)) {
|
||||||
arr.push(CHAR, CHAR_EXT);
|
arr.push(CHAR, CHAR_EXT);
|
||||||
} else {
|
} else {
|
||||||
arr.push(CHAR);
|
arr.push(CHAR);
|
||||||
|
|
@ -9855,7 +9924,7 @@ var EditSession = function(text, mode) {
|
||||||
screenColumn += this.getScreenTabSize(screenColumn);
|
screenColumn += this.getScreenTabSize(screenColumn);
|
||||||
}
|
}
|
||||||
// full width characters
|
// full width characters
|
||||||
else if (isFullWidth(c)) {
|
else if (c >= 0x1100 && isFullWidth(c)) {
|
||||||
screenColumn += 2;
|
screenColumn += 2;
|
||||||
} else {
|
} else {
|
||||||
screenColumn += 1;
|
screenColumn += 1;
|
||||||
|
|
@ -9931,7 +10000,7 @@ var EditSession = function(text, mode) {
|
||||||
column: 0
|
column: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var line;
|
var line;
|
||||||
var docRow = 0;
|
var docRow = 0;
|
||||||
var docColumn = 0;
|
var docColumn = 0;
|
||||||
|
|
@ -9951,11 +10020,11 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var doCache = !rowCache.length || i == rowCache.length;
|
var doCache = !rowCache.length || i == rowCache.length;
|
||||||
|
|
||||||
// clamp row before clamping column, for selection on last line
|
// clamp row before clamping column, for selection on last line
|
||||||
var maxRow = this.getLength() - 1;
|
var maxRow = this.getLength() - 1;
|
||||||
|
|
||||||
var foldLine = this.getNextFold(docRow);
|
var foldLine = this.getNextFoldLine(docRow);
|
||||||
var foldStart = foldLine ? foldLine.start.row : Infinity;
|
var foldStart = foldLine ? foldLine.start.row : Infinity;
|
||||||
|
|
||||||
while (row <= screenRow) {
|
while (row <= screenRow) {
|
||||||
|
|
@ -9967,7 +10036,7 @@ var EditSession = function(text, mode) {
|
||||||
docRow++;
|
docRow++;
|
||||||
if (docRow > foldStart) {
|
if (docRow > foldStart) {
|
||||||
docRow = foldLine.end.row+1;
|
docRow = foldLine.end.row+1;
|
||||||
foldLine = this.getNextFold(docRow);
|
foldLine = this.getNextFoldLine(docRow, foldLine);
|
||||||
foldStart = foldLine ? foldLine.start.row : Infinity;
|
foldStart = foldLine ? foldLine.start.row : Infinity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10019,7 +10088,7 @@ var EditSession = function(text, mode) {
|
||||||
if (foldLine) {
|
if (foldLine) {
|
||||||
return foldLine.idxToPosition(docColumn);
|
return foldLine.idxToPosition(docColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
row: docRow,
|
row: docRow,
|
||||||
column: docColumn
|
column: docColumn
|
||||||
|
|
@ -10030,12 +10099,12 @@ var EditSession = function(text, mode) {
|
||||||
// Normalize the passed in arguments.
|
// Normalize the passed in arguments.
|
||||||
if (typeof docColumn === "undefined")
|
if (typeof docColumn === "undefined")
|
||||||
var pos = this.$clipPositionToDocument(docRow.row, docRow.column);
|
var pos = this.$clipPositionToDocument(docRow.row, docRow.column);
|
||||||
else
|
else
|
||||||
pos = this.$clipPositionToDocument(docRow, docColumn);
|
pos = this.$clipPositionToDocument(docRow, docColumn);
|
||||||
|
|
||||||
docRow = pos.row;
|
docRow = pos.row;
|
||||||
docColumn = pos.column;
|
docColumn = pos.column;
|
||||||
|
|
||||||
var LL = this.$rowCache.length;
|
var LL = this.$rowCache.length;
|
||||||
|
|
||||||
var wrapData;
|
var wrapData;
|
||||||
|
|
@ -10077,7 +10146,7 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
var doCache = !rowCache.length || i == rowCache.length;
|
var doCache = !rowCache.length || i == rowCache.length;
|
||||||
|
|
||||||
var foldLine = this.getNextFold(row);
|
var foldLine = this.getNextFoldLine(row);
|
||||||
var foldStart = foldLine ?foldLine.start.row :Infinity;
|
var foldStart = foldLine ?foldLine.start.row :Infinity;
|
||||||
|
|
||||||
while (row < docRow) {
|
while (row < docRow) {
|
||||||
|
|
@ -10085,7 +10154,7 @@ var EditSession = function(text, mode) {
|
||||||
rowEnd = foldLine.end.row + 1;
|
rowEnd = foldLine.end.row + 1;
|
||||||
if (rowEnd > docRow)
|
if (rowEnd > docRow)
|
||||||
break;
|
break;
|
||||||
foldLine = this.getNextFold(rowEnd);
|
foldLine = this.getNextFoldLine(rowEnd, foldLine);
|
||||||
foldStart = foldLine ?foldLine.start.row :Infinity;
|
foldStart = foldLine ?foldLine.start.row :Infinity;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -10094,7 +10163,7 @@ var EditSession = function(text, mode) {
|
||||||
|
|
||||||
screenRow += this.getRowLength(row);
|
screenRow += this.getRowLength(row);
|
||||||
row = rowEnd;
|
row = rowEnd;
|
||||||
|
|
||||||
if (doCache) {
|
if (doCache) {
|
||||||
rowCache.push({
|
rowCache.push({
|
||||||
docRow: row,
|
docRow: row,
|
||||||
|
|
@ -10211,8 +10280,7 @@ var EditSession = function(text, mode) {
|
||||||
require("ace/edit_session/folding").Folding.call(EditSession.prototype);
|
require("ace/edit_session/folding").Folding.call(EditSession.prototype);
|
||||||
|
|
||||||
exports.EditSession = EditSession;
|
exports.EditSession = EditSession;
|
||||||
});
|
});/* ***** BEGIN LICENSE BLOCK *****
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
* The contents of this file are subject to the Mozilla Public License Version
|
* The contents of this file are subject to the Mozilla Public License Version
|
||||||
|
|
@ -10337,7 +10405,7 @@ var Selection = function(session) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var anchor = this.getSelectionAnchor();
|
var anchor = this.getSelectionAnchor();
|
||||||
var lead = this.getSelectionLead();
|
var lead = this.getSelectionLead();
|
||||||
|
|
||||||
var isBackwards = this.isBackwards();
|
var isBackwards = this.isBackwards();
|
||||||
|
|
||||||
|
|
@ -10654,9 +10722,26 @@ var Selection = function(session) {
|
||||||
this.selectionLead.row,
|
this.selectionLead.row,
|
||||||
this.selectionLead.column
|
this.selectionLead.column
|
||||||
);
|
);
|
||||||
var screenCol = (chars == 0 && this.$desiredColumn) || screenPos.column;
|
|
||||||
|
var screenCol = (chars === 0 && this.$desiredColumn) || screenPos.column;
|
||||||
|
|
||||||
|
// so here is the deal. First checkout what the content of ur current and ur target line is
|
||||||
|
var currentLine = (this.session.getLines(screenPos.row, screenPos.row) || [""])[0],
|
||||||
|
targetLine = (this.session.getLines(screenPos.row + rows, screenPos.row + rows) || [""])[0];
|
||||||
|
|
||||||
|
// if you are at the EOL of your current line, and your targetline is all whitespace
|
||||||
|
if (currentLine && targetLine &&
|
||||||
|
currentLine.length === screenPos.column && targetLine.match(/^\s*$/)) {
|
||||||
|
// set the new column to the EOL of the target line
|
||||||
|
screenCol = this.session.getTabString(targetLine).length;
|
||||||
|
// update the chars so we are sure that the desired column will be updated
|
||||||
|
chars = 1;
|
||||||
|
};
|
||||||
|
|
||||||
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
||||||
this.moveCursorTo(docPos.row, docPos.column + chars, chars == 0);
|
|
||||||
|
// move the cursor and update the desired column
|
||||||
|
this.moveCursorTo(docPos.row, docPos.column + chars, chars === 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.moveCursorToPosition = function(position) {
|
this.moveCursorToPosition = function(position) {
|
||||||
|
|
@ -10794,9 +10879,12 @@ var Range = function(startRow, startColumn, endRow, endColumn) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.comparePoint = function(p) {
|
||||||
|
return this.compare(p.row, p.column);
|
||||||
|
}
|
||||||
|
|
||||||
this.containsRange = function(range) {
|
this.containsRange = function(range) {
|
||||||
var cmp = this.compareRange(range);
|
return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;
|
||||||
return (cmp == -1 || cmp == 0 || cmp == 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.isEnd = function(row, column) {
|
this.isEnd = function(row, column) {
|
||||||
|
|
@ -11206,13 +11294,12 @@ var Mode = function() {
|
||||||
for (var key in behaviours) {
|
for (var key in behaviours) {
|
||||||
if (behaviours[key][action]) {
|
if (behaviours[key][action]) {
|
||||||
var ret = behaviours[key][action].apply(this, arguments);
|
var ret = behaviours[key][action].apply(this, arguments);
|
||||||
if (ret !== false) {
|
if (ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}).call(Mode.prototype);
|
}).call(Mode.prototype);
|
||||||
|
|
@ -12521,7 +12608,7 @@ function Folding() {
|
||||||
var foldLine = this.getFoldLine(row);
|
var foldLine = this.getFoldLine(row);
|
||||||
if (!foldLine)
|
if (!foldLine)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var folds = foldLine.folds;
|
var folds = foldLine.folds;
|
||||||
for (var i = 0; i < folds.length; i++) {
|
for (var i = 0; i < folds.length; i++) {
|
||||||
var fold = folds[i];
|
var fold = folds[i];
|
||||||
|
|
@ -12603,7 +12690,7 @@ function Folding() {
|
||||||
var foldLine = foldLine || this.getFoldLine(row);
|
var foldLine = foldLine || this.getFoldLine(row);
|
||||||
if (!foldLine)
|
if (!foldLine)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var lastFold = {
|
var lastFold = {
|
||||||
end: { column: 0 }
|
end: { column: 0 }
|
||||||
};
|
};
|
||||||
|
|
@ -12652,7 +12739,7 @@ function Folding() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the fold which starts after or contains docRow
|
// returns the fold which starts after or contains docRow
|
||||||
this.getNextFold = function(docRow, startFoldLine) {
|
this.getNextFoldLine = function(docRow, startFoldLine) {
|
||||||
var foldData = this.$foldData, ans;
|
var foldData = this.$foldData, ans;
|
||||||
var i = 0;
|
var i = 0;
|
||||||
if (startFoldLine)
|
if (startFoldLine)
|
||||||
|
|
@ -12720,7 +12807,7 @@ function Folding() {
|
||||||
var startColumn = fold.start.column;
|
var startColumn = fold.start.column;
|
||||||
var endRow = fold.end.row;
|
var endRow = fold.end.row;
|
||||||
var endColumn = fold.end.column;
|
var endColumn = fold.end.column;
|
||||||
|
|
||||||
// --- Some checking ---
|
// --- Some checking ---
|
||||||
if (fold.placeholder.length < 2)
|
if (fold.placeholder.length < 2)
|
||||||
throw "Placeholder has to be at least 2 characters";
|
throw "Placeholder has to be at least 2 characters";
|
||||||
|
|
@ -12958,8 +13045,85 @@ function Folding() {
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
this.toggleFold = function(tryToUnfold) {
|
||||||
|
var selection = this.selection;
|
||||||
|
var range = selection.getRange();
|
||||||
|
|
||||||
|
if (range.isEmpty()) {
|
||||||
|
var cursor = range.start
|
||||||
|
var fold = this.getFoldAt(cursor.row, cursor.column);
|
||||||
|
var bracketPos, column;
|
||||||
|
|
||||||
|
if (fold) {
|
||||||
|
this.expandFold(fold);
|
||||||
|
return;
|
||||||
|
} else if (bracketPos = this.findMatchingBracket(cursor)) {
|
||||||
|
if (range.comparePoint(bracketPos) == 1) {
|
||||||
|
range.end = bracketPos;
|
||||||
|
} else {
|
||||||
|
range.start = bracketPos;
|
||||||
|
range.start.column++;
|
||||||
|
range.end.column--;
|
||||||
|
}
|
||||||
|
} else if (bracketPos = this.findMatchingBracket({row: cursor.row, column: cursor.column + 1})) {
|
||||||
|
if (range.comparePoint(bracketPos) == 1)
|
||||||
|
range.end = bracketPos;
|
||||||
|
else
|
||||||
|
range.start = bracketPos;
|
||||||
|
|
||||||
|
range.start.column++;
|
||||||
|
} else {
|
||||||
|
var token = this.getTokenAt(cursor.row, cursor.column);
|
||||||
|
if (token && /^comment|string/.test(token.type)) {
|
||||||
|
var startRow = cursor.row;
|
||||||
|
var endRow = cursor.row;
|
||||||
|
var t = token;
|
||||||
|
while ((t = this.getTokenAt(startRow - 1)) && t.type == token.type) {
|
||||||
|
startRow --;
|
||||||
|
token = t;
|
||||||
|
}
|
||||||
|
range.start.row = startRow;
|
||||||
|
range.start.column = token.start + 2;
|
||||||
|
|
||||||
|
while ((t = this.getTokenAt(endRow + 1, 0)) && t.type == token.type) {
|
||||||
|
endRow ++;
|
||||||
|
token = t;
|
||||||
|
}
|
||||||
|
range.end.row = endRow;
|
||||||
|
range.end.column = token.start + token.value.length - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var folds = this.getFoldsInRange(range);
|
||||||
|
if (tryToUnfold && folds.length) {
|
||||||
|
this.expandFolds(folds);
|
||||||
|
return;
|
||||||
|
} else if (folds.length == 1 ) {
|
||||||
|
fold = folds[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!fold)
|
||||||
|
fold = this.getFoldAt(range.start.row, range.start.column);
|
||||||
|
|
||||||
|
if (fold && fold.range.toString() == range.toString()){
|
||||||
|
this.expandFold(fold);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var placeholder = "...";
|
||||||
|
if (!range.isMultiLine()) {
|
||||||
|
placeholder = this.getTextRange(range);
|
||||||
|
if(placeholder.length < 4)
|
||||||
|
return;
|
||||||
|
placeholder = placeholder.trim().substring(0, 2) + ".."
|
||||||
|
}
|
||||||
|
|
||||||
|
this.addFold(placeholder, range);
|
||||||
|
};
|
||||||
|
}
|
||||||
exports.Folding = Folding;
|
exports.Folding = Folding;
|
||||||
|
|
||||||
});/* vim:ts=4:sts=4:sw=4:
|
});/* vim:ts=4:sts=4:sw=4:
|
||||||
|
|
@ -13403,20 +13567,28 @@ Search.SELECTION = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.findAll = function(session) {
|
this.findAll = function(session) {
|
||||||
if (!this.$options.needle)
|
var options = this.$options;
|
||||||
|
if (!options.needle)
|
||||||
return [];
|
return [];
|
||||||
|
|
||||||
if (this.$options.backwards) {
|
if (options.backwards) {
|
||||||
var iterator = this.$backwardMatchIterator(session);
|
var iterator = this.$backwardMatchIterator(session);
|
||||||
} else {
|
} else {
|
||||||
iterator = this.$forwardMatchIterator(session);
|
iterator = this.$forwardMatchIterator(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ignoreCursor = !options.start && options.wrap && options.scope == Search.ALL;
|
||||||
|
if (ignoreCursor)
|
||||||
|
options.start = {row: 0, column: 0};
|
||||||
|
|
||||||
var ranges = [];
|
var ranges = [];
|
||||||
iterator.forEach(function(range) {
|
iterator.forEach(function(range) {
|
||||||
ranges.push(range);
|
ranges.push(range);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (ignoreCursor)
|
||||||
|
options.start = null;
|
||||||
|
|
||||||
return ranges;
|
return ranges;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -13527,8 +13699,8 @@ Search.SELECTION = 2;
|
||||||
this.$forwardLineIterator = function(session) {
|
this.$forwardLineIterator = function(session) {
|
||||||
var searchSelection = this.$options.scope == Search.SELECTION;
|
var searchSelection = this.$options.scope == Search.SELECTION;
|
||||||
|
|
||||||
var range = session.getSelection().getRange();
|
var range = this.$options.range || session.getSelection().getRange();
|
||||||
var start = session.getSelection().getCursor();
|
var start = this.$options.start || session.getSelection().getCursor();
|
||||||
|
|
||||||
var firstRow = searchSelection ? range.start.row : 0;
|
var firstRow = searchSelection ? range.start.row : 0;
|
||||||
var firstColumn = searchSelection ? range.start.column : 0;
|
var firstColumn = searchSelection ? range.start.column : 0;
|
||||||
|
|
@ -13589,8 +13761,8 @@ Search.SELECTION = 2;
|
||||||
this.$backwardLineIterator = function(session) {
|
this.$backwardLineIterator = function(session) {
|
||||||
var searchSelection = this.$options.scope == Search.SELECTION;
|
var searchSelection = this.$options.scope == Search.SELECTION;
|
||||||
|
|
||||||
var range = session.getSelection().getRange();
|
var range = this.$options.range || session.getSelection().getRange();
|
||||||
var start = searchSelection ? range.end : range.start;
|
var start = this.$options.start || session.getSelection().getCursor();
|
||||||
|
|
||||||
var firstRow = searchSelection ? range.start.row : 0;
|
var firstRow = searchSelection ? range.start.row : 0;
|
||||||
var firstColumn = searchSelection ? range.start.column : 0;
|
var firstColumn = searchSelection ? range.start.column : 0;
|
||||||
|
|
@ -14696,13 +14868,13 @@ var Gutter = function(parentEl) {
|
||||||
var html = [];
|
var html = [];
|
||||||
var i = config.firstRow;
|
var i = config.firstRow;
|
||||||
var lastRow = config.lastRow;
|
var lastRow = config.lastRow;
|
||||||
var fold = this.session.getNextFold(i);
|
var fold = this.session.getNextFoldLine(i);
|
||||||
var foldStart = fold ? fold.start.row : Infinity;
|
var foldStart = fold ? fold.start.row : Infinity;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(i > foldStart) {
|
if(i > foldStart) {
|
||||||
i = fold.end.row + 1;
|
i = fold.end.row + 1;
|
||||||
fold = this.session.getNextFold(i);
|
fold = this.session.getNextFoldLine(i, fold);
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
}
|
}
|
||||||
if(i > lastRow)
|
if(i > lastRow)
|
||||||
|
|
@ -15214,13 +15386,13 @@ var Text = function(parentEl) {
|
||||||
this.$renderLinesFragment = function(config, firstRow, lastRow) {
|
this.$renderLinesFragment = function(config, firstRow, lastRow) {
|
||||||
var fragment = this.element.ownerDocument.createDocumentFragment(),
|
var fragment = this.element.ownerDocument.createDocumentFragment(),
|
||||||
row = firstRow,
|
row = firstRow,
|
||||||
fold = this.session.getNextFold(row),
|
fold = this.session.getNextFoldLine(row),
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(row > foldStart) {
|
if(row > foldStart) {
|
||||||
row = fold.end.row+1;
|
row = fold.end.row+1;
|
||||||
fold = this.session.getNextFold(row);
|
fold = this.session.getNextFoldLine(row, fold);
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
}
|
}
|
||||||
if(row > lastRow)
|
if(row > lastRow)
|
||||||
|
|
@ -15261,13 +15433,13 @@ var Text = function(parentEl) {
|
||||||
var firstRow = config.firstRow, lastRow = config.lastRow;
|
var firstRow = config.firstRow, lastRow = config.lastRow;
|
||||||
|
|
||||||
var row = firstRow,
|
var row = firstRow,
|
||||||
fold = this.session.getNextFold(row),
|
fold = this.session.getNextFoldLine(row),
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(row > foldStart) {
|
if(row > foldStart) {
|
||||||
row = fold.end.row+1;
|
row = fold.end.row+1;
|
||||||
fold = this.session.getNextFold(row);
|
fold = this.session.getNextFoldLine(row, fold);
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
}
|
}
|
||||||
if(row > lastRow)
|
if(row > lastRow)
|
||||||
|
|
@ -16302,7 +16474,30 @@ define("text!ace/css/editor.css", [], "@import url(//fonts.googleapis.com/css?fa
|
||||||
"}\n" +
|
"}\n" +
|
||||||
"");
|
"");
|
||||||
|
|
||||||
define("text!build/demo/styles.css", [], "html {\n" +
|
define("text!ace/ext/static.css", [], ".ace_editor {\n" +
|
||||||
|
" font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace;\n" +
|
||||||
|
" font-size: 12px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace_editor .ace_gutter { \n" +
|
||||||
|
" width: 25px !important;\n" +
|
||||||
|
" display: block;\n" +
|
||||||
|
" float: left;\n" +
|
||||||
|
" text-align: right; \n" +
|
||||||
|
" padding: 0 3px 0 0; \n" +
|
||||||
|
" margin-right: 3px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace-row { clear: both; }\n" +
|
||||||
|
"\n" +
|
||||||
|
"*.ace_gutter-cell {\n" +
|
||||||
|
" -moz-user-select: -moz-none;\n" +
|
||||||
|
" -khtml-user-select: none;\n" +
|
||||||
|
" -webkit-user-select: none;\n" +
|
||||||
|
" user-select: none;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
|
define("text!build/demo/kitchen-sink/styles.css", [], "html {\n" +
|
||||||
" height: 100%;\n" +
|
" height: 100%;\n" +
|
||||||
" width: 100%;\n" +
|
" width: 100%;\n" +
|
||||||
" overflow: hidden;\n" +
|
" overflow: hidden;\n" +
|
||||||
|
|
@ -16578,13 +16773,13 @@ define("text!build_support/style.css", [], "body {\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"");
|
"");
|
||||||
|
|
||||||
define("text!demo/docs/css.css", [], ".text-layer {\n" +
|
define("text!demo/kitchen-sink/docs/css.css", [], ".text-layer {\n" +
|
||||||
" font-family: Monaco, \"Courier New\", monospace;\n" +
|
" font-family: Monaco, \"Courier New\", monospace;\n" +
|
||||||
" font-size: 12px;\n" +
|
" font-size: 12px;\n" +
|
||||||
" cursor: text;\n" +
|
" cursor: text;\n" +
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
define("text!demo/styles.css", [], "html {\n" +
|
define("text!demo/kitchen-sink/styles.css", [], "html {\n" +
|
||||||
" height: 100%;\n" +
|
" height: 100%;\n" +
|
||||||
" width: 100%;\n" +
|
" width: 100%;\n" +
|
||||||
" overflow: hidden;\n" +
|
" overflow: hidden;\n" +
|
||||||
|
|
@ -16628,50 +16823,6 @@ define("text!demo/styles.css", [], "html {\n" +
|
||||||
" text-align: left;\n" +
|
" text-align: left;\n" +
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
define("text!deps/csslint/demos/demo.css", [], "@charset \"UTF-8\";\n" +
|
|
||||||
"\n" +
|
|
||||||
"@import url(\"booya.css\") print,screen;\n" +
|
|
||||||
"@import \"whatup.css\" screen;\n" +
|
|
||||||
"@import \"wicked.css\";\n" +
|
|
||||||
"\n" +
|
|
||||||
"@namespace \"http://www.w3.org/1999/xhtml\";\n" +
|
|
||||||
"@namespace svg \"http://www.w3.org/2000/svg\";\n" +
|
|
||||||
"\n" +
|
|
||||||
"li.inline #foo {\n" +
|
|
||||||
" background: url(\"something.png\");\n" +
|
|
||||||
" display: inline;\n" +
|
|
||||||
" padding-left: 3px;\n" +
|
|
||||||
" padding-right: 7px;\n" +
|
|
||||||
" border-right: 1px dotted #066;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"li.last.first {\n" +
|
|
||||||
" display: inline;\n" +
|
|
||||||
" padding-left: 3px !important;\n" +
|
|
||||||
" padding-right: 3px;\n" +
|
|
||||||
" border-right: 0px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"@media print {\n" +
|
|
||||||
" li.inline {\n" +
|
|
||||||
" color: black;\n" +
|
|
||||||
" }\n" +
|
|
||||||
"\n" +
|
|
||||||
"\n" +
|
|
||||||
"@charset \"UTF-8\"; \n" +
|
|
||||||
"\n" +
|
|
||||||
"@page {\n" +
|
|
||||||
" margin: 10%;\n" +
|
|
||||||
" counter-increment: page;\n" +
|
|
||||||
"\n" +
|
|
||||||
" @top-center {\n" +
|
|
||||||
" font-family: sans-serif;\n" +
|
|
||||||
" font-weight: bold;\n" +
|
|
||||||
" font-size: 2em;\n" +
|
|
||||||
" content: counter(page);\n" +
|
|
||||||
" }\n" +
|
|
||||||
"}");
|
|
||||||
|
|
||||||
define("text!doc/site/iphone.css", [], "#wrapper {\n" +
|
define("text!doc/site/iphone.css", [], "#wrapper {\n" +
|
||||||
" position:relative;\n" +
|
" position:relative;\n" +
|
||||||
" overflow:hidden;\n" +
|
" overflow:hidden;\n" +
|
||||||
|
|
@ -17108,6 +17259,40 @@ define("text!lib/ace/css/editor.css", [], "@import url(//fonts.googleapis.com/cs
|
||||||
"}\n" +
|
"}\n" +
|
||||||
"");
|
"");
|
||||||
|
|
||||||
|
define("text!lib/ace/ext/static.css", [], ".ace_editor {\n" +
|
||||||
|
" font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace;\n" +
|
||||||
|
" font-size: 12px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace_editor .ace_gutter { \n" +
|
||||||
|
" width: 25px !important;\n" +
|
||||||
|
" display: block;\n" +
|
||||||
|
" float: left;\n" +
|
||||||
|
" text-align: right; \n" +
|
||||||
|
" padding: 0 3px 0 0; \n" +
|
||||||
|
" margin-right: 3px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace-row { clear: both; }\n" +
|
||||||
|
"\n" +
|
||||||
|
"*.ace_gutter-cell {\n" +
|
||||||
|
" -moz-user-select: -moz-none;\n" +
|
||||||
|
" -khtml-user-select: none;\n" +
|
||||||
|
" -webkit-user-select: none;\n" +
|
||||||
|
" user-select: none;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
|
define("text!node_modules/jsdom/node_modules/cssom/docs/bar.css", [], "body * {\n" +
|
||||||
|
" color: red !important;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
|
define("text!node_modules/jsdom/node_modules/cssom/docs/demo.css", [], "");
|
||||||
|
|
||||||
|
define("text!node_modules/jsdom/node_modules/cssom/docs/foo.css", [], "@import \"bar.css\" screen;\n" +
|
||||||
|
"body {\n" +
|
||||||
|
" background: black !important;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
define("text!node_modules/uglify-js/docstyle.css", [], "html { font-family: \"Lucida Grande\",\"Trebuchet MS\",sans-serif; font-size: 12pt; }\n" +
|
define("text!node_modules/uglify-js/docstyle.css", [], "html { font-family: \"Lucida Grande\",\"Trebuchet MS\",sans-serif; font-size: 12pt; }\n" +
|
||||||
"body { max-width: 60em; }\n" +
|
"body { max-width: 60em; }\n" +
|
||||||
".title { text-align: center; }\n" +
|
".title { text-align: center; }\n" +
|
||||||
|
|
@ -17475,56 +17660,6 @@ define("text!tool/Theme.tmpl.css", [], ".%cssClass% .ace_editor {\n" +
|
||||||
" %collab.user1% \n" +
|
" %collab.user1% \n" +
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
define("text!docs/css.css", [], ".text-layer {\n" +
|
|
||||||
" font-family: Monaco, \"Courier New\", monospace;\n" +
|
|
||||||
" font-size: 12px;\n" +
|
|
||||||
" cursor: text;\n" +
|
|
||||||
"}");
|
|
||||||
|
|
||||||
define("text!styles.css", [], "html {\n" +
|
|
||||||
" height: 100%;\n" +
|
|
||||||
" width: 100%;\n" +
|
|
||||||
" overflow: hidden;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"body {\n" +
|
|
||||||
" overflow: hidden;\n" +
|
|
||||||
" margin: 0;\n" +
|
|
||||||
" padding: 0;\n" +
|
|
||||||
" height: 100%;\n" +
|
|
||||||
" width: 100%;\n" +
|
|
||||||
" font-family: Arial, Helvetica, sans-serif, Tahoma, Verdana, sans-serif;\n" +
|
|
||||||
" font-size: 12px;\n" +
|
|
||||||
" background: rgb(14, 98, 165);\n" +
|
|
||||||
" color: white;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"#logo {\n" +
|
|
||||||
" padding: 15px;\n" +
|
|
||||||
" margin-left: 70px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"#editor {\n" +
|
|
||||||
" position: absolute;\n" +
|
|
||||||
" top: 0px;\n" +
|
|
||||||
" left: 300px;\n" +
|
|
||||||
" bottom: 0px;\n" +
|
|
||||||
" right: 0px;\n" +
|
|
||||||
" background: white;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"#controls {\n" +
|
|
||||||
" padding: 5px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"#controls td {\n" +
|
|
||||||
" text-align: right;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"#controls td + td {\n" +
|
|
||||||
" text-align: left;\n" +
|
|
||||||
"}");
|
|
||||||
|
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
/* ***** BEGIN LICENSE BLOCK *****
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
define("ace/keyboard/keybinding/emacs",["require","exports","module","ace/keyboard/state_handler"],function(a,b,c){var d=a("ace/keyboard/state_handler").StateHandler,e=a("ace/keyboard/state_handler").matchCharacterOnly,f={start:[{key:"ctrl-x",then:"c-x"},{regex:["(?:command-([0-9]*))*","(down|ctrl-n)"],exec:"golinedown",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(right|ctrl-f)"],exec:"gotoright",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(up|ctrl-p)"],exec:"golineup",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(left|ctrl-b)"],exec:"gotoleft",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{comment:"This binding matches all printable characters except numbers as long as they are no numbers and print them n times.",regex:["(?:command-([0-9]*))","([^0-9]+)*"],match:e,exec:"inserttext",params:[{name:"times",match:1,type:"number",defaultValue:"1"},{name:"text",match:2}]},{comment:"This binding matches numbers as long as there is no meta_number in the buffer.",regex:["(command-[0-9]*)*","([0-9]+)"],match:e,disallowMatches:[1],exec:"inserttext",params:[{name:"text",match:2,type:"text"}]},{regex:["command-([0-9]*)","(command-[0-9]|[0-9])"],comment:"Stops execution if the regex /meta_[0-9]+/ matches to avoid resetting the buffer."}],"c-x":[{key:"ctrl-g",then:"start"},{key:"ctrl-s",exec:"save",then:"start"}]};b.Emacs=new d(f)}),define("ace/keyboard/state_handler",["require","exports","module"],function(a,b,c){function e(a){this.keymapping=this.$buildKeymappingRegex(a)}var d=!1;e.prototype={$buildKeymappingRegex:function(a){for(state in a)this.$buildBindingsRegex(a[state]);return a},$buildBindingsRegex:function(a){a.forEach(function(a){a.key?a.key=new RegExp("^"+a.key+"$"):Array.isArray(a.regex)?("key"in a||(a.key=new RegExp("^"+a.regex[1]+"$")),a.regex=new RegExp(a.regex.join("")+"$")):a.regex&&(a.regex=new RegExp(a.regex+"$"))})},$composeBuffer:function(a,b,c){if(a.state==null||a.buffer==null)a.state="start",a.buffer="";var d=[];b&1&&d.push("ctrl"),b&8&&d.push("command"),b&2&&d.push("option"),b&4&&d.push("shift"),c&&d.push(c);var e=d.join("-"),f=a.buffer+e;return b!=2&&(a.buffer=f),{bufferToUse:f,symbolicName:e}},$find:function(a,b,c,e,f){var g={};return this.keymapping[a.state].some(function(h){var i;if(h.key&&!h.key.test(c))return!1;if(h.regex&&!(i=h.regex.exec(b)))return!1;if(h.match&&!h.match(b,e,f,c))return!1;if(h.disallowMatches)for(var j=0;j<h.disallowMatches.length;j++)if(!!i[h.disallowMatches[j]])return!1;if(h.exec){g.command=h.exec;if(h.params){var k;g.args={},h.params.forEach(function(a){a.match!=null&&i!=null?k=i[a.match]||a.defaultValue:k=a.defaultValue,a.type==="number"&&(k=parseInt(k)),g.args[a.name]=k})}a.buffer=""}return h.then&&(a.state=h.then,a.buffer=""),g.command==null&&(g.command="null"),d&&console.log("KeyboardStateMapper#find",h),!0}),g.command?g:(a.buffer="",!1)},handleKeyboard:function(a,b,c){if(b==0||c!=""&&c!=String.fromCharCode(0)){var e=this.$composeBuffer(a,b,c),f=e.bufferToUse,g=e.symbolicName;return e=this.$find(a,f,g,b,c),d&&console.log("KeyboardStateMapper#match",f,g,e),e}return null}},b.matchCharacterOnly=function(a,b,c,d){return b==0?!0:b==4&&c.length==1?!0:!1},b.StateHandler=e})
|
define("ace/keyboard/keybinding/emacs",["require","exports","module","ace/keyboard/state_handler"],function(a,b,c){var d=a("ace/keyboard/state_handler").StateHandler,e=a("ace/keyboard/state_handler").matchCharacterOnly,f={start:[{key:"ctrl-x",then:"c-x"},{regex:["(?:command-([0-9]*))*","(down|ctrl-n)"],exec:"golinedown",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(right|ctrl-f)"],exec:"gotoright",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(up|ctrl-p)"],exec:"golineup",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{regex:["(?:command-([0-9]*))*","(left|ctrl-b)"],exec:"gotoleft",params:[{name:"times",match:1,type:"number",defaultValue:1}]},{comment:"This binding matches all printable characters except numbers as long as they are no numbers and print them n times.",regex:["(?:command-([0-9]*))","([^0-9]+)*"],match:e,exec:"inserttext",params:[{name:"times",match:1,type:"number",defaultValue:"1"},{name:"text",match:2}]},{comment:"This binding matches numbers as long as there is no meta_number in the buffer.",regex:["(command-[0-9]*)*","([0-9]+)"],match:e,disallowMatches:[1],exec:"inserttext",params:[{name:"text",match:2,type:"text"}]},{regex:["command-([0-9]*)","(command-[0-9]|[0-9])"],comment:"Stops execution if the regex /meta_[0-9]+/ matches to avoid resetting the buffer."}],"c-x":[{key:"ctrl-g",then:"start"},{key:"ctrl-s",exec:"save",then:"start"}]};b.Emacs=new d(f)}),define("ace/keyboard/state_handler",["require","exports","module"],function(a,b,c){function e(a){this.keymapping=this.$buildKeymappingRegex(a)}var d=!1;e.prototype={$buildKeymappingRegex:function(a){for(var b in a)this.$buildBindingsRegex(a[b]);return a},$buildBindingsRegex:function(a){a.forEach(function(a){a.key?a.key=new RegExp("^"+a.key+"$"):Array.isArray(a.regex)?("key"in a||(a.key=new RegExp("^"+a.regex[1]+"$")),a.regex=new RegExp(a.regex.join("")+"$")):a.regex&&(a.regex=new RegExp(a.regex+"$"))})},$composeBuffer:function(a,b,c){if(a.state==null||a.buffer==null)a.state="start",a.buffer="";var d=[];b&1&&d.push("ctrl"),b&8&&d.push("command"),b&2&&d.push("option"),b&4&&d.push("shift"),c&&d.push(c);var e=d.join("-"),f=a.buffer+e;return b!=2&&(a.buffer=f),{bufferToUse:f,symbolicName:e}},$find:function(a,b,c,e,f){var g={};return this.keymapping[a.state].some(function(h){var i;if(h.key&&!h.key.test(c))return!1;if(h.regex&&!(i=h.regex.exec(b)))return!1;if(h.match&&!h.match(b,e,f,c))return!1;if(h.disallowMatches)for(var j=0;j<h.disallowMatches.length;j++)if(!!i[h.disallowMatches[j]])return!1;if(h.exec){g.command=h.exec;if(h.params){var k;g.args={},h.params.forEach(function(a){a.match!=null&&i!=null?k=i[a.match]||a.defaultValue:k=a.defaultValue,a.type==="number"&&(k=parseInt(k)),g.args[a.name]=k})}a.buffer=""}return h.then&&(a.state=h.then,a.buffer=""),g.command==null&&(g.command="null"),d&&console.log("KeyboardStateMapper#find",h),!0}),g.command?g:(a.buffer="",!1)},handleKeyboard:function(a,b,c){if(b==0||c!=""&&c!=String.fromCharCode(0)){var e=this.$composeBuffer(a,b,c),f=e.bufferToUse,g=e.symbolicName;return e=this.$find(a,f,g,b,c),d&&console.log("KeyboardStateMapper#match",f,g,e),e}return null}},b.matchCharacterOnly=function(a,b,c,d){return b==0?!0:b==4&&c.length==1?!0:!1},b.StateHandler=e})
|
||||||
|
|
@ -1 +1 @@
|
||||||
define("ace/keyboard/keybinding/vim",["require","exports","module","ace/keyboard/state_handler"],function(a,b,c){var d=a("ace/keyboard/state_handler").StateHandler,e=a("ace/keyboard/state_handler").matchCharacterOnly,f=function(a,b,c){return{regex:["([0-9]*)",a],exec:b,params:[{name:"times",match:1,type:"number",defaultValue:1}],then:c}},g={start:[{key:"i",then:"insertMode"},{key:"d",then:"deleteMode"},{key:"a",exec:"gotoright",then:"insertMode"},{key:"shift-i",exec:"gotolinestart",then:"insertMode"},{key:"shift-a",exec:"gotolineend",then:"insertMode"},{key:"shift-c",exec:"removetolineend",then:"insertMode"},{key:"shift-r",exec:"overwrite",then:"replaceMode"},f("(k|up)","golineup"),f("(j|down)","golinedown"),f("(l|right)","golineright"),f("(h|left)","golineleft"),{key:"shift-g",exec:"gotoend"},f("b","gotowordleft"),f("e","gotowordright"),f("x","del"),f("shift-x","backspace"),f("shift-d","removetolineend"),f("u","undo"),{comment:"Catch some keyboard input to stop it here",match:e}],insertMode:[{key:"esc",then:"start"}],replaceMode:[{key:"esc",exec:"overwrite",then:"start"}],deleteMode:[{key:"d",exec:"removeline",then:"start"}]};b.Vim=new d(g)}),define("ace/keyboard/state_handler",["require","exports","module"],function(a,b,c){function e(a){this.keymapping=this.$buildKeymappingRegex(a)}var d=!1;e.prototype={$buildKeymappingRegex:function(a){for(state in a)this.$buildBindingsRegex(a[state]);return a},$buildBindingsRegex:function(a){a.forEach(function(a){a.key?a.key=new RegExp("^"+a.key+"$"):Array.isArray(a.regex)?("key"in a||(a.key=new RegExp("^"+a.regex[1]+"$")),a.regex=new RegExp(a.regex.join("")+"$")):a.regex&&(a.regex=new RegExp(a.regex+"$"))})},$composeBuffer:function(a,b,c){if(a.state==null||a.buffer==null)a.state="start",a.buffer="";var d=[];b&1&&d.push("ctrl"),b&8&&d.push("command"),b&2&&d.push("option"),b&4&&d.push("shift"),c&&d.push(c);var e=d.join("-"),f=a.buffer+e;return b!=2&&(a.buffer=f),{bufferToUse:f,symbolicName:e}},$find:function(a,b,c,e,f){var g={};return this.keymapping[a.state].some(function(h){var i;if(h.key&&!h.key.test(c))return!1;if(h.regex&&!(i=h.regex.exec(b)))return!1;if(h.match&&!h.match(b,e,f,c))return!1;if(h.disallowMatches)for(var j=0;j<h.disallowMatches.length;j++)if(!!i[h.disallowMatches[j]])return!1;if(h.exec){g.command=h.exec;if(h.params){var k;g.args={},h.params.forEach(function(a){a.match!=null&&i!=null?k=i[a.match]||a.defaultValue:k=a.defaultValue,a.type==="number"&&(k=parseInt(k)),g.args[a.name]=k})}a.buffer=""}return h.then&&(a.state=h.then,a.buffer=""),g.command==null&&(g.command="null"),d&&console.log("KeyboardStateMapper#find",h),!0}),g.command?g:(a.buffer="",!1)},handleKeyboard:function(a,b,c){if(b==0||c!=""&&c!=String.fromCharCode(0)){var e=this.$composeBuffer(a,b,c),f=e.bufferToUse,g=e.symbolicName;return e=this.$find(a,f,g,b,c),d&&console.log("KeyboardStateMapper#match",f,g,e),e}return null}},b.matchCharacterOnly=function(a,b,c,d){return b==0?!0:b==4&&c.length==1?!0:!1},b.StateHandler=e})
|
define("ace/keyboard/keybinding/vim",["require","exports","module","ace/keyboard/state_handler"],function(a,b,c){var d=a("ace/keyboard/state_handler").StateHandler,e=a("ace/keyboard/state_handler").matchCharacterOnly,f=function(a,b,c){return{regex:["([0-9]*)",a],exec:b,params:[{name:"times",match:1,type:"number",defaultValue:1}],then:c}},g={start:[{key:"i",then:"insertMode"},{key:"d",then:"deleteMode"},{key:"a",exec:"gotoright",then:"insertMode"},{key:"shift-i",exec:"gotolinestart",then:"insertMode"},{key:"shift-a",exec:"gotolineend",then:"insertMode"},{key:"shift-c",exec:"removetolineend",then:"insertMode"},{key:"shift-r",exec:"overwrite",then:"replaceMode"},f("(k|up)","golineup"),f("(j|down)","golinedown"),f("(l|right)","gotoright"),f("(h|left)","gotoleft"),{key:"shift-g",exec:"gotoend"},f("b","gotowordleft"),f("e","gotowordright"),f("x","del"),f("shift-x","backspace"),f("shift-d","removetolineend"),f("u","undo"),{comment:"Catch some keyboard input to stop it here",match:e}],insertMode:[{key:"esc",then:"start"}],replaceMode:[{key:"esc",exec:"overwrite",then:"start"}],deleteMode:[{key:"d",exec:"removeline",then:"start"}]};b.Vim=new d(g)}),define("ace/keyboard/state_handler",["require","exports","module"],function(a,b,c){function e(a){this.keymapping=this.$buildKeymappingRegex(a)}var d=!1;e.prototype={$buildKeymappingRegex:function(a){for(var b in a)this.$buildBindingsRegex(a[b]);return a},$buildBindingsRegex:function(a){a.forEach(function(a){a.key?a.key=new RegExp("^"+a.key+"$"):Array.isArray(a.regex)?("key"in a||(a.key=new RegExp("^"+a.regex[1]+"$")),a.regex=new RegExp(a.regex.join("")+"$")):a.regex&&(a.regex=new RegExp(a.regex+"$"))})},$composeBuffer:function(a,b,c){if(a.state==null||a.buffer==null)a.state="start",a.buffer="";var d=[];b&1&&d.push("ctrl"),b&8&&d.push("command"),b&2&&d.push("option"),b&4&&d.push("shift"),c&&d.push(c);var e=d.join("-"),f=a.buffer+e;return b!=2&&(a.buffer=f),{bufferToUse:f,symbolicName:e}},$find:function(a,b,c,e,f){var g={};return this.keymapping[a.state].some(function(h){var i;if(h.key&&!h.key.test(c))return!1;if(h.regex&&!(i=h.regex.exec(b)))return!1;if(h.match&&!h.match(b,e,f,c))return!1;if(h.disallowMatches)for(var j=0;j<h.disallowMatches.length;j++)if(!!i[h.disallowMatches[j]])return!1;if(h.exec){g.command=h.exec;if(h.params){var k;g.args={},h.params.forEach(function(a){a.match!=null&&i!=null?k=i[a.match]||a.defaultValue:k=a.defaultValue,a.type==="number"&&(k=parseInt(k)),g.args[a.name]=k})}a.buffer=""}return h.then&&(a.state=h.then,a.buffer=""),g.command==null&&(g.command="null"),d&&console.log("KeyboardStateMapper#find",h),!0}),g.command?g:(a.buffer="",!1)},handleKeyboard:function(a,b,c){if(b==0||c!=""&&c!=String.fromCharCode(0)){var e=this.$composeBuffer(a,b,c),f=e.bufferToUse,g=e.symbolicName;return e=this.$find(a,f,g,b,c),d&&console.log("KeyboardStateMapper#match",f,g,e),e}return null}},b.matchCharacterOnly=function(a,b,c,d){return b==0?!0:b==4&&c.length==1?!0:!1},b.StateHandler=e})
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
define("ace/mode/python",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/python_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/python_highlight_rules").PythonHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules())};d.inherits(j,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=[],g=/^(\s*)#/;for(var h=c;h<=d;h++)if(!g.test(b.getLine(h))){e=!1;break}if(e){var j=new i(0,0,0,0);for(var h=c;h<=d;h++){var k=b.getLine(h),l=k.match(g);j.start.row=h,j.end.row=h,j.end.column=l[0].length,b.replace(j,l[1])}}else b.indentRows(c,d,"#")},this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a),f=e.tokens,g=e.state;if(f.length&&f[f.length-1].type=="comment")return d;if(a=="start"){var h=b.match(/^.*[\{\(\[\:]\s*$/);h&&(d+=c)}return d};var a={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(b,c,d){if(d!=="\r\n"&&d!=="\r"&&d!=="\n")return!1;var e=this.$tokenizer.getLineTokens(c.trim(),b).tokens;if(!e)return!1;do var f=e.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&a[f.value]:!1},this.autoOutdent=function(a,b,c){c+=1;var d=this.$getIndent(b.getLine(c)),e=b.getTabString();d.slice(-e.length)==e&&b.remove(new i(c,d.length-e.length,c,d.length))}}.call(j.prototype),b.Mode=j}),define("ace/mode/python_highlight_rules",["require","exports","module","pilot/oop","pilot/lang","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("pilot/lang"),f=a("ace/mode/text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield".split("|")),b=e.arrayToMap("True|False|None|NotImplemented|Ellipsis|__debug__".split("|")),c=e.arrayToMap("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern".split("|")),d=e.arrayToMap("".split("|")),f="(?:r|u|ur|R|U|UR|Ur|uR)?",g="(?:(?:[1-9]\\d*)|(?:0))",h="(?:0[oO]?[0-7]+)",i="(?:0[xX][\\dA-Fa-f]+)",j="(?:0[bB][01]+)",k="(?:"+g+"|"+h+"|"+i+"|"+j+")",l="(?:[eE][+-]?\\d+)",m="(?:\\.\\d+)",n="(?:\\d+)",o="(?:(?:"+n+"?"+m+")|(?:"+n+"\\.))",p="(?:(?:"+o+"|"+n+")"+l+")",q="(?:"+p+"|"+o+")";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:f+'"{3}(?:[^\\\\]|\\\\.)*?"{3}'},{token:"string",merge:!0,regex:f+'"{3}.*$',next:"qqstring"},{token:"string",regex:f+'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:f+"'{3}(?:[^\\\\]|\\\\.)*?'{3}"},{token:"string",merge:!0,regex:f+"'{3}.*$",next:"qstring"},{token:"string",regex:f+"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:"(?:"+q+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:q},{token:"constant.numeric",regex:k+"[lL]\\b"},{token:"constant.numeric",regex:k+"\\b"},{token:function(e){return a.hasOwnProperty(e)?"keyword":b.hasOwnProperty(e)?"constant.language":d.hasOwnProperty(e)?"invalid.illegal":c.hasOwnProperty(e)?"support.function":e=="debugger"?"invalid.deprecated":"identifier"},regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"lparen.paren",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?"{3}',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:[^\\\\]|\\\\.)*?'{3}",next:"start"},{token:"string",merge:!0,regex:".+"}]}};d.inherits(g,f),b.PythonHighlightRules=g}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e})
|
define("ace/mode/python",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/python_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/python_highlight_rules").PythonHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules())};d.inherits(j,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=[],g=/^(\s*)#/;for(var h=c;h<=d;h++)if(!g.test(b.getLine(h))){e=!1;break}if(e){var j=new i(0,0,0,0);for(var h=c;h<=d;h++){var k=b.getLine(h),l=k.match(g);j.start.row=h,j.end.row=h,j.end.column=l[0].length,b.replace(j,l[1])}}else b.indentRows(c,d,"#")},this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a),f=e.tokens,g=e.state;if(f.length&&f[f.length-1].type=="comment")return d;if(a=="start"){var h=b.match(/^.*[\{\(\[\:]\s*$/);h&&(d+=c)}return d};var a={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(b,c,d){if(d!=="\r\n"&&d!=="\r"&&d!=="\n")return!1;var e=this.$tokenizer.getLineTokens(c.trim(),b).tokens;if(!e)return!1;do var f=e.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&a[f.value]:!1},this.autoOutdent=function(a,b,c){c+=1;var d=this.$getIndent(b.getLine(c)),e=b.getTabString();d.slice(-e.length)==e&&b.remove(new i(c,d.length-e.length,c,d.length))}}.call(j.prototype),b.Mode=j}),define("ace/mode/python_highlight_rules",["require","exports","module","pilot/oop","pilot/lang","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("pilot/lang"),f=a("ace/mode/text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield".split("|")),b=e.arrayToMap("True|False|None|NotImplemented|Ellipsis|__debug__".split("|")),c=e.arrayToMap("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern".split("|")),d=e.arrayToMap("".split("|")),f="(?:r|u|ur|R|U|UR|Ur|uR)?",g="(?:(?:[1-9]\\d*)|(?:0))",h="(?:0[oO]?[0-7]+)",i="(?:0[xX][\\dA-Fa-f]+)",j="(?:0[bB][01]+)",k="(?:"+g+"|"+h+"|"+i+"|"+j+")",l="(?:[eE][+-]?\\d+)",m="(?:\\.\\d+)",n="(?:\\d+)",o="(?:(?:"+n+"?"+m+")|(?:"+n+"\\.))",p="(?:(?:"+o+"|"+n+")"+l+")",q="(?:"+p+"|"+o+")";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:f+'"{3}(?:[^\\\\]|\\\\.)*?"{3}'},{token:"string",merge:!0,regex:f+'"{3}.*$',next:"qqstring"},{token:"string",regex:f+'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:f+"'{3}(?:[^\\\\]|\\\\.)*?'{3}"},{token:"string",merge:!0,regex:f+"'{3}.*$",next:"qstring"},{token:"string",regex:f+"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:"(?:"+q+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:q},{token:"constant.numeric",regex:k+"[lL]\\b"},{token:"constant.numeric",regex:k+"\\b"},{token:function(e){return a.hasOwnProperty(e)?"keyword":b.hasOwnProperty(e)?"constant.language":d.hasOwnProperty(e)?"invalid.illegal":c.hasOwnProperty(e)?"support.function":e=="debugger"?"invalid.deprecated":"identifier"},regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"lparen.paren",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?"{3}',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:[^\\\\]|\\\\.)*?'{3}",next:"start"},{token:"string",merge:!0,regex:".+"}]}};d.inherits(g,f),b.PythonHighlightRules=g}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};((function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}})).call(e.prototype),b.MatchingBraceOutdent=e})
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
define("ace/mode/textile",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/textile_highlight_rules").TextileHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return a=="intag"?c:""},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(j.prototype),b.Mode=j}),define("ace/mode/textile_highlight_rules",["require","exports","module","pilot/oop","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"keyword",token:function(a){return a.match(/^h\d$/)?"markup.heading."+a.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};d.inherits(f,e),b.TextileHighlightRules=f}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e})
|
define("ace/mode/textile",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/textile_highlight_rules").TextileHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return a=="intag"?c:""},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(j.prototype),b.Mode=j}),define("ace/mode/textile_highlight_rules",["require","exports","module","pilot/oop","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"keyword",token:function(a){return a.match(/^h\d$/)?"markup.heading."+a.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};d.inherits(f,e),b.TextileHighlightRules=f}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};((function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}})).call(e.prototype),b.MatchingBraceOutdent=e})
|
||||||
|
|
@ -1 +1 @@
|
||||||
define("ace/theme/tomorrow",["require","exports","module"],function(a,b,c){var d=a("pilot/dom"),e=".ace-tomorrow .ace_editor { border: 2px solid rgb(159, 159, 159);}.ace-tomorrow .ace_editor.ace_focus { border: 2px solid #327fbd;}.ace-tomorrow .ace_gutter { width: 50px; background: #e8e8e8; color: #333; overflow : hidden;}.ace-tomorrow .ace_gutter-layer { width: 100%; text-align: right;}.ace-tomorrow .ace_gutter-layer .ace_gutter-cell { padding-right: 6px;}.ace-tomorrow .ace_print_margin { width: 1px; background: #e8e8e8;}.ace-tomorrow .ace_scroller { background-color: #FFFFFF;}.ace-tomorrow .ace_text-layer { cursor: text; color: #4D4D4C;}.ace-tomorrow .ace_cursor { border-left: 2px solid #AEAFAD;}.ace-tomorrow .ace_cursor.ace_overwrite { border-left: 0px; border-bottom: 1px solid #AEAFAD;} .ace-tomorrow .ace_marker-layer .ace_selection { background: #D6D6D6;}.ace-tomorrow .ace_marker-layer .ace_step { background: rgb(198, 219, 174);}.ace-tomorrow .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #D1D1D1;}.ace-tomorrow .ace_marker-layer .ace_active_line { background: #EFEFEF;} .ace-tomorrow .ace_invisible { color: #D1D1D1;}.ace-tomorrow .ace_keyword { color:#8959A8;}.ace-tomorrow .ace_keyword.ace_operator { color:#3E999F;}.ace-tomorrow .ace_constant { }.ace-tomorrow .ace_constant.ace_language { color:#F5871F;}.ace-tomorrow .ace_constant.ace_library { }.ace-tomorrow .ace_constant.ace_numeric { color:#F5871F;}.ace-tomorrow .ace_invalid { color:#FFFFFF;background-color:#C82829;}.ace-tomorrow .ace_invalid.ace_illegal { }.ace-tomorrow .ace_invalid.ace_deprecated { color:#FFFFFF;background-color:#8959A8;}.ace-tomorrow .ace_support { }.ace-tomorrow .ace_support.ace_function { color:#4271AE;}.ace-tomorrow .ace_function.ace_buildin { }.ace-tomorrow .ace_string { color:#718C00;}.ace-tomorrow .ace_string.ace_regexp { color:#C82829;}.ace-tomorrow .ace_comment { color:#8E908C;}.ace-tomorrow .ace_comment.ace_doc { }.ace-tomorrow .ace_comment.ace_doc.ace_tag { }.ace-tomorrow .ace_variable { color:#C82829;}.ace-tomorrow .ace_variable.ace_language { }.ace-tomorrow .ace_xml_pe { }.ace-tomorrow .ace_meta { }.ace-tomorrow .ace_meta.ace_tag { color:#C82829;}.ace-tomorrow .ace_meta.ace_tag.ace_input { }.ace-tomorrow .ace_entity.ace_other.ace_attribute-name { color:#C82829;}.ace-tomorrow .ace_entity.ace_name { }.ace-tomorrow .ace_entity.ace_name.ace_function { color:#4271AE;}.ace-tomorrow .ace_markup.ace_underline { text-decoration:underline;}.ace-tomorrow .ace_markup.ace_heading { color:#718C00;}.ace-tomorrow .ace_markup.ace_heading.ace_1 { }.ace-tomorrow .ace_markup.ace_heading.ace_2 { }.ace-tomorrow .ace_markup.ace_heading.ace_3 { }.ace-tomorrow .ace_markup.ace_heading.ace_4 { }.ace-tomorrow .ace_markup.ace_heading.ace_5 { }.ace-tomorrow .ace_markup.ace_heading.ace_6 { }.ace-tomorrow .ace_markup.ace_list { }.ace-tomorrow .ace_collab.ace_user1 { }";d.importCssString(e),b.cssClass="ace-tomorrow"})
|
define("ace/theme/tomorrow",["require","exports","module"],function(a,b,c){b.cssText=".ace-tomorrow .ace_editor { border: 2px solid rgb(159, 159, 159);}.ace-tomorrow .ace_editor.ace_focus { border: 2px solid #327fbd;}.ace-tomorrow .ace_gutter { width: 50px; background: #e8e8e8; color: #333; overflow : hidden;}.ace-tomorrow .ace_gutter-layer { width: 100%; text-align: right;}.ace-tomorrow .ace_gutter-layer .ace_gutter-cell { padding-right: 6px;}.ace-tomorrow .ace_print_margin { width: 1px; background: #e8e8e8;}.ace-tomorrow .ace_scroller { background-color: #FFFFFF;}.ace-tomorrow .ace_text-layer { cursor: text; color: #4D4D4C;}.ace-tomorrow .ace_cursor { border-left: 2px solid #AEAFAD;}.ace-tomorrow .ace_cursor.ace_overwrite { border-left: 0px; border-bottom: 1px solid #AEAFAD;} .ace-tomorrow .ace_marker-layer .ace_selection { background: #D6D6D6;}.ace-tomorrow .ace_marker-layer .ace_step { background: rgb(198, 219, 174);}.ace-tomorrow .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #D1D1D1;}.ace-tomorrow .ace_marker-layer .ace_active_line { background: #EFEFEF;} .ace-tomorrow .ace_invisible { color: #D1D1D1;}.ace-tomorrow .ace_keyword { color:#8959A8;}.ace-tomorrow .ace_keyword.ace_operator { color:#3E999F;}.ace-tomorrow .ace_constant { }.ace-tomorrow .ace_constant.ace_language { color:#F5871F;}.ace-tomorrow .ace_constant.ace_library { }.ace-tomorrow .ace_constant.ace_numeric { color:#F5871F;}.ace-tomorrow .ace_invalid { color:#FFFFFF;background-color:#C82829;}.ace-tomorrow .ace_invalid.ace_illegal { }.ace-tomorrow .ace_invalid.ace_deprecated { color:#FFFFFF;background-color:#8959A8;}.ace-tomorrow .ace_support { }.ace-tomorrow .ace_support.ace_function { color:#4271AE;}.ace-tomorrow .ace_function.ace_buildin { }.ace-tomorrow .ace_string { color:#718C00;}.ace-tomorrow .ace_string.ace_regexp { color:#C82829;}.ace-tomorrow .ace_comment { color:#8E908C;}.ace-tomorrow .ace_comment.ace_doc { }.ace-tomorrow .ace_comment.ace_doc.ace_tag { }.ace-tomorrow .ace_variable { color:#C82829;}.ace-tomorrow .ace_variable.ace_language { }.ace-tomorrow .ace_xml_pe { }.ace-tomorrow .ace_meta { }.ace-tomorrow .ace_meta.ace_tag { color:#C82829;}.ace-tomorrow .ace_meta.ace_tag.ace_input { }.ace-tomorrow .ace_entity.ace_other.ace_attribute-name { color:#C82829;}.ace-tomorrow .ace_entity.ace_name { }.ace-tomorrow .ace_entity.ace_name.ace_function { color:#4271AE;}.ace-tomorrow .ace_markup.ace_underline { text-decoration:underline;}.ace-tomorrow .ace_markup.ace_heading { color:#718C00;}.ace-tomorrow .ace_markup.ace_heading.ace_1 { }.ace-tomorrow .ace_markup.ace_heading.ace_2 { }.ace-tomorrow .ace_markup.ace_heading.ace_3 { }.ace-tomorrow .ace_markup.ace_heading.ace_4 { }.ace-tomorrow .ace_markup.ace_heading.ace_5 { }.ace-tomorrow .ace_markup.ace_heading.ace_6 { }.ace-tomorrow .ace_markup.ace_list { }.ace-tomorrow .ace_collab.ace_user1 { }",b.cssClass="ace-tomorrow"})
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -5339,11 +5339,11 @@ exports.setCssClass = function(node, className, include) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function hasCssString(id, doc) {
|
exports.hasCssString = function(id, doc) {
|
||||||
var index = 0, sheets;
|
var index = 0, sheets;
|
||||||
doc = doc || document
|
doc = doc || document
|
||||||
|
|
||||||
if ((sheets = doc.styleSheets)) {
|
if (doc.createStyleSheet && (sheets = doc.styleSheets)) {
|
||||||
while (index < sheets.length)
|
while (index < sheets.length)
|
||||||
if (sheets[index++].title === id) return true;
|
if (sheets[index++].title === id) return true;
|
||||||
} else if ((sheets = doc.getElementsByTagName("style"))) {
|
} else if ((sheets = doc.getElementsByTagName("style"))) {
|
||||||
|
|
@ -5353,23 +5353,28 @@ function hasCssString(id, doc) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
exports.hasCssString = hasCssString;
|
|
||||||
|
|
||||||
exports.importCssString = function importCssString(cssText, id, doc) {
|
exports.importCssString = function importCssString(cssText, id, doc) {
|
||||||
doc = doc || document;
|
doc = doc || document;
|
||||||
// If style is already imported return immediately.
|
// If style is already imported return immediately.
|
||||||
if (id && hasCssString(id, doc)) return null;
|
if (id && exports.hasCssString(id, doc))
|
||||||
|
return null;
|
||||||
|
|
||||||
|
var style;
|
||||||
|
|
||||||
if (doc.createStyleSheet) {
|
if (doc.createStyleSheet) {
|
||||||
var sheet = doc.createStyleSheet();
|
style = doc.createStyleSheet();
|
||||||
sheet.cssText = cssText;
|
style.cssText = cssText;
|
||||||
if (id) sheet.title = id;
|
if (id)
|
||||||
|
style.title = id;
|
||||||
} else {
|
} else {
|
||||||
var style = doc.createElementNS ?
|
style = doc.createElementNS ?
|
||||||
doc.createElementNS(XHTML_NS, "style") :
|
doc.createElementNS(XHTML_NS, "style") :
|
||||||
doc.createElement("style");
|
doc.createElement("style");
|
||||||
|
|
||||||
if (id) style.id = id;
|
|
||||||
style.appendChild(doc.createTextNode(cssText));
|
style.appendChild(doc.createTextNode(cssText));
|
||||||
|
if (id)
|
||||||
|
style.id = id;
|
||||||
|
|
||||||
var head = doc.getElementsByTagName("head")[0] || doc.documentElement;
|
var head = doc.getElementsByTagName("head")[0] || doc.documentElement;
|
||||||
head.appendChild(style);
|
head.appendChild(style);
|
||||||
|
|
@ -6652,7 +6657,7 @@ var Editor =function(renderer, session) {
|
||||||
indentString = lang.stringRepeat(" ", count);
|
indentString = lang.stringRepeat(" ", count);
|
||||||
} else
|
} else
|
||||||
indentString = "\t";
|
indentString = "\t";
|
||||||
return this.onTextInput(indentString);
|
return this.onTextInput(indentString, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -7413,6 +7418,7 @@ var MouseHandler = function(editor) {
|
||||||
|
|
||||||
var mouseTarget = editor.renderer.getMouseEventTarget();
|
var mouseTarget = editor.renderer.getMouseEventTarget();
|
||||||
event.addListener(mouseTarget, "mousedown", this.onMouseDown.bind(this));
|
event.addListener(mouseTarget, "mousedown", this.onMouseDown.bind(this));
|
||||||
|
event.addListener(mouseTarget, "click", this.onMouseClick.bind(this));
|
||||||
event.addListener(mouseTarget, "mousemove", this.onMouseMove.bind(this));
|
event.addListener(mouseTarget, "mousemove", this.onMouseMove.bind(this));
|
||||||
event.addMultiMouseDownListener(mouseTarget, 0, 2, 500, this.onMouseDoubleClick.bind(this));
|
event.addMultiMouseDownListener(mouseTarget, 0, 2, 500, this.onMouseDoubleClick.bind(this));
|
||||||
event.addMultiMouseDownListener(mouseTarget, 0, 3, 600, this.onMouseTripleClick.bind(this));
|
event.addMultiMouseDownListener(mouseTarget, 0, 3, 600, this.onMouseTripleClick.bind(this));
|
||||||
|
|
@ -7434,6 +7440,10 @@ var MouseHandler = function(editor) {
|
||||||
this.onMouseDown = function(e) {
|
this.onMouseDown = function(e) {
|
||||||
this.editor._dispatchEvent("mousedown", new MouseEvent(e, this.editor));
|
this.editor._dispatchEvent("mousedown", new MouseEvent(e, this.editor));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.onMouseClick = function(e) {
|
||||||
|
this.editor._dispatchEvent("click", new MouseEvent(e, this.editor));
|
||||||
|
};
|
||||||
|
|
||||||
this.onMouseMove = function(e) {
|
this.onMouseMove = function(e) {
|
||||||
// optimization, because mousemove doesn't have a default handler.
|
// optimization, because mousemove doesn't have a default handler.
|
||||||
|
|
@ -7597,18 +7607,18 @@ function DefaultHandlers(editor) {
|
||||||
mousePageY = event.getDocumentY(e);
|
mousePageY = event.getDocumentY(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
var onMouseSelectionEnd = function() {
|
var onMouseSelectionEnd = function(e) {
|
||||||
clearInterval(timerId);
|
clearInterval(timerId);
|
||||||
if (state == STATE_UNKNOWN)
|
if (state == STATE_UNKNOWN)
|
||||||
onStartSelect(pos);
|
onStartSelect(pos);
|
||||||
else if (state == STATE_DRAG)
|
else if (state == STATE_DRAG)
|
||||||
onMouseDragSelectionEnd();
|
onMouseDragSelectionEnd(e);
|
||||||
|
|
||||||
_self.$clickSelection = null;
|
_self.$clickSelection = null;
|
||||||
state = STATE_UNKNOWN;
|
state = STATE_UNKNOWN;
|
||||||
};
|
};
|
||||||
|
|
||||||
var onMouseDragSelectionEnd = function() {
|
var onMouseDragSelectionEnd = function(e) {
|
||||||
dom.removeCssClass(editor.container, "ace_dragging");
|
dom.removeCssClass(editor.container, "ace_dragging");
|
||||||
editor.session.removeMarker(dragSelectionMarker);
|
editor.session.removeMarker(dragSelectionMarker);
|
||||||
|
|
||||||
|
|
@ -7628,7 +7638,12 @@ function DefaultHandlers(editor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
editor.clearSelection();
|
editor.clearSelection();
|
||||||
var newRange = editor.moveText(dragRange, dragCursor);
|
if (e && (e.ctrlKey || e.altKey)) {
|
||||||
|
var session = editor.session;
|
||||||
|
var newRange = session.insert(dragCursor, session.getTextRange(dragRange));
|
||||||
|
} else {
|
||||||
|
var newRange = editor.moveText(dragRange, dragCursor);
|
||||||
|
}
|
||||||
if (!newRange) {
|
if (!newRange) {
|
||||||
dragCursor = null;
|
dragCursor = null;
|
||||||
return;
|
return;
|
||||||
|
|
@ -8487,6 +8502,35 @@ canon.addCommand({
|
||||||
exec: function(env, args, request) { env.editor.transposeLetters(); }
|
exec: function(env, args, request) { env.editor.transposeLetters(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
canon.addCommand({
|
||||||
|
name: "fold",
|
||||||
|
bindKey: bindKey("Alt-L", "Alt-L"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.toggleFold(false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
canon.addCommand({
|
||||||
|
name: "unfold",
|
||||||
|
bindKey: bindKey("Alt-Shift-L", "Alt-Shift-L"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.toggleFold(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
canon.addCommand({
|
||||||
|
name: "foldall",
|
||||||
|
bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.foldAll();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
canon.addCommand({
|
||||||
|
name: "unfoldall",
|
||||||
|
bindKey: bindKey("Alt-Shift-0", "Alt-Shift-0"),
|
||||||
|
exec: function(env) {
|
||||||
|
env.editor.session.unFoldAll();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
/* vim:ts=4:sts=4:sw=4:
|
/* vim:ts=4:sts=4:sw=4:
|
||||||
* ***** BEGIN LICENSE BLOCK *****
|
* ***** BEGIN LICENSE BLOCK *****
|
||||||
|
|
@ -8581,7 +8625,7 @@ var EditSession = function(text, mode) {
|
||||||
this.doc = doc;
|
this.doc = doc;
|
||||||
doc.on("change", this.onChange.bind(this));
|
doc.on("change", this.onChange.bind(this));
|
||||||
this.on("changeFold", this.onChangeFold.bind(this));
|
this.on("changeFold", this.onChangeFold.bind(this));
|
||||||
|
|
||||||
if (this.bgTokenizer) {
|
if (this.bgTokenizer) {
|
||||||
this.bgTokenizer.setDocument(this.getDocument());
|
this.bgTokenizer.setDocument(this.getDocument());
|
||||||
this.bgTokenizer.start(0);
|
this.bgTokenizer.start(0);
|
||||||
|
|
@ -8626,7 +8670,7 @@ var EditSession = function(text, mode) {
|
||||||
folds: removedFolds
|
folds: removedFolds
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$informUndoManager.schedule();
|
this.$informUndoManager.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -8638,7 +8682,7 @@ var EditSession = function(text, mode) {
|
||||||
this.doc.setValue(text);
|
this.doc.setValue(text);
|
||||||
this.selection.moveCursorTo(0, 0);
|
this.selection.moveCursorTo(0, 0);
|
||||||
this.selection.clearSelection();
|
this.selection.clearSelection();
|
||||||
|
|
||||||
this.$resetRowCache(0);
|
this.$resetRowCache(0);
|
||||||
this.$deltas = [];
|
this.$deltas = [];
|
||||||
this.$deltasDoc = [];
|
this.$deltasDoc = [];
|
||||||
|
|
@ -8663,6 +8707,27 @@ var EditSession = function(text, mode) {
|
||||||
return this.bgTokenizer.getTokens(firstRow, lastRow);
|
return this.bgTokenizer.getTokens(firstRow, lastRow);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.getTokenAt = function(row, column) {
|
||||||
|
var tokens = this.bgTokenizer.getTokens(row, row)[0].tokens;
|
||||||
|
var token, c = 0;
|
||||||
|
if (column == null) {
|
||||||
|
i = tokens.length - 1;
|
||||||
|
c = this.getLine(row).length;
|
||||||
|
} else {
|
||||||
|
for (var i = 0; i < tokens.length; i++) {
|
||||||
|
c += tokens[i].value.length;
|
||||||
|
if (c >= column)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
token = tokens[i];
|
||||||
|
if (!token)
|
||||||
|
return null;
|
||||||
|
token.index = i;
|
||||||
|
token.start = c - token.value.length;
|
||||||
|
return token;
|
||||||
|
};
|
||||||
|
|
||||||
this.setUndoManager = function(undoManager) {
|
this.setUndoManager = function(undoManager) {
|
||||||
this.$undoManager = undoManager;
|
this.$undoManager = undoManager;
|
||||||
this.$resetRowCache(0);
|
this.$resetRowCache(0);
|
||||||
|
|
@ -8677,7 +8742,7 @@ var EditSession = function(text, mode) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.$syncInformUndoManager = function() {
|
this.$syncInformUndoManager = function() {
|
||||||
self.$informUndoManager.cancel();
|
self.$informUndoManager.cancel();
|
||||||
|
|
||||||
if (self.$deltasFold.length) {
|
if (self.$deltasFold.length) {
|
||||||
self.$deltas.push({
|
self.$deltas.push({
|
||||||
group: "fold",
|
group: "fold",
|
||||||
|
|
@ -8685,7 +8750,7 @@ var EditSession = function(text, mode) {
|
||||||
});
|
});
|
||||||
self.$deltasFold = [];
|
self.$deltasFold = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.$deltasDoc.length) {
|
if (self.$deltasDoc.length) {
|
||||||
self.$deltas.push({
|
self.$deltas.push({
|
||||||
group: "doc",
|
group: "doc",
|
||||||
|
|
@ -8693,14 +8758,14 @@ var EditSession = function(text, mode) {
|
||||||
});
|
});
|
||||||
self.$deltasDoc = [];
|
self.$deltasDoc = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.$deltas.length > 0) {
|
if (self.$deltas.length > 0) {
|
||||||
undoManager.execute({
|
undoManager.execute({
|
||||||
action: "aceupdate",
|
action: "aceupdate",
|
||||||
args: [self.$deltas, self]
|
args: [self.$deltas, self]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
self.$deltas = [];
|
self.$deltas = [];
|
||||||
}
|
}
|
||||||
this.$informUndoManager =
|
this.$informUndoManager =
|
||||||
|
|
@ -8969,7 +9034,7 @@ var EditSession = function(text, mode) {
|
||||||
|
|
||||||
this.bgTokenizer.setDocument(this.getDocument());
|
this.bgTokenizer.setDocument(this.getDocument());
|
||||||
this.bgTokenizer.start(0);
|
this.bgTokenizer.start(0);
|
||||||
|
|
||||||
this.tokenRe = mode.tokenRe;
|
this.tokenRe = mode.tokenRe;
|
||||||
this.nonTokenRe = mode.nonTokenRe;
|
this.nonTokenRe = mode.nonTokenRe;
|
||||||
|
|
||||||
|
|
@ -9384,7 +9449,7 @@ var EditSession = function(text, mode) {
|
||||||
this.$clipRowToDocument = function(row) {
|
this.$clipRowToDocument = function(row) {
|
||||||
return Math.max(0, Math.min(row, this.doc.getLength()-1));
|
return Math.max(0, Math.min(row, this.doc.getLength()-1));
|
||||||
};
|
};
|
||||||
|
|
||||||
this.$clipPositionToDocument = function(row, column) {
|
this.$clipPositionToDocument = function(row, column) {
|
||||||
column = Math.max(0, column);
|
column = Math.max(0, column);
|
||||||
|
|
||||||
|
|
@ -9400,7 +9465,7 @@ var EditSession = function(text, mode) {
|
||||||
column = Math.min(this.doc.getLine(row).length, column);
|
column = Math.min(this.doc.getLine(row).length, column);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
row: row,
|
row: row,
|
||||||
column: column
|
column: column
|
||||||
|
|
@ -9666,6 +9731,7 @@ var EditSession = function(text, mode) {
|
||||||
CHAR_EXT = 2,
|
CHAR_EXT = 2,
|
||||||
PLACEHOLDER_START = 3,
|
PLACEHOLDER_START = 3,
|
||||||
PLACEHOLDER_BODY = 4,
|
PLACEHOLDER_BODY = 4,
|
||||||
|
PUNCTUATION = 9,
|
||||||
SPACE = 10,
|
SPACE = 10,
|
||||||
TAB = 11,
|
TAB = 11,
|
||||||
TAB_SPACE = 12;
|
TAB_SPACE = 12;
|
||||||
|
|
@ -9709,7 +9775,7 @@ var EditSession = function(text, mode) {
|
||||||
// a split is simple.
|
// a split is simple.
|
||||||
if (tokens[split] >= SPACE) {
|
if (tokens[split] >= SPACE) {
|
||||||
// Include all following spaces + tabs in this split as well.
|
// Include all following spaces + tabs in this split as well.
|
||||||
while (tokens[split] >= SPACE) {
|
while (tokens[split] >= SPACE) {
|
||||||
split ++;
|
split ++;
|
||||||
}
|
}
|
||||||
addSplit(split);
|
addSplit(split);
|
||||||
|
|
@ -9764,16 +9830,17 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// === ELSE ===
|
// === ELSE ===
|
||||||
// Search for the first non space/tab/placeholder token backwards.
|
// Search for the first non space/tab/placeholder/punctuation token backwards.
|
||||||
for (split; split != lastSplit - 1; split--) {
|
var minSplit = Math.max(split - 10, lastSplit - 1);
|
||||||
if (tokens[split] >= PLACEHOLDER_START) {
|
while (split > minSplit && tokens[split] < PLACEHOLDER_START) {
|
||||||
split++;
|
split --;
|
||||||
break;
|
}
|
||||||
}
|
while (split > minSplit && tokens[split] == PUNCTUATION) {
|
||||||
|
split --;
|
||||||
}
|
}
|
||||||
// If we found one, then add the split.
|
// If we found one, then add the split.
|
||||||
if (split > lastSplit) {
|
if (split > minSplit) {
|
||||||
addSplit(split);
|
addSplit(++split);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -9781,7 +9848,7 @@ var EditSession = function(text, mode) {
|
||||||
split = lastSplit + wrapLimit;
|
split = lastSplit + wrapLimit;
|
||||||
// The split is inside of a CHAR or CHAR_EXT token and no space
|
// The split is inside of a CHAR or CHAR_EXT token and no space
|
||||||
// around -> force a split.
|
// around -> force a split.
|
||||||
addSplit(lastSplit + wrapLimit);
|
addSplit(split);
|
||||||
}
|
}
|
||||||
return splits;
|
return splits;
|
||||||
}
|
}
|
||||||
|
|
@ -9807,11 +9874,13 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Space
|
// Space
|
||||||
else if(c == 32) {
|
else if (c == 32) {
|
||||||
arr.push(SPACE);
|
arr.push(SPACE);
|
||||||
|
} else if((c > 39 && c < 48) || (c > 57 && c < 64)) {
|
||||||
|
arr.push(PUNCTUATION);
|
||||||
}
|
}
|
||||||
// full width characters
|
// full width characters
|
||||||
else if (isFullWidth(c)) {
|
else if (c >= 0x1100 && isFullWidth(c)) {
|
||||||
arr.push(CHAR, CHAR_EXT);
|
arr.push(CHAR, CHAR_EXT);
|
||||||
} else {
|
} else {
|
||||||
arr.push(CHAR);
|
arr.push(CHAR);
|
||||||
|
|
@ -9847,7 +9916,7 @@ var EditSession = function(text, mode) {
|
||||||
screenColumn += this.getScreenTabSize(screenColumn);
|
screenColumn += this.getScreenTabSize(screenColumn);
|
||||||
}
|
}
|
||||||
// full width characters
|
// full width characters
|
||||||
else if (isFullWidth(c)) {
|
else if (c >= 0x1100 && isFullWidth(c)) {
|
||||||
screenColumn += 2;
|
screenColumn += 2;
|
||||||
} else {
|
} else {
|
||||||
screenColumn += 1;
|
screenColumn += 1;
|
||||||
|
|
@ -9923,7 +9992,7 @@ var EditSession = function(text, mode) {
|
||||||
column: 0
|
column: 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var line;
|
var line;
|
||||||
var docRow = 0;
|
var docRow = 0;
|
||||||
var docColumn = 0;
|
var docColumn = 0;
|
||||||
|
|
@ -9943,11 +10012,11 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var doCache = !rowCache.length || i == rowCache.length;
|
var doCache = !rowCache.length || i == rowCache.length;
|
||||||
|
|
||||||
// clamp row before clamping column, for selection on last line
|
// clamp row before clamping column, for selection on last line
|
||||||
var maxRow = this.getLength() - 1;
|
var maxRow = this.getLength() - 1;
|
||||||
|
|
||||||
var foldLine = this.getNextFold(docRow);
|
var foldLine = this.getNextFoldLine(docRow);
|
||||||
var foldStart = foldLine ? foldLine.start.row : Infinity;
|
var foldStart = foldLine ? foldLine.start.row : Infinity;
|
||||||
|
|
||||||
while (row <= screenRow) {
|
while (row <= screenRow) {
|
||||||
|
|
@ -9959,7 +10028,7 @@ var EditSession = function(text, mode) {
|
||||||
docRow++;
|
docRow++;
|
||||||
if (docRow > foldStart) {
|
if (docRow > foldStart) {
|
||||||
docRow = foldLine.end.row+1;
|
docRow = foldLine.end.row+1;
|
||||||
foldLine = this.getNextFold(docRow);
|
foldLine = this.getNextFoldLine(docRow, foldLine);
|
||||||
foldStart = foldLine ? foldLine.start.row : Infinity;
|
foldStart = foldLine ? foldLine.start.row : Infinity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -10011,7 +10080,7 @@ var EditSession = function(text, mode) {
|
||||||
if (foldLine) {
|
if (foldLine) {
|
||||||
return foldLine.idxToPosition(docColumn);
|
return foldLine.idxToPosition(docColumn);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
row: docRow,
|
row: docRow,
|
||||||
column: docColumn
|
column: docColumn
|
||||||
|
|
@ -10022,12 +10091,12 @@ var EditSession = function(text, mode) {
|
||||||
// Normalize the passed in arguments.
|
// Normalize the passed in arguments.
|
||||||
if (typeof docColumn === "undefined")
|
if (typeof docColumn === "undefined")
|
||||||
var pos = this.$clipPositionToDocument(docRow.row, docRow.column);
|
var pos = this.$clipPositionToDocument(docRow.row, docRow.column);
|
||||||
else
|
else
|
||||||
pos = this.$clipPositionToDocument(docRow, docColumn);
|
pos = this.$clipPositionToDocument(docRow, docColumn);
|
||||||
|
|
||||||
docRow = pos.row;
|
docRow = pos.row;
|
||||||
docColumn = pos.column;
|
docColumn = pos.column;
|
||||||
|
|
||||||
var LL = this.$rowCache.length;
|
var LL = this.$rowCache.length;
|
||||||
|
|
||||||
var wrapData;
|
var wrapData;
|
||||||
|
|
@ -10069,7 +10138,7 @@ var EditSession = function(text, mode) {
|
||||||
}
|
}
|
||||||
var doCache = !rowCache.length || i == rowCache.length;
|
var doCache = !rowCache.length || i == rowCache.length;
|
||||||
|
|
||||||
var foldLine = this.getNextFold(row);
|
var foldLine = this.getNextFoldLine(row);
|
||||||
var foldStart = foldLine ?foldLine.start.row :Infinity;
|
var foldStart = foldLine ?foldLine.start.row :Infinity;
|
||||||
|
|
||||||
while (row < docRow) {
|
while (row < docRow) {
|
||||||
|
|
@ -10077,7 +10146,7 @@ var EditSession = function(text, mode) {
|
||||||
rowEnd = foldLine.end.row + 1;
|
rowEnd = foldLine.end.row + 1;
|
||||||
if (rowEnd > docRow)
|
if (rowEnd > docRow)
|
||||||
break;
|
break;
|
||||||
foldLine = this.getNextFold(rowEnd);
|
foldLine = this.getNextFoldLine(rowEnd, foldLine);
|
||||||
foldStart = foldLine ?foldLine.start.row :Infinity;
|
foldStart = foldLine ?foldLine.start.row :Infinity;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -10086,7 +10155,7 @@ var EditSession = function(text, mode) {
|
||||||
|
|
||||||
screenRow += this.getRowLength(row);
|
screenRow += this.getRowLength(row);
|
||||||
row = rowEnd;
|
row = rowEnd;
|
||||||
|
|
||||||
if (doCache) {
|
if (doCache) {
|
||||||
rowCache.push({
|
rowCache.push({
|
||||||
docRow: row,
|
docRow: row,
|
||||||
|
|
@ -10203,8 +10272,7 @@ var EditSession = function(text, mode) {
|
||||||
require("ace/edit_session/folding").Folding.call(EditSession.prototype);
|
require("ace/edit_session/folding").Folding.call(EditSession.prototype);
|
||||||
|
|
||||||
exports.EditSession = EditSession;
|
exports.EditSession = EditSession;
|
||||||
});
|
});/* ***** BEGIN LICENSE BLOCK *****
|
||||||
/* ***** BEGIN LICENSE BLOCK *****
|
|
||||||
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||||
*
|
*
|
||||||
* The contents of this file are subject to the Mozilla Public License Version
|
* The contents of this file are subject to the Mozilla Public License Version
|
||||||
|
|
@ -10329,7 +10397,7 @@ var Selection = function(session) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var anchor = this.getSelectionAnchor();
|
var anchor = this.getSelectionAnchor();
|
||||||
var lead = this.getSelectionLead();
|
var lead = this.getSelectionLead();
|
||||||
|
|
||||||
var isBackwards = this.isBackwards();
|
var isBackwards = this.isBackwards();
|
||||||
|
|
||||||
|
|
@ -10646,9 +10714,26 @@ var Selection = function(session) {
|
||||||
this.selectionLead.row,
|
this.selectionLead.row,
|
||||||
this.selectionLead.column
|
this.selectionLead.column
|
||||||
);
|
);
|
||||||
var screenCol = (chars == 0 && this.$desiredColumn) || screenPos.column;
|
|
||||||
|
var screenCol = (chars === 0 && this.$desiredColumn) || screenPos.column;
|
||||||
|
|
||||||
|
// so here is the deal. First checkout what the content of ur current and ur target line is
|
||||||
|
var currentLine = (this.session.getLines(screenPos.row, screenPos.row) || [""])[0],
|
||||||
|
targetLine = (this.session.getLines(screenPos.row + rows, screenPos.row + rows) || [""])[0];
|
||||||
|
|
||||||
|
// if you are at the EOL of your current line, and your targetline is all whitespace
|
||||||
|
if (currentLine && targetLine &&
|
||||||
|
currentLine.length === screenPos.column && targetLine.match(/^\s*$/)) {
|
||||||
|
// set the new column to the EOL of the target line
|
||||||
|
screenCol = this.session.getTabString(targetLine).length;
|
||||||
|
// update the chars so we are sure that the desired column will be updated
|
||||||
|
chars = 1;
|
||||||
|
};
|
||||||
|
|
||||||
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
var docPos = this.session.screenToDocumentPosition(screenPos.row + rows, screenCol);
|
||||||
this.moveCursorTo(docPos.row, docPos.column + chars, chars == 0);
|
|
||||||
|
// move the cursor and update the desired column
|
||||||
|
this.moveCursorTo(docPos.row, docPos.column + chars, chars === 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.moveCursorToPosition = function(position) {
|
this.moveCursorToPosition = function(position) {
|
||||||
|
|
@ -10786,9 +10871,12 @@ var Range = function(startRow, startColumn, endRow, endColumn) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.comparePoint = function(p) {
|
||||||
|
return this.compare(p.row, p.column);
|
||||||
|
}
|
||||||
|
|
||||||
this.containsRange = function(range) {
|
this.containsRange = function(range) {
|
||||||
var cmp = this.compareRange(range);
|
return this.comparePoint(range.start) == 0 && this.comparePoint(range.end) == 0;
|
||||||
return (cmp == -1 || cmp == 0 || cmp == 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.isEnd = function(row, column) {
|
this.isEnd = function(row, column) {
|
||||||
|
|
@ -11198,13 +11286,12 @@ var Mode = function() {
|
||||||
for (var key in behaviours) {
|
for (var key in behaviours) {
|
||||||
if (behaviours[key][action]) {
|
if (behaviours[key][action]) {
|
||||||
var ret = behaviours[key][action].apply(this, arguments);
|
var ret = behaviours[key][action].apply(this, arguments);
|
||||||
if (ret !== false) {
|
if (ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}).call(Mode.prototype);
|
}).call(Mode.prototype);
|
||||||
|
|
@ -12513,7 +12600,7 @@ function Folding() {
|
||||||
var foldLine = this.getFoldLine(row);
|
var foldLine = this.getFoldLine(row);
|
||||||
if (!foldLine)
|
if (!foldLine)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var folds = foldLine.folds;
|
var folds = foldLine.folds;
|
||||||
for (var i = 0; i < folds.length; i++) {
|
for (var i = 0; i < folds.length; i++) {
|
||||||
var fold = folds[i];
|
var fold = folds[i];
|
||||||
|
|
@ -12595,7 +12682,7 @@ function Folding() {
|
||||||
var foldLine = foldLine || this.getFoldLine(row);
|
var foldLine = foldLine || this.getFoldLine(row);
|
||||||
if (!foldLine)
|
if (!foldLine)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var lastFold = {
|
var lastFold = {
|
||||||
end: { column: 0 }
|
end: { column: 0 }
|
||||||
};
|
};
|
||||||
|
|
@ -12644,7 +12731,7 @@ function Folding() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the fold which starts after or contains docRow
|
// returns the fold which starts after or contains docRow
|
||||||
this.getNextFold = function(docRow, startFoldLine) {
|
this.getNextFoldLine = function(docRow, startFoldLine) {
|
||||||
var foldData = this.$foldData, ans;
|
var foldData = this.$foldData, ans;
|
||||||
var i = 0;
|
var i = 0;
|
||||||
if (startFoldLine)
|
if (startFoldLine)
|
||||||
|
|
@ -12712,7 +12799,7 @@ function Folding() {
|
||||||
var startColumn = fold.start.column;
|
var startColumn = fold.start.column;
|
||||||
var endRow = fold.end.row;
|
var endRow = fold.end.row;
|
||||||
var endColumn = fold.end.column;
|
var endColumn = fold.end.column;
|
||||||
|
|
||||||
// --- Some checking ---
|
// --- Some checking ---
|
||||||
if (fold.placeholder.length < 2)
|
if (fold.placeholder.length < 2)
|
||||||
throw "Placeholder has to be at least 2 characters";
|
throw "Placeholder has to be at least 2 characters";
|
||||||
|
|
@ -12950,8 +13037,85 @@ function Folding() {
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
this.toggleFold = function(tryToUnfold) {
|
||||||
|
var selection = this.selection;
|
||||||
|
var range = selection.getRange();
|
||||||
|
|
||||||
|
if (range.isEmpty()) {
|
||||||
|
var cursor = range.start
|
||||||
|
var fold = this.getFoldAt(cursor.row, cursor.column);
|
||||||
|
var bracketPos, column;
|
||||||
|
|
||||||
|
if (fold) {
|
||||||
|
this.expandFold(fold);
|
||||||
|
return;
|
||||||
|
} else if (bracketPos = this.findMatchingBracket(cursor)) {
|
||||||
|
if (range.comparePoint(bracketPos) == 1) {
|
||||||
|
range.end = bracketPos;
|
||||||
|
} else {
|
||||||
|
range.start = bracketPos;
|
||||||
|
range.start.column++;
|
||||||
|
range.end.column--;
|
||||||
|
}
|
||||||
|
} else if (bracketPos = this.findMatchingBracket({row: cursor.row, column: cursor.column + 1})) {
|
||||||
|
if (range.comparePoint(bracketPos) == 1)
|
||||||
|
range.end = bracketPos;
|
||||||
|
else
|
||||||
|
range.start = bracketPos;
|
||||||
|
|
||||||
|
range.start.column++;
|
||||||
|
} else {
|
||||||
|
var token = this.getTokenAt(cursor.row, cursor.column);
|
||||||
|
if (token && /^comment|string/.test(token.type)) {
|
||||||
|
var startRow = cursor.row;
|
||||||
|
var endRow = cursor.row;
|
||||||
|
var t = token;
|
||||||
|
while ((t = this.getTokenAt(startRow - 1)) && t.type == token.type) {
|
||||||
|
startRow --;
|
||||||
|
token = t;
|
||||||
|
}
|
||||||
|
range.start.row = startRow;
|
||||||
|
range.start.column = token.start + 2;
|
||||||
|
|
||||||
|
while ((t = this.getTokenAt(endRow + 1, 0)) && t.type == token.type) {
|
||||||
|
endRow ++;
|
||||||
|
token = t;
|
||||||
|
}
|
||||||
|
range.end.row = endRow;
|
||||||
|
range.end.column = token.start + token.value.length - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var folds = this.getFoldsInRange(range);
|
||||||
|
if (tryToUnfold && folds.length) {
|
||||||
|
this.expandFolds(folds);
|
||||||
|
return;
|
||||||
|
} else if (folds.length == 1 ) {
|
||||||
|
fold = folds[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!fold)
|
||||||
|
fold = this.getFoldAt(range.start.row, range.start.column);
|
||||||
|
|
||||||
|
if (fold && fold.range.toString() == range.toString()){
|
||||||
|
this.expandFold(fold);
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var placeholder = "...";
|
||||||
|
if (!range.isMultiLine()) {
|
||||||
|
placeholder = this.getTextRange(range);
|
||||||
|
if(placeholder.length < 4)
|
||||||
|
return;
|
||||||
|
placeholder = placeholder.trim().substring(0, 2) + ".."
|
||||||
|
}
|
||||||
|
|
||||||
|
this.addFold(placeholder, range);
|
||||||
|
};
|
||||||
|
}
|
||||||
exports.Folding = Folding;
|
exports.Folding = Folding;
|
||||||
|
|
||||||
});/* vim:ts=4:sts=4:sw=4:
|
});/* vim:ts=4:sts=4:sw=4:
|
||||||
|
|
@ -13395,20 +13559,28 @@ Search.SELECTION = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.findAll = function(session) {
|
this.findAll = function(session) {
|
||||||
if (!this.$options.needle)
|
var options = this.$options;
|
||||||
|
if (!options.needle)
|
||||||
return [];
|
return [];
|
||||||
|
|
||||||
if (this.$options.backwards) {
|
if (options.backwards) {
|
||||||
var iterator = this.$backwardMatchIterator(session);
|
var iterator = this.$backwardMatchIterator(session);
|
||||||
} else {
|
} else {
|
||||||
iterator = this.$forwardMatchIterator(session);
|
iterator = this.$forwardMatchIterator(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ignoreCursor = !options.start && options.wrap && options.scope == Search.ALL;
|
||||||
|
if (ignoreCursor)
|
||||||
|
options.start = {row: 0, column: 0};
|
||||||
|
|
||||||
var ranges = [];
|
var ranges = [];
|
||||||
iterator.forEach(function(range) {
|
iterator.forEach(function(range) {
|
||||||
ranges.push(range);
|
ranges.push(range);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (ignoreCursor)
|
||||||
|
options.start = null;
|
||||||
|
|
||||||
return ranges;
|
return ranges;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -13519,8 +13691,8 @@ Search.SELECTION = 2;
|
||||||
this.$forwardLineIterator = function(session) {
|
this.$forwardLineIterator = function(session) {
|
||||||
var searchSelection = this.$options.scope == Search.SELECTION;
|
var searchSelection = this.$options.scope == Search.SELECTION;
|
||||||
|
|
||||||
var range = session.getSelection().getRange();
|
var range = this.$options.range || session.getSelection().getRange();
|
||||||
var start = session.getSelection().getCursor();
|
var start = this.$options.start || session.getSelection().getCursor();
|
||||||
|
|
||||||
var firstRow = searchSelection ? range.start.row : 0;
|
var firstRow = searchSelection ? range.start.row : 0;
|
||||||
var firstColumn = searchSelection ? range.start.column : 0;
|
var firstColumn = searchSelection ? range.start.column : 0;
|
||||||
|
|
@ -13581,8 +13753,8 @@ Search.SELECTION = 2;
|
||||||
this.$backwardLineIterator = function(session) {
|
this.$backwardLineIterator = function(session) {
|
||||||
var searchSelection = this.$options.scope == Search.SELECTION;
|
var searchSelection = this.$options.scope == Search.SELECTION;
|
||||||
|
|
||||||
var range = session.getSelection().getRange();
|
var range = this.$options.range || session.getSelection().getRange();
|
||||||
var start = searchSelection ? range.end : range.start;
|
var start = this.$options.start || session.getSelection().getCursor();
|
||||||
|
|
||||||
var firstRow = searchSelection ? range.start.row : 0;
|
var firstRow = searchSelection ? range.start.row : 0;
|
||||||
var firstColumn = searchSelection ? range.start.column : 0;
|
var firstColumn = searchSelection ? range.start.column : 0;
|
||||||
|
|
@ -14688,13 +14860,13 @@ var Gutter = function(parentEl) {
|
||||||
var html = [];
|
var html = [];
|
||||||
var i = config.firstRow;
|
var i = config.firstRow;
|
||||||
var lastRow = config.lastRow;
|
var lastRow = config.lastRow;
|
||||||
var fold = this.session.getNextFold(i);
|
var fold = this.session.getNextFoldLine(i);
|
||||||
var foldStart = fold ? fold.start.row : Infinity;
|
var foldStart = fold ? fold.start.row : Infinity;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(i > foldStart) {
|
if(i > foldStart) {
|
||||||
i = fold.end.row + 1;
|
i = fold.end.row + 1;
|
||||||
fold = this.session.getNextFold(i);
|
fold = this.session.getNextFoldLine(i, fold);
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
}
|
}
|
||||||
if(i > lastRow)
|
if(i > lastRow)
|
||||||
|
|
@ -15206,13 +15378,13 @@ var Text = function(parentEl) {
|
||||||
this.$renderLinesFragment = function(config, firstRow, lastRow) {
|
this.$renderLinesFragment = function(config, firstRow, lastRow) {
|
||||||
var fragment = this.element.ownerDocument.createDocumentFragment(),
|
var fragment = this.element.ownerDocument.createDocumentFragment(),
|
||||||
row = firstRow,
|
row = firstRow,
|
||||||
fold = this.session.getNextFold(row),
|
fold = this.session.getNextFoldLine(row),
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(row > foldStart) {
|
if(row > foldStart) {
|
||||||
row = fold.end.row+1;
|
row = fold.end.row+1;
|
||||||
fold = this.session.getNextFold(row);
|
fold = this.session.getNextFoldLine(row, fold);
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
}
|
}
|
||||||
if(row > lastRow)
|
if(row > lastRow)
|
||||||
|
|
@ -15253,13 +15425,13 @@ var Text = function(parentEl) {
|
||||||
var firstRow = config.firstRow, lastRow = config.lastRow;
|
var firstRow = config.firstRow, lastRow = config.lastRow;
|
||||||
|
|
||||||
var row = firstRow,
|
var row = firstRow,
|
||||||
fold = this.session.getNextFold(row),
|
fold = this.session.getNextFoldLine(row),
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if(row > foldStart) {
|
if(row > foldStart) {
|
||||||
row = fold.end.row+1;
|
row = fold.end.row+1;
|
||||||
fold = this.session.getNextFold(row);
|
fold = this.session.getNextFoldLine(row, fold);
|
||||||
foldStart = fold ?fold.start.row :Infinity;
|
foldStart = fold ?fold.start.row :Infinity;
|
||||||
}
|
}
|
||||||
if(row > lastRow)
|
if(row > lastRow)
|
||||||
|
|
@ -16294,7 +16466,30 @@ __ace_shadowed__.define("text!ace/css/editor.css", [], "@import url(//fonts.goog
|
||||||
"}\n" +
|
"}\n" +
|
||||||
"");
|
"");
|
||||||
|
|
||||||
__ace_shadowed__.define("text!build/demo/styles.css", [], "html {\n" +
|
__ace_shadowed__.define("text!ace/ext/static.css", [], ".ace_editor {\n" +
|
||||||
|
" font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace;\n" +
|
||||||
|
" font-size: 12px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace_editor .ace_gutter { \n" +
|
||||||
|
" width: 25px !important;\n" +
|
||||||
|
" display: block;\n" +
|
||||||
|
" float: left;\n" +
|
||||||
|
" text-align: right; \n" +
|
||||||
|
" padding: 0 3px 0 0; \n" +
|
||||||
|
" margin-right: 3px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace-row { clear: both; }\n" +
|
||||||
|
"\n" +
|
||||||
|
"*.ace_gutter-cell {\n" +
|
||||||
|
" -moz-user-select: -moz-none;\n" +
|
||||||
|
" -khtml-user-select: none;\n" +
|
||||||
|
" -webkit-user-select: none;\n" +
|
||||||
|
" user-select: none;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
|
__ace_shadowed__.define("text!build/demo/kitchen-sink/styles.css", [], "html {\n" +
|
||||||
" height: 100%;\n" +
|
" height: 100%;\n" +
|
||||||
" width: 100%;\n" +
|
" width: 100%;\n" +
|
||||||
" overflow: hidden;\n" +
|
" overflow: hidden;\n" +
|
||||||
|
|
@ -16802,13 +16997,13 @@ __ace_shadowed__.define("text!build_support/style.css", [], "body {\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"");
|
"");
|
||||||
|
|
||||||
__ace_shadowed__.define("text!demo/docs/css.css", [], ".text-layer {\n" +
|
__ace_shadowed__.define("text!demo/kitchen-sink/docs/css.css", [], ".text-layer {\n" +
|
||||||
" font-family: Monaco, \"Courier New\", monospace;\n" +
|
" font-family: Monaco, \"Courier New\", monospace;\n" +
|
||||||
" font-size: 12px;\n" +
|
" font-size: 12px;\n" +
|
||||||
" cursor: text;\n" +
|
" cursor: text;\n" +
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
__ace_shadowed__.define("text!demo/styles.css", [], "html {\n" +
|
__ace_shadowed__.define("text!demo/kitchen-sink/styles.css", [], "html {\n" +
|
||||||
" height: 100%;\n" +
|
" height: 100%;\n" +
|
||||||
" width: 100%;\n" +
|
" width: 100%;\n" +
|
||||||
" overflow: hidden;\n" +
|
" overflow: hidden;\n" +
|
||||||
|
|
@ -16852,50 +17047,6 @@ __ace_shadowed__.define("text!demo/styles.css", [], "html {\n" +
|
||||||
" text-align: left;\n" +
|
" text-align: left;\n" +
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
__ace_shadowed__.define("text!deps/csslint/demos/demo.css", [], "@charset \"UTF-8\";\n" +
|
|
||||||
"\n" +
|
|
||||||
"@import url(\"booya.css\") print,screen;\n" +
|
|
||||||
"@import \"whatup.css\" screen;\n" +
|
|
||||||
"@import \"wicked.css\";\n" +
|
|
||||||
"\n" +
|
|
||||||
"@namespace \"http://www.w3.org/1999/xhtml\";\n" +
|
|
||||||
"@namespace svg \"http://www.w3.org/2000/svg\";\n" +
|
|
||||||
"\n" +
|
|
||||||
"li.inline #foo {\n" +
|
|
||||||
" background: url(\"something.png\");\n" +
|
|
||||||
" display: inline;\n" +
|
|
||||||
" padding-left: 3px;\n" +
|
|
||||||
" padding-right: 7px;\n" +
|
|
||||||
" border-right: 1px dotted #066;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"li.last.first {\n" +
|
|
||||||
" display: inline;\n" +
|
|
||||||
" padding-left: 3px !important;\n" +
|
|
||||||
" padding-right: 3px;\n" +
|
|
||||||
" border-right: 0px;\n" +
|
|
||||||
"}\n" +
|
|
||||||
"\n" +
|
|
||||||
"@media print {\n" +
|
|
||||||
" li.inline {\n" +
|
|
||||||
" color: black;\n" +
|
|
||||||
" }\n" +
|
|
||||||
"\n" +
|
|
||||||
"\n" +
|
|
||||||
"@charset \"UTF-8\"; \n" +
|
|
||||||
"\n" +
|
|
||||||
"@page {\n" +
|
|
||||||
" margin: 10%;\n" +
|
|
||||||
" counter-increment: page;\n" +
|
|
||||||
"\n" +
|
|
||||||
" @top-center {\n" +
|
|
||||||
" font-family: sans-serif;\n" +
|
|
||||||
" font-weight: bold;\n" +
|
|
||||||
" font-size: 2em;\n" +
|
|
||||||
" content: counter(page);\n" +
|
|
||||||
" }\n" +
|
|
||||||
"}");
|
|
||||||
|
|
||||||
__ace_shadowed__.define("text!doc/site/iphone.css", [], "#wrapper {\n" +
|
__ace_shadowed__.define("text!doc/site/iphone.css", [], "#wrapper {\n" +
|
||||||
" position:relative;\n" +
|
" position:relative;\n" +
|
||||||
" overflow:hidden;\n" +
|
" overflow:hidden;\n" +
|
||||||
|
|
@ -17332,6 +17483,40 @@ __ace_shadowed__.define("text!lib/ace/css/editor.css", [], "@import url(//fonts.
|
||||||
"}\n" +
|
"}\n" +
|
||||||
"");
|
"");
|
||||||
|
|
||||||
|
__ace_shadowed__.define("text!lib/ace/ext/static.css", [], ".ace_editor {\n" +
|
||||||
|
" font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace;\n" +
|
||||||
|
" font-size: 12px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace_editor .ace_gutter { \n" +
|
||||||
|
" width: 25px !important;\n" +
|
||||||
|
" display: block;\n" +
|
||||||
|
" float: left;\n" +
|
||||||
|
" text-align: right; \n" +
|
||||||
|
" padding: 0 3px 0 0; \n" +
|
||||||
|
" margin-right: 3px;\n" +
|
||||||
|
"}\n" +
|
||||||
|
"\n" +
|
||||||
|
".ace-row { clear: both; }\n" +
|
||||||
|
"\n" +
|
||||||
|
"*.ace_gutter-cell {\n" +
|
||||||
|
" -moz-user-select: -moz-none;\n" +
|
||||||
|
" -khtml-user-select: none;\n" +
|
||||||
|
" -webkit-user-select: none;\n" +
|
||||||
|
" user-select: none;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
|
__ace_shadowed__.define("text!node_modules/jsdom/node_modules/cssom/docs/bar.css", [], "body * {\n" +
|
||||||
|
" color: red !important;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
|
__ace_shadowed__.define("text!node_modules/jsdom/node_modules/cssom/docs/demo.css", [], "");
|
||||||
|
|
||||||
|
__ace_shadowed__.define("text!node_modules/jsdom/node_modules/cssom/docs/foo.css", [], "@import \"bar.css\" screen;\n" +
|
||||||
|
"body {\n" +
|
||||||
|
" background: black !important;\n" +
|
||||||
|
"}");
|
||||||
|
|
||||||
__ace_shadowed__.define("text!node_modules/uglify-js/docstyle.css", [], "html { font-family: \"Lucida Grande\",\"Trebuchet MS\",sans-serif; font-size: 12pt; }\n" +
|
__ace_shadowed__.define("text!node_modules/uglify-js/docstyle.css", [], "html { font-family: \"Lucida Grande\",\"Trebuchet MS\",sans-serif; font-size: 12pt; }\n" +
|
||||||
"body { max-width: 60em; }\n" +
|
"body { max-width: 60em; }\n" +
|
||||||
".title { text-align: center; }\n" +
|
".title { text-align: center; }\n" +
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
__ace_shadowed__.define("ace/mode/python",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/python_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/python_highlight_rules").PythonHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules())};d.inherits(j,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=[],g=/^(\s*)#/;for(var h=c;h<=d;h++)if(!g.test(b.getLine(h))){e=!1;break}if(e){var j=new i(0,0,0,0);for(var h=c;h<=d;h++){var k=b.getLine(h),l=k.match(g);j.start.row=h,j.end.row=h,j.end.column=l[0].length,b.replace(j,l[1])}}else b.indentRows(c,d,"#")},this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a),f=e.tokens,g=e.state;if(f.length&&f[f.length-1].type=="comment")return d;if(a=="start"){var h=b.match(/^.*[\{\(\[\:]\s*$/);h&&(d+=c)}return d};var a={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(b,c,d){if(d!=="\r\n"&&d!=="\r"&&d!=="\n")return!1;var e=this.$tokenizer.getLineTokens(c.trim(),b).tokens;if(!e)return!1;do var f=e.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&a[f.value]:!1},this.autoOutdent=function(a,b,c){c+=1;var d=this.$getIndent(b.getLine(c)),e=b.getTabString();d.slice(-e.length)==e&&b.remove(new i(c,d.length-e.length,c,d.length))}}.call(j.prototype),b.Mode=j}),__ace_shadowed__.define("ace/mode/python_highlight_rules",["require","exports","module","pilot/oop","pilot/lang","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("pilot/lang"),f=a("ace/mode/text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield".split("|")),b=e.arrayToMap("True|False|None|NotImplemented|Ellipsis|__debug__".split("|")),c=e.arrayToMap("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern".split("|")),d=e.arrayToMap("".split("|")),f="(?:r|u|ur|R|U|UR|Ur|uR)?",g="(?:(?:[1-9]\\d*)|(?:0))",h="(?:0[oO]?[0-7]+)",i="(?:0[xX][\\dA-Fa-f]+)",j="(?:0[bB][01]+)",k="(?:"+g+"|"+h+"|"+i+"|"+j+")",l="(?:[eE][+-]?\\d+)",m="(?:\\.\\d+)",n="(?:\\d+)",o="(?:(?:"+n+"?"+m+")|(?:"+n+"\\.))",p="(?:(?:"+o+"|"+n+")"+l+")",q="(?:"+p+"|"+o+")";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:f+'"{3}(?:[^\\\\]|\\\\.)*?"{3}'},{token:"string",merge:!0,regex:f+'"{3}.*$',next:"qqstring"},{token:"string",regex:f+'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:f+"'{3}(?:[^\\\\]|\\\\.)*?'{3}"},{token:"string",merge:!0,regex:f+"'{3}.*$",next:"qstring"},{token:"string",regex:f+"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:"(?:"+q+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:q},{token:"constant.numeric",regex:k+"[lL]\\b"},{token:"constant.numeric",regex:k+"\\b"},{token:function(e){return a.hasOwnProperty(e)?"keyword":b.hasOwnProperty(e)?"constant.language":d.hasOwnProperty(e)?"invalid.illegal":c.hasOwnProperty(e)?"support.function":e=="debugger"?"invalid.deprecated":"identifier"},regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"lparen.paren",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?"{3}',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:[^\\\\]|\\\\.)*?'{3}",next:"start"},{token:"string",merge:!0,regex:".+"}]}};d.inherits(g,f),b.PythonHighlightRules=g}),__ace_shadowed__.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e})
|
__ace_shadowed__.define("ace/mode/python",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/python_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/python_highlight_rules").PythonHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules())};d.inherits(j,e),function(){this.toggleCommentLines=function(a,b,c,d){var e=!0,f=[],g=/^(\s*)#/;for(var h=c;h<=d;h++)if(!g.test(b.getLine(h))){e=!1;break}if(e){var j=new i(0,0,0,0);for(var h=c;h<=d;h++){var k=b.getLine(h),l=k.match(g);j.start.row=h,j.end.row=h,j.end.column=l[0].length,b.replace(j,l[1])}}else b.indentRows(c,d,"#")},this.getNextLineIndent=function(a,b,c){var d=this.$getIndent(b),e=this.$tokenizer.getLineTokens(b,a),f=e.tokens,g=e.state;if(f.length&&f[f.length-1].type=="comment")return d;if(a=="start"){var h=b.match(/^.*[\{\(\[\:]\s*$/);h&&(d+=c)}return d};var a={pass:1,"return":1,raise:1,"break":1,"continue":1};this.checkOutdent=function(b,c,d){if(d!=="\r\n"&&d!=="\r"&&d!=="\n")return!1;var e=this.$tokenizer.getLineTokens(c.trim(),b).tokens;if(!e)return!1;do var f=e.pop();while(f&&(f.type=="comment"||f.type=="text"&&f.value.match(/^\s+$/)));return f?f.type=="keyword"&&a[f.value]:!1},this.autoOutdent=function(a,b,c){c+=1;var d=this.$getIndent(b.getLine(c)),e=b.getTabString();d.slice(-e.length)==e&&b.remove(new i(c,d.length-e.length,c,d.length))}}.call(j.prototype),b.Mode=j}),__ace_shadowed__.define("ace/mode/python_highlight_rules",["require","exports","module","pilot/oop","pilot/lang","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("pilot/lang"),f=a("ace/mode/text_highlight_rules").TextHighlightRules,g=function(){var a=e.arrayToMap("and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield".split("|")),b=e.arrayToMap("True|False|None|NotImplemented|Ellipsis|__debug__".split("|")),c=e.arrayToMap("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern".split("|")),d=e.arrayToMap("".split("|")),f="(?:r|u|ur|R|U|UR|Ur|uR)?",g="(?:(?:[1-9]\\d*)|(?:0))",h="(?:0[oO]?[0-7]+)",i="(?:0[xX][\\dA-Fa-f]+)",j="(?:0[bB][01]+)",k="(?:"+g+"|"+h+"|"+i+"|"+j+")",l="(?:[eE][+-]?\\d+)",m="(?:\\.\\d+)",n="(?:\\d+)",o="(?:(?:"+n+"?"+m+")|(?:"+n+"\\.))",p="(?:(?:"+o+"|"+n+")"+l+")",q="(?:"+p+"|"+o+")";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:f+'"{3}(?:[^\\\\]|\\\\.)*?"{3}'},{token:"string",merge:!0,regex:f+'"{3}.*$',next:"qqstring"},{token:"string",regex:f+'"(?:[^\\\\]|\\\\.)*?"'},{token:"string",regex:f+"'{3}(?:[^\\\\]|\\\\.)*?'{3}"},{token:"string",merge:!0,regex:f+"'{3}.*$",next:"qstring"},{token:"string",regex:f+"'(?:[^\\\\]|\\\\.)*?'"},{token:"constant.numeric",regex:"(?:"+q+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:q},{token:"constant.numeric",regex:k+"[lL]\\b"},{token:"constant.numeric",regex:k+"\\b"},{token:function(e){return a.hasOwnProperty(e)?"keyword":b.hasOwnProperty(e)?"constant.language":d.hasOwnProperty(e)?"invalid.illegal":c.hasOwnProperty(e)?"support.function":e=="debugger"?"invalid.deprecated":"identifier"},regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"lparen.paren",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:[^\\\\]|\\\\.)*?"{3}',next:"start"},{token:"string",merge:!0,regex:".+"}],qstring:[{token:"string",regex:"(?:[^\\\\]|\\\\.)*?'{3}",next:"start"},{token:"string",merge:!0,regex:".+"}]}};d.inherits(g,f),b.PythonHighlightRules=g}),__ace_shadowed__.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};((function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}})).call(e.prototype),b.MatchingBraceOutdent=e})
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
||||||
__ace_shadowed__.define("ace/mode/textile",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/textile_highlight_rules").TextileHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return a=="intag"?c:""},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(j.prototype),b.Mode=j}),__ace_shadowed__.define("ace/mode/textile_highlight_rules",["require","exports","module","pilot/oop","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"keyword",token:function(a){return a.match(/^h\d$/)?"markup.heading."+a.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};d.inherits(f,e),b.TextileHighlightRules=f}),__ace_shadowed__.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e})
|
__ace_shadowed__.define("ace/mode/textile",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/textile_highlight_rules").TextileHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return a=="intag"?c:""},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(j.prototype),b.Mode=j}),__ace_shadowed__.define("ace/mode/textile_highlight_rules",["require","exports","module","pilot/oop","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"keyword",token:function(a){return a.match(/^h\d$/)?"markup.heading."+a.charAt(1):"markup.heading"},regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};d.inherits(f,e),b.TextileHighlightRules=f}),__ace_shadowed__.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};((function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}})).call(e.prototype),b.MatchingBraceOutdent=e})
|
||||||
|
|
@ -1 +1 @@
|
||||||
__ace_shadowed__.define("ace/theme/tomorrow",["require","exports","module"],function(a,b,c){var d=a("pilot/dom"),e=".ace-tomorrow .ace_editor { border: 2px solid rgb(159, 159, 159);}.ace-tomorrow .ace_editor.ace_focus { border: 2px solid #327fbd;}.ace-tomorrow .ace_gutter { width: 50px; background: #e8e8e8; color: #333; overflow : hidden;}.ace-tomorrow .ace_gutter-layer { width: 100%; text-align: right;}.ace-tomorrow .ace_gutter-layer .ace_gutter-cell { padding-right: 6px;}.ace-tomorrow .ace_print_margin { width: 1px; background: #e8e8e8;}.ace-tomorrow .ace_scroller { background-color: #FFFFFF;}.ace-tomorrow .ace_text-layer { cursor: text; color: #4D4D4C;}.ace-tomorrow .ace_cursor { border-left: 2px solid #AEAFAD;}.ace-tomorrow .ace_cursor.ace_overwrite { border-left: 0px; border-bottom: 1px solid #AEAFAD;} .ace-tomorrow .ace_marker-layer .ace_selection { background: #D6D6D6;}.ace-tomorrow .ace_marker-layer .ace_step { background: rgb(198, 219, 174);}.ace-tomorrow .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #D1D1D1;}.ace-tomorrow .ace_marker-layer .ace_active_line { background: #EFEFEF;} .ace-tomorrow .ace_invisible { color: #D1D1D1;}.ace-tomorrow .ace_keyword { color:#8959A8;}.ace-tomorrow .ace_keyword.ace_operator { color:#3E999F;}.ace-tomorrow .ace_constant { }.ace-tomorrow .ace_constant.ace_language { color:#F5871F;}.ace-tomorrow .ace_constant.ace_library { }.ace-tomorrow .ace_constant.ace_numeric { color:#F5871F;}.ace-tomorrow .ace_invalid { color:#FFFFFF;background-color:#C82829;}.ace-tomorrow .ace_invalid.ace_illegal { }.ace-tomorrow .ace_invalid.ace_deprecated { color:#FFFFFF;background-color:#8959A8;}.ace-tomorrow .ace_support { }.ace-tomorrow .ace_support.ace_function { color:#4271AE;}.ace-tomorrow .ace_function.ace_buildin { }.ace-tomorrow .ace_string { color:#718C00;}.ace-tomorrow .ace_string.ace_regexp { color:#C82829;}.ace-tomorrow .ace_comment { color:#8E908C;}.ace-tomorrow .ace_comment.ace_doc { }.ace-tomorrow .ace_comment.ace_doc.ace_tag { }.ace-tomorrow .ace_variable { color:#C82829;}.ace-tomorrow .ace_variable.ace_language { }.ace-tomorrow .ace_xml_pe { }.ace-tomorrow .ace_meta { }.ace-tomorrow .ace_meta.ace_tag { color:#C82829;}.ace-tomorrow .ace_meta.ace_tag.ace_input { }.ace-tomorrow .ace_entity.ace_other.ace_attribute-name { color:#C82829;}.ace-tomorrow .ace_entity.ace_name { }.ace-tomorrow .ace_entity.ace_name.ace_function { color:#4271AE;}.ace-tomorrow .ace_markup.ace_underline { text-decoration:underline;}.ace-tomorrow .ace_markup.ace_heading { color:#718C00;}.ace-tomorrow .ace_markup.ace_heading.ace_1 { }.ace-tomorrow .ace_markup.ace_heading.ace_2 { }.ace-tomorrow .ace_markup.ace_heading.ace_3 { }.ace-tomorrow .ace_markup.ace_heading.ace_4 { }.ace-tomorrow .ace_markup.ace_heading.ace_5 { }.ace-tomorrow .ace_markup.ace_heading.ace_6 { }.ace-tomorrow .ace_markup.ace_list { }.ace-tomorrow .ace_collab.ace_user1 { }";d.importCssString(e),b.cssClass="ace-tomorrow"})
|
__ace_shadowed__.define("ace/theme/tomorrow",["require","exports","module"],function(a,b,c){b.cssText=".ace-tomorrow .ace_editor { border: 2px solid rgb(159, 159, 159);}.ace-tomorrow .ace_editor.ace_focus { border: 2px solid #327fbd;}.ace-tomorrow .ace_gutter { width: 50px; background: #e8e8e8; color: #333; overflow : hidden;}.ace-tomorrow .ace_gutter-layer { width: 100%; text-align: right;}.ace-tomorrow .ace_gutter-layer .ace_gutter-cell { padding-right: 6px;}.ace-tomorrow .ace_print_margin { width: 1px; background: #e8e8e8;}.ace-tomorrow .ace_scroller { background-color: #FFFFFF;}.ace-tomorrow .ace_text-layer { cursor: text; color: #4D4D4C;}.ace-tomorrow .ace_cursor { border-left: 2px solid #AEAFAD;}.ace-tomorrow .ace_cursor.ace_overwrite { border-left: 0px; border-bottom: 1px solid #AEAFAD;} .ace-tomorrow .ace_marker-layer .ace_selection { background: #D6D6D6;}.ace-tomorrow .ace_marker-layer .ace_step { background: rgb(198, 219, 174);}.ace-tomorrow .ace_marker-layer .ace_bracket { margin: -1px 0 0 -1px; border: 1px solid #D1D1D1;}.ace-tomorrow .ace_marker-layer .ace_active_line { background: #EFEFEF;} .ace-tomorrow .ace_invisible { color: #D1D1D1;}.ace-tomorrow .ace_keyword { color:#8959A8;}.ace-tomorrow .ace_keyword.ace_operator { color:#3E999F;}.ace-tomorrow .ace_constant { }.ace-tomorrow .ace_constant.ace_language { color:#F5871F;}.ace-tomorrow .ace_constant.ace_library { }.ace-tomorrow .ace_constant.ace_numeric { color:#F5871F;}.ace-tomorrow .ace_invalid { color:#FFFFFF;background-color:#C82829;}.ace-tomorrow .ace_invalid.ace_illegal { }.ace-tomorrow .ace_invalid.ace_deprecated { color:#FFFFFF;background-color:#8959A8;}.ace-tomorrow .ace_support { }.ace-tomorrow .ace_support.ace_function { color:#4271AE;}.ace-tomorrow .ace_function.ace_buildin { }.ace-tomorrow .ace_string { color:#718C00;}.ace-tomorrow .ace_string.ace_regexp { color:#C82829;}.ace-tomorrow .ace_comment { color:#8E908C;}.ace-tomorrow .ace_comment.ace_doc { }.ace-tomorrow .ace_comment.ace_doc.ace_tag { }.ace-tomorrow .ace_variable { color:#C82829;}.ace-tomorrow .ace_variable.ace_language { }.ace-tomorrow .ace_xml_pe { }.ace-tomorrow .ace_meta { }.ace-tomorrow .ace_meta.ace_tag { color:#C82829;}.ace-tomorrow .ace_meta.ace_tag.ace_input { }.ace-tomorrow .ace_entity.ace_other.ace_attribute-name { color:#C82829;}.ace-tomorrow .ace_entity.ace_name { }.ace-tomorrow .ace_entity.ace_name.ace_function { color:#4271AE;}.ace-tomorrow .ace_markup.ace_underline { text-decoration:underline;}.ace-tomorrow .ace_markup.ace_heading { color:#718C00;}.ace-tomorrow .ace_markup.ace_heading.ace_1 { }.ace-tomorrow .ace_markup.ace_heading.ace_2 { }.ace-tomorrow .ace_markup.ace_heading.ace_3 { }.ace-tomorrow .ace_markup.ace_heading.ace_4 { }.ace-tomorrow .ace_markup.ace_heading.ace_5 { }.ace-tomorrow .ace_markup.ace_heading.ace_6 { }.ace-tomorrow .ace_markup.ace_list { }.ace-tomorrow .ace_collab.ace_user1 { }",b.cssClass="ace-tomorrow"})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue