branch: elpa/raku-mode
commit 8643c07c422345fbccc0aab2969b2766db0d0ad4
Author: Hinrik Örn Sigurðsson <[email protected]>
Commit: Hinrik Örn Sigurðsson <[email protected]>
Improve highlighting of postfix hyper operators
---
perl6-font-lock.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 71610aa2c5..7e26b81db4 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -428,7 +428,10 @@ Takes arguments START and END which delimit the region to
propertize."
;; regular end-of-line comments
((rx "#" (0+ not-newline))
(0 (ignore)))
- ;; metaoperators like (-), R=>, [*], X~
+ ;; postfix hyper operators
+ ((perl6-rx (or identifier "]" ")") (group (or "»" ">>")))
+ (0 nil))
+ ;; other metaoperators like (-), R=>, [*], X~
((perl6-rx (or set-operator rsxz-operator reduce-operator
hyper-operator))
(0 (ignore (perl6-add-font-lock-hint 'perl6-metaoperator 0))))
;; angle-bracketed quoting construct