Function: term-within-quotes
term-within-quotes is a byte-compiled function defined in term.el.gz.
Signature
(term-within-quotes BEG END)
Documentation
Return t if the number of quotes between BEG and END is odd.
Quotes are single and double.
Source Code
;; Defined in /usr/src/emacs/lisp/term.el.gz
(defun term-within-quotes (beg end)
"Return t if the number of quotes between BEG and END is odd.
Quotes are single and double."
(let ((countsq (term-how-many-region "\\(^\\|[^\\]\\)'" beg end))
(countdq (term-how-many-region "\\(^\\|[^\\]\\)\"" beg end)))
(or (= (mod countsq 2) 1) (= (mod countdq 2) 1))))