From 7e5ff55e686c1bc940e5f1bb7d229d2bc6ce103c Mon Sep 17 00:00:00 2001 From: nailuoGG Date: Tue, 6 Aug 2024 07:27:43 +0800 Subject: [PATCH] Remove misspelled rx category chinse-two-byte since emacs 31 remove the typo https://github.com/emacs-mirror/emacs/commit/4437d730a5fff6dca61f99a146c99aefd0f67577 --- pangu-spacing.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pangu-spacing.el b/pangu-spacing.el index 4c7157a..7157571 100644 --- a/pangu-spacing.el +++ b/pangu-spacing.el @@ -171,13 +171,13 @@ When you set t here, the space will be insert when you save file." (defvar pangu-spacing-include-regexp ;; we didn't add korean because korean-hangul-two-byte is not implemented (rx (or (and (or (group-n 3 (any "。,!?;:「」()、")) - (group-n 1 (or (category chinse-two-byte) + (group-n 1 (or (category chinese-two-byte) (category japanese-hiragana-two-byte) (category japanese-katakana-two-byte)))) (group-n 2 (in "a-zA-Z0-9"))) (and (group-n 1 (in "a-zA-Z0-9")) (or (group-n 3 (any "。,!?;:「」()、")) - (group-n 2 (or (category chinse-two-byte) + (group-n 2 (or (category chinese-two-byte) (category japanese-hiragana-two-byte) (category japanese-katakana-two-byte))))))) "Regexp to find Chinese character before English character.