Skip to content

Commit

Permalink
package 28.10.15
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Oct 27, 2015
1 parent b082bcb commit f5fdb2d
Show file tree
Hide file tree
Showing 170 changed files with 37,030 additions and 3,803 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.txt
@@ -1,3 +1,9 @@
2015.10.28 Version 1.2.1

* new language modes
- Swift
- JSX

2015.07.11 Version 1.2.0

* New Features
Expand Down
31 changes: 16 additions & 15 deletions demo/iframe.html
Expand Up @@ -2,28 +2,29 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>ACE Editor Inside iframe</title>
<style type="text/css" media="screen">
/*!important without this top: 0; bottom: 0 doesn't work */
body, html {
position: absolute;
top: 0px; bottom: 0; left: 0; right: 0;
body, html {
height: 100%;
margin:0; padding:0;
overflow:hidden
}

}
#editor {
padding: 20px;
position: absolute;
width: 80%;
height: 80%;
padding: 20px; margin: 20px
width: 80%; height: 80%;
}
</style>
</head>
<body>

<iframe id="editor" src="../kitchen-sink.html"></iframe>

<div style="height: 100%"></div>
<div><textarea></textarea></div>
<iframe id="editor-iframe" src='data:text/html,
<pre id="editor" style="height:100%"></pre>
<script src="https://ajaxorg.github.io/ace-builds/src/ace.js"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/twilight");
editor.session.setMode("ace/mode/javascript");
</script>
'></iframe>
</body>
</html>
56 changes: 36 additions & 20 deletions demo/kitchen-sink/demo.js
Expand Up @@ -1309,6 +1309,7 @@ var supportedModes = {
haXe: ["hx"],
HTML: ["html|htm|xhtml"],
HTML_Ruby: ["erb|rhtml|html.erb"],
HTML_Elixir: ["eex|html.eex"],
INI: ["ini|conf|cfg|prefs"],
Io: ["io"],
Jack: ["jack"],
Expand Down Expand Up @@ -1398,6 +1399,7 @@ var nameOverrides = {
C_Cpp: "C and C++",
coffee: "CoffeeScript",
HTML_Ruby: "HTML (Ruby)",
HTML_Elixir: "HTML (Elixir)",
FTL: "FreeMarker"
};
var modesByName = {};
Expand Down Expand Up @@ -3072,7 +3074,8 @@ oop.inherits(IncrementalSearchKeyboardHandler, HashHandler);
var iSearch = this.$iSearch;
HashHandler.call(this, exports.iSearchCommands, editor.commands.platform);
this.$commandExecHandler = editor.commands.addEventListener('exec', function(e) {
if (!e.command.isIncrementalSearchCommand) return undefined;
if (!e.command.isIncrementalSearchCommand)
return iSearch.deactivate();
e.stopPropagation();
e.preventDefault();
var scrollTop = editor.session.getScrollTop();
Expand All @@ -3099,7 +3102,7 @@ oop.inherits(IncrementalSearchKeyboardHandler, HashHandler);
var extendCmd = this.commands.extendSearchTerm;
if (extendCmd) { return {command: extendCmd, args: key}; }
}
return {command: "null", passEvent: hashId == 0 || hashId == 4};
return false;
};

}).call(IncrementalSearchKeyboardHandler.prototype);
Expand Down Expand Up @@ -5077,7 +5080,7 @@ dom.importCssString(".normal-mode .ace_cursor{\
if (command === false) {
return undefined;
} else if (command === true) {
return function() {};
return function() { return true; };
} else {
return function() {
if ((command.operator || command.isEdit) && cm.getOption('readOnly'))
Expand Down Expand Up @@ -5862,12 +5865,14 @@ dom.importCssString(".normal-mode .ace_cursor{\
(line > last && cur.line == last)) {
return;
}
var fold = cm.ace.session.getFoldAt(line, endCh);
var fold = cm.ace.session.getFoldLine(line);
if (fold) {
if (motionArgs.forward)
line = fold.end.row + 1;
else
line = fold.start.row - 1;
if (motionArgs.forward) {
if (line > fold.start.row)
line = fold.end.row + 1;
} else {
line = fold.start.row;
}
}
if (motionArgs.toFirstChar){
endCh=findFirstNonWhiteSpaceCharacter(cm.getLine(line));
Expand Down Expand Up @@ -7401,8 +7406,17 @@ dom.importCssString(".normal-mode .ace_cursor{\
if (any) { return isEmpty(i) != isEmpty(i + dir); }
return !isEmpty(i) && isEmpty(i + dir);
}
function skipFold(i) {
dir = dir > 0 ? 1 : -1;
var foldLine = cm.ace.session.getFoldLine(i);
if (foldLine) {
if (i + dir > foldLine.start.row && i + dir < foldLine.end.row)
dir = (dir > 0 ? foldLine.end.row : foldLine.start.row) - i;
}
}
if (dir) {
while (min <= i && i <= max && repeat > 0) {
skipFold(i);
if (isBoundary(i, dir)) { repeat--; }
i += dir;
}
Expand Down Expand Up @@ -9162,13 +9176,11 @@ var StatusBar = function(editor, parentNode) {

var statusUpdate = lang.delayedCall(function(){
this.updateStatus(editor)
}.bind(this));
editor.on("changeStatus", function() {
statusUpdate.schedule(100);
});
editor.on("changeSelection", function() {
statusUpdate.schedule(100);
});
}.bind(this)).schedule.bind(null, 100);

editor.on("changeStatus", statusUpdate);
editor.on("changeSelection", statusUpdate);
editor.on("keyboardActivity", statusUpdate);
};

(function(){
Expand All @@ -9181,13 +9193,17 @@ var StatusBar = function(editor, parentNode) {
add(editor.keyBinding.getStatusText(editor));
if (editor.commands.recording)
add("REC");

var c = editor.selection.lead;
add(c.row + ":" + c.column, " ");
if (!editor.selection.isEmpty()) {

var sel = editor.selection;
var c = sel.lead;

if (!sel.isEmpty()) {
var r = editor.getSelectionRange();
add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")");
add("(" + (r.end.row - r.start.row) + ":" +(r.end.column - r.start.column) + ")", " ");
}
add(c.row + ":" + c.column, " ");
if (sel.rangeCount)
add("[" + sel.rangeCount + "]", " ");
status.pop();
this.element.textContent = status.join("");
};
Expand Down
26 changes: 26 additions & 0 deletions demo/kitchen-sink/docs/html_elixir.eex
@@ -0,0 +1,26 @@
<h1>Listing Books</h1>

<table>
<tr>
<th>Title</th>
<th>Summary</th>
<th></th>
<th></th>
<th></th>
</tr>

<%= for book <- @books do %>
<tr>
<%# comment %>
<td><%= book.title %></td>
<td><%= book.content %></td>
<td><%= link "Show", to: book_path(@conn, :show, book) %></td>
<td><%= link "Edit", to: book_path(@conn, :edit, book) %></td>
<td><%= link "Delete", to: book_path(@conn, :delete, book), method: :delete, data: [confirm: "Are you sure?"] %></td>
</tr>
<% end %>
</table>

<br />

<%= link "New book", to: book_path(@conn, :new) %>
2 changes: 1 addition & 1 deletion kitchen-sink.html
Expand Up @@ -7,7 +7,7 @@
<meta name="author" content="Fabian Jakobs">
<!--
Ace
version 1.2.0
version 1.2.1
commit
-->

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ace-builds",
"version": "1.2.0",
"version": "[A[B1.2.1",
"description": "Ace (Ajax.org Cloud9 Editor)",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 1 addition & 1 deletion src-min-noconflict/ace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/ext-modelist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5fdb2d

Please sign in to comment.