diff --git a/lib/ace/autocomplete/util.js b/lib/ace/autocomplete/util.js index 341a6b92..767b983e 100644 --- a/lib/ace/autocomplete/util.js +++ b/lib/ace/autocomplete/util.js @@ -45,7 +45,7 @@ exports.parForEach = function(array, fn, callback) { } }; -var ID_REGEX = /[a-zA-Z_0-9\$-\u007F-\uFFFF]/; +var ID_REGEX = /[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/; exports.retrievePrecedingIdentifier = function(text, pos, regex) { regex = regex || ID_REGEX; diff --git a/lib/ace/ext/language_tools.js b/lib/ace/ext/language_tools.js index 7abc2ef8..651835d4 100644 --- a/lib/ace/ext/language_tools.js +++ b/lib/ace/ext/language_tools.js @@ -177,17 +177,14 @@ require("../config").defineOptions(Editor.prototype, "editor", { value: false }, /** - * Enable live autocomplete. If the value is an array, it is assumed to be an array of completer + * Enable live autocomplete. If the value is an array, it is assumed to be an array of completers * and will use them instead of the default completers. - * NOTE: Should this be renamed to enableLiveAutocompletion to match enableBasicAutocompletion? */ enableLiveAutocompletion: { set: function(val) { if (val) { this.completers = Array.isArray(val)? val: completers; - // On each change automatically trigger the autocomplete - this.completers = completers; this.commands.on('afterExec', doLiveAutocomplete); } else { this.commands.removeListener('afterExec', doLiveAutocomplete);