[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 023eb3227b 007/253: Nullify case-fold-search for
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 023eb3227b 007/253: Nullify case-fold-search for the entire function body |
Date: |
Sat, 29 Jan 2022 08:28:34 -0500 (EST) |
branch: elpa/raku-mode
commit 023eb3227b285f53c21c02304f2c19790645fa3e
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Nullify case-fold-search for the entire function body
---
perl6-mode.el | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/perl6-mode.el b/perl6-mode.el
index 6a198c3ecb..59940e1661 100644
--- a/perl6-mode.el
+++ b/perl6-mode.el
@@ -69,21 +69,21 @@
;;;###autoload
(defun perl6-magic-matcher ()
"Return non-nil if the current buffer is probably a Perl 6 file."
- (and (and (stringp buffer-file-name)
- (string-match "\\.\\(?:t\\|p[lm]\\)\\'" buffer-file-name))
- (let ((case-fold-search nil)
- (keep-going t)
- (found-perl6 nil))
- (while keep-going
- (cond ((looking-at "^ *\\(?:#.*\\)?$")
- nil)
- ((looking-at perl6-magic-pattern)
- (setq keep-going nil
- found-perl6 t))
- (t
- (setq keep-going nil)))
- (beginning-of-line 2))
- found-perl6)))
+ (let ((case-fold-search nil))
+ (and (and (stringp buffer-file-name)
+ (string-match "\\.\\(?:t\\|p[lm]\\)\\'" buffer-file-name))
+ (let ((keep-going t)
+ (found-perl6 nil))
+ (while keep-going
+ (cond ((looking-at "^ *\\(?:#.*\\)?$")
+ nil)
+ ((looking-at perl6-magic-pattern)
+ (setq keep-going nil
+ found-perl6 t))
+ (t
+ (setq keep-going nil)))
+ (beginning-of-line 2))
+ found-perl6))))
;;;###autoload
(add-to-list 'magic-mode-alist '(perl6-magic-matcher . perl6-mode))
- [nongnu] elpa/raku-mode eb32e01386 045/253: Correctly highilight version literal ranges, (continued)
- [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, 2022/01/29
- [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 <=
- [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
- [nongnu] elpa/raku-mode b111c81c75 031/253: Move set operator regex into perl6-rx, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 1ef289eb4d 012/253: Consider 4096 be eof when looking for the next line, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 2257deb15a 013/253: Simplify the magic matching logic, ELPA Syncer, 2022/01/29