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:
9
vendor/assets/javascripts/ace/mode-prolog.js
vendored
9
vendor/assets/javascripts/ace/mode-prolog.js
vendored
@ -181,7 +181,7 @@ var PrologHighlightRules = function() {
|
||||
[ { token: 'variable.language.anonymous.prolog',
|
||||
regex: '\\b_\\b' },
|
||||
{ token: 'variable.other.prolog',
|
||||
regex: '\\b[A-Z_][a-zA-Z0-9_]*\\b' } ] }
|
||||
regex: '\\b[A-Z_][a-zA-Z0-9_]*\\b' } ] };
|
||||
|
||||
this.normalizeRules();
|
||||
};
|
||||
@ -191,7 +191,7 @@ PrologHighlightRules.metaData = { fileTypes: [ 'plg', 'prolog' ],
|
||||
foldingStopMarker: '(%\\s*end(\\s*region)?)|(?=\\.)',
|
||||
keyEquivalent: '^~P',
|
||||
name: 'Prolog',
|
||||
scopeName: 'source.prolog' }
|
||||
scopeName: 'source.prolog' };
|
||||
|
||||
|
||||
oop.inherits(PrologHighlightRules, TextHighlightRules);
|
||||
@ -220,8 +220,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/;
|
||||
@ -350,6 +350,7 @@ var FoldMode = require("./folding/cstyle").FoldMode;
|
||||
var Mode = function() {
|
||||
this.HighlightRules = PrologHighlightRules;
|
||||
this.foldingRules = new FoldMode();
|
||||
this.$behaviour = this.$defaultBehaviour;
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
|
Reference in New Issue
Block a user