Function: TeX-search-syntax-table
TeX-search-syntax-table is a byte-compiled function defined in tex.el.
Signature
(TeX-search-syntax-table &rest ARGS)
Documentation
Return a syntax table for searching purposes.
ARGS may be a list of characters. For each of them the respective predefined syntax is set. Currently the parenthetical characters ?{, ?}, ?[, ?], ?(, ?), ?<, and ?> are supported. The syntax of each of these characters not specified will be reset to " ".
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/tex.el
(defun TeX-search-syntax-table (&rest args)
"Return a syntax table for searching purposes.
ARGS may be a list of characters. For each of them the
respective predefined syntax is set. Currently the parenthetical
characters ?{, ?}, ?[, ?], ?(, ?), ?<, and ?> are supported.
The syntax of each of these characters not specified will be
reset to \" \"."
(let ((char-syntax-alist '((?\{ . "(}") (?\} . "){")
(?\[ . "(]") (?\] . ")[")
(?\( . "()") (?\) . ")(")
(?\< . "(>") (?\> . ")<"))))
;; Clean entries possibly set before.
(modify-syntax-entry ?\\ " " TeX-search-syntax-table)
(modify-syntax-entry ?@ " " TeX-search-syntax-table)
(modify-syntax-entry ?\% " " TeX-search-syntax-table)
;; Preset mode-dependent syntax entries. (Mode-independent entries
;; are set when the variable `TeX-search-syntax-table' is created.)
(modify-syntax-entry (string-to-char TeX-esc) "\\" TeX-search-syntax-table)
(unless (eq major-mode 'Texinfo-mode)
(modify-syntax-entry ?\% "<" TeX-search-syntax-table))
;; Clean up the entries which can be specified as arguments.
(dolist (elt char-syntax-alist)
(modify-syntax-entry (car elt) " " TeX-search-syntax-table))
;; Now set what we got.
(dolist (elt args)
(unless (assoc elt char-syntax-alist) (error "Char not supported"))
(modify-syntax-entry elt (cdr (assoc elt char-syntax-alist))
TeX-search-syntax-table))
;; Return the syntax table.
TeX-search-syntax-table))