[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 6e8b0fd8c4 032/253: Highlight "rule q {}" correc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 6e8b0fd8c4 032/253: Highlight "rule q {}" correctly |
Date: |
Sat, 29 Jan 2022 08:28:36 -0500 (EST) |
branch: elpa/raku-mode
commit 6e8b0fd8c4d4e5b8bb79ac85fe39ee23b097ceeb
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Highlight "rule q {}" correctly
---
perl6-font-lock.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 6ca307b3ef..4cace48a86 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -114,7 +114,8 @@
(routine . ,(rx (or "macro" "sub" "submethod" "method"
"multi" "proto" "only" "category")))
(module . ,(rx (or "module" "class" "role" "package"
- "enum" "grammar" "slang" "subset")))
+ "enum" "grammar" "slang" "subset")))
+ (rule . ,(rx (or "regex" "rule" "token")))
(include . ,(rx (or "use" "require")))
(conditional . ,(rx (or "if" "else" "elsif" "unless")))
(scope . ,(rx (or "let" "my" "our" "state" "temp" "has"
@@ -328,6 +329,9 @@ Takes STATE, the parse state."
(,(perl6-rx (group (any ".^")) (group identifier symbol-end))
(1 'perl6-operator)
(2 'perl6-identifier))
+ (,(perl6-rx (group symbol-start rule) (1+ space) (group identifier))
+ (1 'perl6-routine)
+ (2 'perl6-identifier))
(,(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)
- [nongnu] branch elpa/raku-mode created (now 977b14a7c1), ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 014a7b44fd 010/253: Abort Perl 6 detection if we reach end of file, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode d3ba5aab7e 036/253: Try to fix formatting of MELPA badge, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 2810276a92 023/253: Initial support for double-quote-words, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 5e7b03579f 009/253: Document filetype detection, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 09460a1f18 006/253: Include more Perl 6 declarations for magic-mode detections, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode edbe902cf4 021/253: Update Emacs version requirement in README, ELPA Syncer, 2022/01/29
- [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 <=
- [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, 2022/01/29
- [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