Function: bibtex-parse-field-string
bibtex-parse-field-string is a byte-compiled function defined in
bibtex.el.gz.
Signature
(bibtex-parse-field-string)
Documentation
Parse a BibTeX field string enclosed by braces or quotes.
If a syntactically correct string is found, a pair containing the start and end position of the field string is returned, nil otherwise. Do not move point.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/bibtex.el.gz
(defun bibtex-parse-field-string ()
"Parse a BibTeX field string enclosed by braces or quotes.
If a syntactically correct string is found, a pair containing the start and
end position of the field string is returned, nil otherwise.
Do not move point."
(let ((end-point
(or (and (eq (following-char) ?\")
(save-excursion
(with-syntax-table bibtex-quoted-string-syntax-table
(forward-sexp 1))
(point)))
(and (eq (following-char) ?\{)
(save-excursion
(with-syntax-table bibtex-braced-string-syntax-table
(forward-sexp 1))
(point))))))
(if end-point
(cons (point) end-point))))