Update ACE Editor to version 1.2.9
The new ACE editor introduces full support for emojis (and, thereby, UTF-16 characters with high- and low-surrogates). Hence, we can remove our custom fix. Further, this update will allow emojis to be used in pair programming sessions.
This commit is contained in:
@ -86,7 +86,7 @@ var ActionScriptHighlightRules = function() {
|
||||
'storage.modifier.extends.actionscript.2',
|
||||
'meta.class.actionscript.2',
|
||||
'entity.other.inherited-class.actionscript.2' ],
|
||||
regex: '\\b(class)(\\s+)([a-zA-Z_](?:\\w|\\.)*)(?:(\\s+)(extends)(\\s+)([a-zA-Z_](?:\\w|\\.)*))?' } ] }
|
||||
regex: '\\b(class)(\\s+)([a-zA-Z_](?:\\w|\\.)*)(?:(\\s+)(extends)(\\s+)([a-zA-Z_](?:\\w|\\.)*))?' } ] };
|
||||
|
||||
this.normalizeRules();
|
||||
};
|
||||
@ -94,7 +94,7 @@ var ActionScriptHighlightRules = function() {
|
||||
ActionScriptHighlightRules.metaData = { fileTypes: [ 'as' ],
|
||||
keyEquivalent: '^~A',
|
||||
name: 'ActionScript',
|
||||
scopeName: 'source.actionscript.2' }
|
||||
scopeName: 'source.actionscript.2' };
|
||||
|
||||
|
||||
oop.inherits(ActionScriptHighlightRules, TextHighlightRules);
|
||||
@ -123,8 +123,8 @@ oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
||||
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
||||
this.foldingStartMarker = /([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/;
|
||||
this.foldingStopMarker = /^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/;
|
||||
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
||||
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
||||
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
||||
@ -253,6 +253,7 @@ var FoldMode = require("./folding/cstyle").FoldMode;
|
||||
var Mode = function() {
|
||||
this.HighlightRules = ActionScriptHighlightRules;
|
||||
this.foldingRules = new FoldMode();
|
||||
this.$behaviour = this.$defaultBehaviour;
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
|
Reference in New Issue
Block a user