Skip to content

Commit 716c0fc

Browse files
committed
Do not prettify || after various symbols
1 parent f80a0ce commit 716c0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ See `prettify-symbols-compose-predicate'."
227227
(pcase match
228228
("||" (not (save-excursion
229229
(goto-char start)
230-
(looking-back "\\(?:\\<move\\|=\\) *"))))
230+
(looking-back "\\(?:\\<move\\|[[({:=,;]\\) *"))))
231231
("&&" (char-equal (char-after end) ?\s))
232232
(_ t))))
233233

0 commit comments

Comments
 (0)