[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 9fa9e3968e 091/253: pcase is more straightforwar
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 9fa9e3968e 091/253: pcase is more straightforward than let+cond here |
Date: |
Sat, 29 Jan 2022 08:28:45 -0500 (EST) |
branch: elpa/raku-mode
commit 9fa9e3968ea16c92b4dc65de7c7898628d9028b0
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
pcase is more straightforward than let+cond here
---
perl6-font-lock.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/perl6-font-lock.el b/perl6-font-lock.el
index 64691ccc9f..b6e4816d8d 100644
--- a/perl6-font-lock.el
+++ b/perl6-font-lock.el
@@ -396,10 +396,9 @@ Takes arguments START and END which delimit the region to
propertize."
"Specify font lock faces based on syntax table entries.
Takes STATE, the parse state."
- (let ((context (perl6-syntax-context state)))
- (cond
- ((eq context 'string) 'perl6-string)
- ((eq context 'comment) 'perl6-comment))))
+ (pcase (perl6-syntax-context state)
+ (`string 'perl6-string)
+ (`comment 'perl6-comment)))
(defun perl6-search-when (regex condition limit)
"Search forward for REGEX if the match satisfies CONDITION.
- [nongnu] elpa/raku-mode 89d6145859 149/253: use proper name for a multi sub or method, (continued)
- [nongnu] elpa/raku-mode 89d6145859 149/253: use proper name for a multi sub or method, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a594f53e09 141/253: Highlight with/orwith/without, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a0cd586520 170/253: Following this advice http://stackoverflow.com/questions/26108655/error-updating-emacs-packages-failed-to-download-gnu-archive, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4a018be623 172/253: Adds BagHash to check again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 992d8af9de 164/253: add test for private methods, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 27b90214e3 211/253: Auto insert skeletons., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 04f458529e 206/253: Rename perl6 -> raku in test files, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ed816f0ce3 214/253: Add a new item, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0968a528bb 216/253: Fix wrong slashes., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 21af6e8398 224/253: Add comment-style highlighting to POD., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9fa9e3968e 091/253: pcase is more straightforward than let+cond here,
ELPA Syncer <=
- [nongnu] elpa/raku-mode aa5078f9cc 112/253: Mention test suite in README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 299099e246 102/253: Simplify variable fontification, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8ecc3daa40 113/253: Expand comment, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6d4ef1743a 118/253: More robust comment highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 07b36e8506 114/253: Amend comment about magic-mode-alist a bit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 730155c851 103/253: Apply prefix syntax property to sigils and twigils, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 2b5f69ade1 094/253: Fix highlighting of some non-alphanumberic RSXZ metaops, like C«R<», ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode cf09f024a3 099/253: Support some unicode quote delimiters, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 87fdf3d563 085/253: Highlight numbered match variables ($1, $2, ...), ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 2a9e959a24 092/253: Improve highlighting of bracketed strings/comments, ELPA Syncer, 2022/01/29