Function: cape-wrap-inside-code
cape-wrap-inside-code is a natively compiled function defined in
cape.el.
Signature
(cape-wrap-inside-code CAPF)
Documentation
Call CAPF only if inside code, not inside a comment or string.
This function can be used as an advice around an existing Capf.
Source Code
;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
;;;###autoload
(defun cape-wrap-inside-code (capf)
"Call CAPF only if inside code, not inside a comment or string.
This function can be used as an advice around an existing Capf."
(let ((s (syntax-ppss)))
(and (not (nth 3 s)) (not (nth 4 s)) (funcall capf))))