summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Troestler <Christophe.Troestler@umons.ac.be>2021-12-27 19:56:51 +0100
committerChristophe Troestler <Christophe.Troestler@umons.ac.be>2021-12-27 19:58:26 +0100
commit716c0fc6e4db1a3822d8f954f13fb3f1978ce90b (patch)
tree54d8b28309d207a5b2b594e0b53caba3e8686876
parentf80a0ce35b5b4d179b043d01ec7a55dcaf04f8ab (diff)
downloadrust-mode-716c0fc6e4db1a3822d8f954f13fb3f1978ce90b.tar.gz
Do not prettify || after various symbols
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 6f8a214..32794c5 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -227,7 +227,7 @@ See `prettify-symbols-compose-predicate'."
(pcase match
("||" (not (save-excursion
(goto-char start)
- (looking-back "\\(?:\\<move\\|=\\) *"))))
+ (looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
("&&" (char-equal (char-after end) ?\s))
(_ t))))