[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode bb9f553d91 079/253: Highlight solitary colon (:)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode bb9f553d91 079/253: Highlight solitary colon (:) operator |
Date: |
Sat, 29 Jan 2022 08:28:44 -0500 (EST) |
branch: elpa/raku-mode
commit bb9f553d91f4b76b02d4d71c37f446d41a687f4a
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Highlight solitary colon (:) operator
---
perl6-font-lock.el | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index f060a17af7..ee0116c75d 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -10,10 +10,6 @@
"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)
@@ -153,7 +149,7 @@
. ,(rx (or "div" "xx" "x" "mod" "also" "leg" "cmp" "before" "after" "eq"
"ne" "le" "lt" "not" "gt" "eqv" "ff" "fff" "and" "andthen"
"or" "xor" "orelse" "extra" "lcm" "gcd")))
- (operator-char . ,(rx (any "-+/*~?|=^!%&,<>».;\\∈∉∋∌∩∪≼≽⊂⊃⊄⊅⊆⊇⊈⊉⊍⊎⊖∅")))
+ (operator-char . ,(rx (any "-:+/*~?|=^!%&,<>».;\\∈∉∋∌∩∪≼≽⊂⊃⊄⊅⊆⊇⊈⊉⊍⊎⊖∅")))
(set-operator
. ,(rx (opt "R")
"\("
@@ -488,9 +484,6 @@ 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))
@@ -518,7 +511,12 @@ GROUPS is allowed to reference optional match groups."
(0+ space)
(group (symbol identifier)))
1 'perl6-label)
- (,(perl6-rx (symbol identifier)) 0 'perl6-identifier)
+ (,(perl6-rx
+ (opt "::")
+ identifier
+ (opt (0+ "::" identifier))
+ (opt "::"))
+ 0 'perl6-identifier)
(,(perl6-rx operator-char) 0 'perl6-operator)
(,(perl6-rx base-number)
(1 'perl6-number)
- [nongnu] elpa/raku-mode 8043c16dd1 016/253: Grammar fixes, (continued)
- [nongnu] elpa/raku-mode 8043c16dd1 016/253: Grammar fixes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ec9d721334 024/253: Simpler approach for double-quote-words, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6e8b0fd8c4 032/253: Highlight "rule q {}" correctly, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode fbe23fa55d 014/253: Require whitespace after (my|our), ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4556ff4e9b 038/253: Support non-ASCII identifiers, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a349f9a7ff 076/253: Also highlight labels after loop control statements, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 1eaa1452bc 067/253: More robust highlighting of set operators, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9339de70ac 074/253: Highlight labels, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode f376ce3cfa 035/253: Add MELPA badge, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d017e51bd4 062/253: Set 'face property, not 'font-lock-face, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode bb9f553d91 079/253: Highlight solitary colon (:) operator,
ELPA Syncer <=
- [nongnu] elpa/raku-mode f3690a05d5 122/253: Fix highlighting of empty comment lines, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e11d5b76fe 104/253: Remove superfluous space from syntax descriptor, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 456d718152 116/253: Add comments to perl6-font-lock-keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 564cbfa7a2 119/253: Remove unnecessary 'let', ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode b6410f9d4c 126/253: Fix highlighting of ::foo, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 60966ea875 133/253: Highlight function composition operator, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 601f37ef15 136/253: Bool type was added., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 72f21d4a91 171/253: Just forcing reload to use change in cask, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode e5ab8b0589 175/253: Reverting to original cask, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode cc28223bb7 182/253: add new name categories and other improvements, ELPA Syncer, 2022/01/29