Skip to content

Commit d3852a3

Browse files
committed
Fix regular expression tables
1 parent 6d3eb8b commit d3852a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elisp/11-regexp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ emacs 对字符有很多种分类方法,在正则表达式里也可以使用
3131

3232
语法表格指的是 emacs 为每个字符都指定了语法功能,这为解析函数,复杂的移动命令等等提供了各种语法结构的起点和终点。语法表使用的数据结构是一种称为字符表(char-table)的数组,它能以字符作为下标(还记得 emacs 里的字符就是整数吗)来得到对应的值。语法表里一个字符对应一个语法分类的列表。每一个分类都有一个助记字符(mnemonic character)。一共有哪几类分类呢?
3333

34-
|名称 | 助记符|说明|
35-
---------------------------------------------------
34+
|名称 | 助记符 |说明 |
35+
|---------------------------|--------|--------------------------------------------|
3636
|空白(whitespace) |- 或 ' '| |
3737
|词(word) |w | |
3838
|符号(symbol) |_ |这是除 word 之外其它用于变量和命令名的字符。|

0 commit comments

Comments
 (0)