Skip to content

Commit

Permalink
package 17.08.2014
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Aug 17, 2014
1 parent 0138713 commit d6da1f2
Show file tree
Hide file tree
Showing 258 changed files with 5,070 additions and 1,366 deletions.
14 changes: 14 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
2014.08.17 Version 1.1.6

* Bugfixes
- fix regression in double tap to highlight
- Improved Latex Mode (Daniel Felder)

* API Changes
- editor.destroy destroys editor.session too (call editor.setSession(null) to prevent that)

* new language modes
- Praat (José Joaquín Atria)
- Eiffel (Victorien Elvinger)
- G-code (Adam Joseph Cook)

2014.07.09 Version 1.1.5

* Bugfixes
Expand Down
62 changes: 28 additions & 34 deletions demo/kitchen-sink/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ var supportedModes = {
Diff: ["diff|patch"],
Dockerfile: ["^Dockerfile"],
Dot: ["dot"],
Eiffel: ["e"],
Erlang: ["erl|hrl"],
EJS: ["ejs"],
Forth: ["frt|fs|ldr"],
FTL: ["ftl"],
Gcode: ["gcode"],
Gherkin: ["feature"],
Gitignore: ["^.gitignore"],
Glsl: ["glsl|frag|vert"],
Expand Down Expand Up @@ -279,6 +281,7 @@ var supportedModes = {
pgSQL: ["pgsql"],
PHP: ["php|phtml"],
Powershell: ["ps1"],
Praat: ["praat|praatscript|psc|proc"],
Prolog: ["plg|prolog"],
Properties: ["properties"],
Protobuf: ["proto"],
Expand Down Expand Up @@ -310,7 +313,7 @@ var supportedModes = {
Twig: ["twig"],
Typescript: ["ts|typescript|str"],
Vala: ["vala"],
VBScript: ["vbs"],
VBScript: ["vbs|vb"],
Velocity: ["vm"],
Verilog: ["v|vh|sv|svh"],
XML: ["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
Expand All @@ -322,7 +325,7 @@ var nameOverrides = {
ObjectiveC: "Objective-C",
CSharp: "C#",
golang: "Go",
C_Cpp: "C/C++",
C_Cpp: "C and C++",
coffee: "CoffeeScript",
HTML_Ruby: "HTML (Ruby)",
FTL: "FreeMarker"
Expand Down Expand Up @@ -563,11 +566,14 @@ exports.$detectIndentation = function(lines, fallback) {
var first = {score: 0, length: 0};
var spaceIndents = 0;
for (var i = 1; i < 12; i++) {
var score = getScore(i);
if (i == 1) {
spaceIndents = getScore(i);
var score = stats.length && 1;
spaceIndents = score;
score = stats[1] ? 0.9 : 0.8;
if (!stats.length)
score = 0
} else
var score = getScore(i) / spaceIndents;
score /= spaceIndents;

if (changes[i])
score += changes[i] / changesTotal;
Expand Down Expand Up @@ -2955,7 +2961,7 @@ module.exports = {
var column = util.getRightNthChar(editor, cursor, param, count || 1);

if (isRepeat && column == 0 && !(count > 1))
var column = util.getRightNthChar(editor, cursor, param, 2);
column = util.getRightNthChar(editor, cursor, param, 2);

if (typeof column === "number") {
cursor.column += column + (isSel ? 1 : 0);
Expand All @@ -2973,8 +2979,8 @@ module.exports = {
var cursor = editor.getCursorPosition();
var column = util.getLeftNthChar(editor, cursor, param, count || 1);

if (isRepeat && column == 0 && !(count > 1))
var column = util.getLeftNthChar(editor, cursor, param, 2);
if (isRepeat && column === 0 && !(count > 1))
column = util.getLeftNthChar(editor, cursor, param, 2);

if (typeof column === "number") {
cursor.column -= column;
Expand Down Expand Up @@ -3087,7 +3093,7 @@ module.exports = {
content += "\n";

if (content.length) {
editor.navigateLineEnd()
editor.navigateLineEnd();
editor.insert(content);
util.insertMode(editor);
}
Expand All @@ -3104,7 +3110,7 @@ module.exports = {
if (content.length) {
if(row > 0) {
editor.navigateUp();
editor.navigateLineEnd()
editor.navigateLineEnd();
editor.insert(content);
} else {
editor.session.insert({row: 0, column: 0}, content);
Expand Down Expand Up @@ -4686,6 +4692,10 @@ var SnippetManager = function() {
var snippetMap = this.snippetMap;
var snippetNameMap = this.snippetNameMap;
var self = this;

if (!snippets)
snippets = [];

function wrapRegexp(src) {
if (src && !/^\^?\(.*\)\$?$|^\\b$/.test(src))
src = "(?:" + src + ")";
Expand Down Expand Up @@ -4738,7 +4748,7 @@ var SnippetManager = function() {
s.endTriggerRe = new RegExp(s.endTrigger, "", true);
}

if (snippets.content)
if (snippets && snippets.content)
addSnippet(snippets);
else if (Array.isArray(snippets))
snippets.forEach(addSnippet);
Expand Down Expand Up @@ -5418,6 +5428,7 @@ var $singleLineEditor = function(el) {
editor.renderer.setHighlightGutterLine(false);

editor.$mouseHandler.$focusWaitTimout = 0;
editor.$highlightTagPending = true;

return editor;
};
Expand Down Expand Up @@ -5468,7 +5479,7 @@ var AcePopup = function(parentNode) {
popup.session.removeMarker(hoverMarker.id);
hoverMarker.id = null;
}
}
};
popup.setSelectOnHover(false);
popup.on("mousemove", function(e) {
if (!lastMouseEvent) {
Expand Down Expand Up @@ -5536,8 +5547,8 @@ var AcePopup = function(parentNode) {
};

var bgTokenizer = popup.session.bgTokenizer;
bgTokenizer.$tokenizeRow = function(i) {
var data = popup.data[i];
bgTokenizer.$tokenizeRow = function(row) {
var data = popup.data[row];
var tokens = [];
if (!data)
return tokens;
Expand Down Expand Up @@ -5571,7 +5582,7 @@ var AcePopup = function(parentNode) {

popup.session.$computeWidth = function() {
return this.screenWidth = 0;
}
};
popup.isOpen = false;
popup.isTopdown = false;

Expand Down Expand Up @@ -7006,28 +7017,11 @@ bindDropdown("folding", function(value) {
});

bindDropdown("soft_wrap", function(value) {
var session = env.editor.session;
var renderer = env.editor.renderer;
switch (value) {
case "off":
session.setUseWrapMode(false);
renderer.setPrintMarginColumn(80);
break;
case "free":
session.setUseWrapMode(true);
session.setWrapLimitRange(null, null);
renderer.setPrintMarginColumn(80);
break;
default:
session.setUseWrapMode(true);
var col = parseInt(value, 10);
session.setWrapLimitRange(col, col);
renderer.setPrintMarginColumn(col);
}
env.editor.setOption("wrap", value);
});

bindCheckbox("select_style", function(checked) {
env.editor.setSelectionStyle(checked ? "line" : "text");
env.editor.setOption("selectionStyle", checked ? "line" : "text");
});

bindCheckbox("highlight_active", function(checked) {
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-emmet.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-min-noconflict/ext-language_tools.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.

Loading

0 comments on commit d6da1f2

Please sign in to comment.