[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 1872efb95a 107/253: Highlight hyper operators
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 1872efb95a 107/253: Highlight hyper operators |
Date: |
Sat, 29 Jan 2022 08:28:46 -0500 (EST) |
branch: elpa/raku-mode
commit 1872efb95a44b51a9ba82151889ce0e828302806
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Highlight hyper operators
---
perl6-font-lock.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index f5722f2a34..71610aa2c5 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -143,6 +143,15 @@
(regex ,rx-metaoperator)
(opt "\)")
(1+ "\]"))))
+ (hyper-operator
+ . ,(rx-to-string
+ `(or (and "«" (regex ,rx-metaoperator) (char "«»"))
+ (and "»" (regex ,rx-metaoperator) (opt (char "«»")))
+ (and "<<" (regex ,rx-metaoperator) (or "<<" ">>"))
+ (and ">>" (regex ,rx-metaoperator) (opt (or "<<" ">>")))
+ (and (regex "[^[:digit:]\[\{\('\",:[:space:]]")
+ (0+ (regex "[^\[\{\('\",:[:space:]]"))
+ (or "«" "<<")))))
(routine
. ,(rx (or "macro" "sub" "submethod" "method" "multi" "proto" "only"
"category")))
@@ -420,7 +429,7 @@ Takes arguments START and END which delimit the region to
propertize."
((rx "#" (0+ not-newline))
(0 (ignore)))
;; metaoperators like (-), R=>, [*], X~
- ((perl6-rx (or set-operator rsxz-operator reduce-operator))
+ ((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
((rx (1+ (char "<«")))
- [nongnu] elpa/raku-mode 1a7cb03101 050/253: Slight change in wording, (continued)
- [nongnu] elpa/raku-mode 1a7cb03101 050/253: Slight change in wording, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4b8f5150d6 063/253: Break line in two, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 44c6e42d56 044/253: Highlight basic punctuation/match variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode eb32e01386 045/253: Correctly highilight version literal ranges, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d2dfe7031c 073/253: Don't apply punctuation syntax to all set operators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e7e04422d0 052/253: Don't bug me with email notifications, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4ec31b6904 070/253: Highlight number literals with an explicit base, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a01e71cde7 081/253: Avoid highlighting numbers and type constraints in strings/comments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode b7f95283e2 115/253: Remove redundant reduce operator highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d33d36e085 165/253: add test for nqp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 1872efb95a 107/253: Highlight hyper operators,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 1fb8435db1 028/253: Highlight variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a82a14ceb2 019/253: Better doc string for perl6-magic-matcher, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 023eb3227b 007/253: Nullify case-fold-search for the entire function body, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 488f3386fe 020/253: Small README fix, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 09663a722d 048/253: Follow http://keepachangelog.com/, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8fd6683e06 041/253: defvar -> defconst, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c0978dcf65 054/253: Suggest (package-refresh-contents) since this package is new, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 11891356c0 061/253: Highliht bare sigils, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 04988356e8 065/253: Don't highlight type constraints inside strings/comments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode af61f78377 011/253: Never look at more than 4k when detecting Perl 6, ELPA Syncer, 2022/01/29