Function: make-syntax-table

make-syntax-table is a byte-compiled function defined in subr.el.gz.

Signature

(make-syntax-table &optional OLDTABLE)

Documentation

Return a new syntax table.

Create a syntax table that inherits from OLDTABLE (if non-nil) or from standard-syntax-table otherwise.

View in manual

Probably introduced at or before Emacs version 19.23.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun make-syntax-table (&optional oldtable)
  "Return a new syntax table.
Create a syntax table that inherits from OLDTABLE (if non-nil) or
from `standard-syntax-table' otherwise."
  (let ((table (make-char-table 'syntax-table nil)))
    (set-char-table-parent table (or oldtable (standard-syntax-table)))
    table))