Skip to content

Commit

Permalink
Fix highlighting of <-a -b -c>
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Jun 16, 2016
1 parent e7370be commit 5456e2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion perl6-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ OPEN-ANGLES is the opening delimiter (e.g. \"«\" or \"<<\")."
(quote-beg (- (point) angle-length))
(line-beg (point-at-bol)))
(when
(and (not (or (looking-at "[-=]")
(and (not (or (looking-at (rx-to-string `(= 2 (char "-=") 2 2)))
(looking-at (rx-to-string `(and (** 1 2 (char "-=")) ">")))
(looking-back (rx-to-string `(and (char "+~=!") ,open-angle)) 2)))
(or (not (looking-at "[\s\n]"))
(not (looking-back (rx-to-string `(and (char "\s\n") ,open-angle)) 2))
Expand Down

0 comments on commit 5456e2b

Please sign in to comment.