Function: opascal-literal-token-at
opascal-literal-token-at is a byte-compiled function defined in
opascal.el.gz.
Signature
(opascal-literal-token-at P)
Documentation
Return the literal token surrounding the point P, or nil if none.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/opascal.el.gz
(defun opascal-literal-token-at (p)
"Return the literal token surrounding the point P, or nil if none."
(save-excursion
(let ((ppss (syntax-ppss p)))
(when (or (nth 8 ppss) (looking-at opascal--literal-start-re))
(let* ((new-start (or (nth 8 ppss) p))
(new-end (progn
(goto-char new-start)
(condition-case nil
(if (memq (char-after) '(?\' ?\"))
(forward-sexp 1)
(forward-comment 1))
(scan-error (goto-char (point-max))))
(point))))
(opascal-token-of (opascal-literal-kind p) new-start new-end))))))