aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-14 00:29:38 +0530
committerArun Isaac2022-06-16 00:26:13 +0530
commit0b7da648f555593c0eb0e587634f36081638583d (patch)
tree12f911a8a7130d748ea25aab325e50bd3b7938a1
parentb65cdd136020af43f3915f5c572c1244965fd721 (diff)
downloadthogai-0b7da648f555593c0eb0e587634f36081638583d.tar.gz
thogai-0b7da648f555593c0eb0e587634f36081638583d.tar.lz
thogai-0b7da648f555593c0eb0e587634f36081638583d.zip
Implement infixes in terms of prefixes and the attach operator.
* thogai.el (thogai-insert-translation): Implement infixes in terms of prefixes and the attach operator by calling thogai-insert-translation recursively.
-rw-r--r--thogai.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/thogai.el b/thogai.el
index 9dc5d25..933a565 100644
--- a/thogai.el
+++ b/thogai.el
@@ -248,9 +248,9 @@ External callers should always pass nil as the value."
((pred (lambda (str)
(and (string-prefix-p "{^" str)
(string-suffix-p "^}" str))))
- (thogai-insert-literal
- (string-remove-prefix "{^" (string-remove-suffix "^}" translation)))
- (setq thogai-attach-next t))
+ (thogai-insert-translation
+ (concat "{^}{" (string-remove-prefix "{^" translation))
+ non-first-part-p))
;; Prefix
((pred (lambda (str)
(string-suffix-p "^}" str)))