support auto complete with packages

This commit is contained in:
David Botton 2022-08-16 20:32:53 -04:00
parent 73d08919df
commit 6c9bcf8431
2 changed files with 2 additions and 2 deletions

View file

@ -1279,7 +1279,7 @@ exports.parForEach = function (array, fn, callback) {
});
}
};
var ID_REGEX = /[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;
var ID_REGEX = /[a-zA-Z_0-9\:\$\-\u00A2-\u2000\u2070-\uFFFF]/;
exports.retrievePrecedingIdentifier = function (text, pos, regex) {
regex = regex || ID_REGEX;
var buf = [];
@ -2015,4 +2015,3 @@ require("../config").defineOptions(Editor.prototype, "editor", {
}
});
})();

View file

@ -1314,6 +1314,7 @@ of controls and double click to select control."
(clog-ace:set-on-auto-complete (event-editor app)
(lambda (obj prefix)
(declare (ignore obj))
(print prefix)
(when (current-editor-is-lisp app)
;; we need to modify Ace's lisp mode to treat : as part of symbol
;; otherwise lookups do not consider the symbols package. I did