Elisp: Syntax Table

By Xah Lee. Date: . Last updated: .

What is Syntax Table

Syntax Table is a lookup table. It classify each character into a class, for all unicode characters.

Classes are: letters, punctuations, brackets, programing language identifiers, comment character, string delimiters, etc.

Each Buffer Has Its Own Value of Syntax Table

Typically, when a Major Mode is activated, it changes the current buffer's syntax table.

Where is Syntax Table Used

Syntax table is heavily used in emacs. For example,

Summary of Syntax Table

Elisp, character and syntax table

Elisp, font lock, syntax coloring

Emacs lisp, writing a major mode. Essentials