File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -222,12 +222,14 @@ Use idomenu (imenu with `ido-mode') for best mileage.")
222
222
See `prettify-symbols-compose-predicate' ."
223
223
(and (fboundp 'prettify-symbols-default-compose-p )
224
224
(prettify-symbols-default-compose-p start end match )
225
- ; ; Make sure there is a space before || as it is also used for
226
- ; ; functions with 0 arguments.
227
- (not (and (string= match " ||" )
228
- (save-excursion
229
- (goto-char start)
230
- (looking-back " \\ (?:\\ <move\\ |=\\ ) *" ))))))
225
+ ; ; Make sure || is not a closure with 0 arguments and && is not
226
+ ; ; a double reference.
227
+ (pcase match
228
+ (" ||" (not (save-excursion
229
+ (goto-char start)
230
+ (looking-back " \\ (?:\\ <move\\ |=\\ ) *" ))))
231
+ (" &&" (char-equal (char-after end) ?\s ))
232
+ (_ t ))))
231
233
232
234
; ;; Mode
233
235
You can’t perform that action at this time.
0 commit comments