Function: cperl-cached-syntax-table

cperl-cached-syntax-table is a byte-compiled function defined in cperl-mode.el.gz.

Signature

(cperl-cached-syntax-table ST)

Documentation

Get a syntax table cached in ST, or create and cache into ST a syntax table.

All the entries of the syntax table are ".", except for a backslash, which is quoting.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cperl-mode.el.gz
(defun cperl-cached-syntax-table (st)
  "Get a syntax table cached in ST, or create and cache into ST a syntax table.
All the entries of the syntax table are \".\", except for a backslash, which
is quoting."
  (if (car-safe st)
      (car st)
    (setcar st (make-syntax-table))
    (setq st (car st))
    (let ((i 0))
      (while (< i 256)
	(modify-syntax-entry i "." st)
	(setq i (1+ i))))
    (modify-syntax-entry ?\\ "\\" st)
    st))