Function: combobulate-query-builder-match-form

combobulate-query-builder-match-form is a natively compiled function defined in combobulate-query.el.

Signature

(combobulate-query-builder-match-form CAPTURE-GROUP-NAME MATCH-TEXT &optional NO-ESCAPE)

Documentation

Build the query form with CAPTURE-GROUP-NAME matching MATCH-TEXT.

Optional argument NO-ESCAPE disables regexp quoting.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-query-builder-match-form (capture-group-name match-text &optional no-escape)
  "Build the query form with CAPTURE-GROUP-NAME matching MATCH-TEXT.
Optional argument NO-ESCAPE disables regexp quoting."
  `(,capture-group-name
    (:match ,(concat "^" (if no-escape
                             match-text
                           (regexp-quote match-text))
                     (if (string-match-p "\n" match-text) "" "$"))
            ,capture-group-name)))