emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/raku-mode 8643c07c42 108/253: Improve highlighting of post


From: ELPA Syncer
Subject: [nongnu] elpa/raku-mode 8643c07c42 108/253: Improve highlighting of postfix hyper operators
Date: Sat, 29 Jan 2022 08:28:46 -0500 (EST)

branch: elpa/raku-mode
commit 8643c07c422345fbccc0aab2969b2766db0d0ad4
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]