diff options
| author | Eli Zaretskii | 2021-01-02 13:36:54 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2021-01-02 13:36:54 +0200 |
| commit | 72b048bb9650283f40c93735a5ab50f62e0f4118 (patch) | |
| tree | ad20dcc670c24c5ba7288d950aeb82bd54ceb872 | |
| parent | 70e6c0850eae29eeb2b9a850bcf9023e88caaa7d (diff) | |
| download | emacs-72b048bb9650283f40c93735a5ab50f62e0f4118.tar.gz emacs-72b048bb9650283f40c93735a5ab50f62e0f4118.zip | |
Fix last change in characters.el
* lisp/international/characters.el: Adjust syntax of more
characters to follow that of Unicode properties. (Bug#44974)
| -rw-r--r-- | lisp/international/characters.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/international/characters.el b/lisp/international/characters.el index 88f2e20dcca..6924e1c06db 100644 --- a/lisp/international/characters.el +++ b/lisp/international/characters.el | |||
| @@ -226,6 +226,7 @@ with L, LRE, or LRO Unicode bidi character type.") | |||
| 226 | 226 | ||
| 227 | 227 | ||
| 228 | ;; JISX0208 | 228 | ;; JISX0208 |
| 229 | ;; Note: Some of these have their syntax updated later below. | ||
| 229 | (map-charset-chars #'modify-syntax-entry 'japanese-jisx0208 "_" #x2121 #x227E) | 230 | (map-charset-chars #'modify-syntax-entry 'japanese-jisx0208 "_" #x2121 #x227E) |
| 230 | (map-charset-chars #'modify-syntax-entry 'japanese-jisx0208 "_" #x2821 #x287E) | 231 | (map-charset-chars #'modify-syntax-entry 'japanese-jisx0208 "_" #x2821 #x287E) |
| 231 | (let ((chars '(?ー ?゛ ?゜ ?ヽ ?ヾ ?ゝ ?ゞ ?〃 ?仝 ?々 ?〆 ?〇))) | 232 | (let ((chars '(?ー ?゛ ?゜ ?ヽ ?ヾ ?ゝ ?ゞ ?〃 ?仝 ?々 ?〆 ?〇))) |
| @@ -681,6 +682,13 @@ with L, LRE, or LRO Unicode bidi character type.") | |||
| 681 | (set-case-syntax c "." tbl) | 682 | (set-case-syntax c "." tbl) |
| 682 | (setq c (1+ c))) | 683 | (setq c (1+ c))) |
| 683 | 684 | ||
| 685 | ;; Ideographic punctuation | ||
| 686 | (setq c #x3001) | ||
| 687 | (while (<= c #x3003) | ||
| 688 | (set-case-syntax c "." tbl) | ||
| 689 | (setq c (1+ c))) | ||
| 690 | (set-case-syntax #x30FB "." tbl) | ||
| 691 | |||
| 684 | ;; Symbols for Legacy Computing | 692 | ;; Symbols for Legacy Computing |
| 685 | (setq c #x1FB00) | 693 | (setq c #x1FB00) |
| 686 | (while (<= c #x1FBCA) | 694 | (while (<= c #x1FBCA) |
| @@ -698,6 +706,10 @@ with L, LRE, or LRO Unicode bidi character type.") | |||
| 698 | (setq c (1+ c))) | 706 | (setq c (1+ c))) |
| 699 | (set-case-syntax #xFF04 "_" tbl) | 707 | (set-case-syntax #xFF04 "_" tbl) |
| 700 | (set-case-syntax #xFF0B "_" tbl) | 708 | (set-case-syntax #xFF0B "_" tbl) |
| 709 | (set-case-syntax #xFF1A "." tbl) | ||
| 710 | (set-case-syntax #xFF1B "." tbl) | ||
| 711 | (set-case-syntax #xFF1F "." tbl) | ||
| 712 | (set-case-syntax #xFF20 "." tbl) | ||
| 701 | (setq c #xFF21) | 713 | (setq c #xFF21) |
| 702 | (while (<= c #xFF3A) | 714 | (while (<= c #xFF3A) |
| 703 | (modify-category-entry c ?l) | 715 | (modify-category-entry c ?l) |