Function: consult--split-separator
consult--split-separator is a natively compiled function defined in
consult.el.
Signature
(consult--split-separator STR PLIST)
Documentation
Split input STR in async input and filtering part at first separator.
PLIST is the splitter configuration, including the separator.
Source Code
;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
(defun consult--split-separator (str plist)
"Split input STR in async input and filtering part at first separator.
PLIST is the splitter configuration, including the separator."
(let ((sep (regexp-quote (char-to-string (plist-get plist :separator)))))
(save-match-data
(if (string-match (format "^\\([^%s]+\\)\\(%s\\)?" sep sep) str)
;; Force update if separator is entered.
`(,(propertize (match-string 1 str) 'consult--force (match-end 2))
,(match-end 0)
;; List of highlights
,@(and (match-end 2) `((,(match-beginning 2) . ,(match-end 2)))))
`(,str ,(length str))))))