summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))))