Function: syntax-class

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

Signature

(syntax-class SYNTAX)

Documentation

Return the code for the syntax class described by SYNTAX.

SYNTAX should be a raw syntax descriptor; the return value is a integer that encodes the corresponding syntax class. See Info node (elisp)Syntax Table Internals for a list of codes.

If SYNTAX is nil, return nil.

View in manual

Probably introduced at or before Emacs version 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun syntax-class (syntax)
  "Return the code for the syntax class described by SYNTAX.

SYNTAX should be a raw syntax descriptor; the return value is a
integer that encodes the corresponding syntax class.  See Info
node `(elisp)Syntax Table Internals' for a list of codes.

If SYNTAX is nil, return nil."
  (and syntax (logand (car syntax) 65535)))