Elisp: Syntax Class

By Xah Lee. Date: . Last updated: .

Syntax Class

Each syntax class is identified by a 1-char code.

Most Important Syntax Classes
CodeMeaning
-whitespace character.
wword. (typically the alphabets A to Z, and other languages's letters, including Chinese characters.)
_symbol. (characters of symbol class, plus chars of β€œword” class, together is programing language identifier characters.)
.punctuation.
"string delimiter.
(left bracket.
)right bracket.
<comment start.
>comment end.
\escape character.

For complete list, see Syntax Class Table (ELISP Manual)

Elisp, character and syntax table