File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,13 @@ Can be used in `rime-disable-predicates' and `rime-inline-predicates'."
189
189
(or (string-match-p " [\x 5c][\x 21-\x 24\x 26-\x 7e]*$" string)
190
190
(string-match-p " [\x 5c][a-zA-Z\x 23\x 40]+[\x 7b][^\x 7d\x 25]*$" string)))))))
191
191
192
+ (defun rime-predicate-punctuation-after-space-en-p ()
193
+ " If input a punctuation after an English character with whitespace."
194
+ (and (> (point ) (save-excursion (back-to-indentation ) (point )))
195
+ (rime-predicate-current-input-punctuation-p)
196
+ (let ((string (buffer-substring (point ) (max (line-beginning-position ) (- (point ) 80 )))))
197
+ (string-match-p " [a-zA-Z] +$" string))))
198
+
192
199
; ; Obsoleted functions:
193
200
(define-obsolete-function-alias 'rime--after-alphabet-char-p 'rime-predicate-after-alphabet-char-p " 2020-03-26" )
194
201
(define-obsolete-function-alias 'rime--prog-in-code-p 'rime-predicate-prog-in-code-p " 2020-03-26" )
You can’t perform that action at this time.
0 commit comments