Function: xref--regexp-syntax-dependent-p

xref--regexp-syntax-dependent-p is a byte-compiled function defined in xref.el.gz.

Signature

(xref--regexp-syntax-dependent-p STR)

Documentation

Return non-nil when STR depends on the buffer's syntax.

Such as the current syntax table and the applied syntax properties.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
(defun xref--regexp-syntax-dependent-p (str)
  "Return non-nil when STR depends on the buffer's syntax.
Such as the current syntax table and the applied syntax properties."
  (let ((case-fold-search nil))
    (string-match-p (rx
                     (or string-start (not (in ?\\)))
                     (0+ (= 2 ?\\))
                     ?\\
                     (in ?b ?B ?< ?> ?w ?W ?_ ?s ?S))
                    str)))