Function: gitlab-ci--try-completion

gitlab-ci--try-completion is a natively compiled function defined in gitlab-ci-mode.el.

Signature

(gitlab-ci--try-completion PREFIX MATCH CANDIDATES)

Documentation

Attempt to offer completions at the point.

When looking backwards at PREFIX followed MATCH, return the bounds of that MATCH (which may move past the point) and the CANDIDATES list.

Source Code

;; Defined in /nix/store/i3kilmgmg3bk0mkr28r6pk0h5mg4s0wd-emacs-packages-deps/share/emacs/site-lisp/elpa/gitlab-ci-mode-20191022.2017/gitlab-ci-mode.el
(defun gitlab-ci--try-completion (prefix match candidates)
  "Attempt to offer completions at the point.

When looking backwards at PREFIX followed MATCH, return the
bounds of that MATCH (which may move past the point) and the
CANDIDATES list."
  (save-mark-and-excursion
   (when (looking-back (concat prefix match) (line-beginning-position))
     (goto-char (match-beginning 0))
     (re-search-forward match)
     (list (match-beginning 0) (match-end 0) candidates))))