[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode e3bcb55be3 077/253: Highlight adverbs (:foo)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode e3bcb55be3 077/253: Highlight adverbs (:foo) |
Date: |
Sat, 29 Jan 2022 08:28:44 -0500 (EST) |
branch: elpa/raku-mode
commit e3bcb55be31cc4a10985062b4ba986d9cb174e3f
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Highlight adverbs (:foo)
---
perl6-font-lock.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index ab50e3c44f..f6a1d163ba 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -10,6 +10,10 @@
"Face for identifiers in Perl 6."
:group 'perl6-faces)
+(defface perl6-package-colons '((t :inherit default))
+ "Face for double colons in Perl 6 package names."
+ :group 'perl6-faces)
+
(defface perl6-number '((t :inherit font-lock-constant-face))
"Face for number literals in Perl 6."
:group 'perl6-faces)
@@ -481,6 +485,12 @@ GROUPS is allowed to reference optional match groups."
(,(perl6-rx (group symbol-start high-type) "(") 1 'perl6-type)
(,(perl6-rx (group symbol-start identifier) "(") 1 'perl6-identifier)
(,(perl6-rx (symbol (or low-type high-type))) 0 'perl6-type)
+ (,(rx (or (and "::" symbol-start)
+ (and symbol-end "::")))
+ 0 'perl6-package-colons)
+ (,(perl6-rx (group ":") (group (symbol identifier)))
+ (1 'perl6-operator)
+ (2 'perl6-string))
(,(perl6-rx (symbol operator-word)) 0 'perl6-operator)
(,(perl6-rx (symbol phaser)) 0 'perl6-phaser)
(,(perl6-rx (symbol exception)) 0 'perl6-exception)
- [nongnu] elpa/raku-mode 7078ed08b4 033/253: font-lock-exit-face is not standard, (continued)
- [nongnu] elpa/raku-mode 7078ed08b4 033/253: font-lock-exit-face is not standard, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f9bf3f7689 037/253: Improve code layout a bit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6a4269e30b 005/253: Make sure the magic autoloads correctly, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0be377dba8 040/253: Place manual installation instructions last, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8f9d68dc38 047/253: Add note about find-file-at-point, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6cb23a3a64 058/253: Move indentation support into perl6-indent.el, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4917b2c270 055/253: Highlight #=() and #|() comments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 284a341125 046/253: Set comment-start-skip, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode eaf48dd813 049/253: Add Travis integration, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode cf9d523c88 059/253: Use sharp quote (#') to quote function names, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e3bcb55be3 077/253: Highlight adverbs (:foo),
ELPA Syncer <=
- [nongnu] elpa/raku-mode 95f6ca837c 078/253: Highlight sigil in match group ($<foo>), ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c1b2f9e112 109/253: Less aggressive syntaxification of sigils/twigils, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6553c30843 093/253: Highlight ::?CLASS and such correctly, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 861a7b469b 110/253: Highlight string delimiters like operators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 5f66f10dbe 143/253: Correctly highlight $foo.?method, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9f07c8b52a 139/253: Highlight 'unit' keyword, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 5456e2b044 145/253: Fix highlighting of <-a -b -c>, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 81805cfa8e 154/253: remove vars (to main file) per comments from syohex, clean up some, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4b01244490 157/253: make this work for nqp also, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode edccdba86f 191/253: Don't hang emacs if cannot find the Raku executable, ELPA Syncer, 2022/01/29