mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
support auto complete with packages
This commit is contained in:
parent
73d08919df
commit
6c9bcf8431
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
exports.retrievePrecedingIdentifier = function (text, pos, regex) {
|
||||||
regex = regex || ID_REGEX;
|
regex = regex || ID_REGEX;
|
||||||
var buf = [];
|
var buf = [];
|
||||||
|
|
@ -2015,4 +2015,3 @@ require("../config").defineOptions(Editor.prototype, "editor", {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
@ -1314,6 +1314,7 @@ of controls and double click to select control."
|
||||||
(clog-ace:set-on-auto-complete (event-editor app)
|
(clog-ace:set-on-auto-complete (event-editor app)
|
||||||
(lambda (obj prefix)
|
(lambda (obj prefix)
|
||||||
(declare (ignore obj))
|
(declare (ignore obj))
|
||||||
|
(print prefix)
|
||||||
(when (current-editor-is-lisp app)
|
(when (current-editor-is-lisp app)
|
||||||
;; we need to modify Ace's lisp mode to treat : as part of symbol
|
;; we need to modify Ace's lisp mode to treat : as part of symbol
|
||||||
;; otherwise lookups do not consider the symbols package. I did
|
;; otherwise lookups do not consider the symbols package. I did
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue