[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 014a7b44fd 010/253: Abort Perl 6 detection if we
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 014a7b44fd 010/253: Abort Perl 6 detection if we reach end of file |
Date: |
Sat, 29 Jan 2022 08:28:34 -0500 (EST) |
branch: elpa/raku-mode
commit 014a7b44fdd789af0c77bc1cb1e0d23d7b8af0ad
Author: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Commit: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com>
Abort Perl 6 detection if we reach end of file
This was causing an infinite loop when opening e.g. an empty .pl file.
---
perl6-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/perl6-mode.el b/perl6-mode.el
index 59940e1661..3b9ab84812 100644
--- a/perl6-mode.el
+++ b/perl6-mode.el
@@ -75,7 +75,9 @@
(let ((keep-going t)
(found-perl6 nil))
(while keep-going
- (cond ((looking-at "^ *\\(?:#.*\\)?$")
+ (cond ((eq (point) (point-max))
+ (setq keep-going nil))
+ ((looking-at "^ *\\(?:#.*\\)?$")
nil)
((looking-at perl6-magic-pattern)
(setq keep-going nil
- [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 <=
- [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, 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