[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phps-mode 777c88da24 12/17: Fixed byte-compilation warn
From: |
Christian Johansson |
Subject: |
[elpa] externals/phps-mode 777c88da24 12/17: Fixed byte-compilation warning |
Date: |
Tue, 26 Jul 2022 08:44:20 -0400 (EDT) |
branch: externals/phps-mode
commit 777c88da24ccbbced7cd56263e8aac30453765f2
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Fixed byte-compilation warning
---
phps-mode-lexer.el | 53 ++++++++++++++++++++++++++---------------------------
1 file changed, 26 insertions(+), 27 deletions(-)
diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el
index 5d79de85fc..3abaa189f7 100644
--- a/phps-mode-lexer.el
+++ b/phps-mode-lexer.el
@@ -2043,33 +2043,32 @@
(while (< lambda-i lambda-length)
(let ((lambd (nth lambda-i lambdas)))
- (let ((old-match-length phps-mode-lexer--match-length))
-
- (let ((lambda-result
- (funcall (nth 0 lambd))))
- (when lambda-result
- (let ((match-end (match-end 0))
- (match-beginning (match-beginning 0)))
- (let ((matching-length (- match-end match-beginning)))
- (when (> matching-length 0)
- (when (or
- (not phps-mode-lexer--match-length)
- (> matching-length
phps-mode-lexer--match-length))
- (setq
- phps-mode-lexer--match-length matching-length)
- (setq
- phps-mode-lexer--match-body (nth 1 lambd))
- (setq
- phps-mode-lexer--match-data (match-data))
- ;; Debug new matches
- (phps-mode-debug-message
- (message
- "Found new match (%d) %s"
- phps-mode-lexer--match-length
- phps-mode-lexer--match-body))))))))
-
- (when (fboundp 'thread-yield)
- (thread-yield))))
+
+ (let ((lambda-result
+ (funcall (nth 0 lambd))))
+ (when lambda-result
+ (let ((match-end (match-end 0))
+ (match-beginning (match-beginning 0)))
+ (let ((matching-length (- match-end match-beginning)))
+ (when (> matching-length 0)
+ (when (or
+ (not phps-mode-lexer--match-length)
+ (> matching-length phps-mode-lexer--match-length))
+ (setq
+ phps-mode-lexer--match-length matching-length)
+ (setq
+ phps-mode-lexer--match-body (nth 1 lambd))
+ (setq
+ phps-mode-lexer--match-data (match-data))
+ ;; Debug new matches
+ (phps-mode-debug-message
+ (message
+ "Found new match (%d) %s"
+ phps-mode-lexer--match-length
+ phps-mode-lexer--match-body))))))))
+
+ (when (fboundp 'thread-yield)
+ (thread-yield)))
(setq lambda-i (1+ lambda-i)))))
;; Did we find a match?
- [elpa] externals/phps-mode 3a59ef2141 05/17: Added tests for new lexer tokens, (continued)
- [elpa] externals/phps-mode 3a59ef2141 05/17: Added tests for new lexer tokens, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode b9f74656ad 02/17: Added ONUM regex, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 4f936cd5cd 06/17: Fixed byte-compilation issue with new lexer rules, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 3d4576eac6 08/17: Another fix for readonly, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode e50ecb53be 09/17: More debugging byte-compilation issue, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 3f9898cd2a 11/17: Added instructions of how to update lexer rules, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode f070d688a4 13/17: Added TODO items, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode e84ba21c7d 15/17: Updated TODO, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode a56b01bd3f 17/17: Updated version and date, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode e5fda9efb3 10/17: New lexer tokens working after byte-compilation, Christian Johansson, 2022/07/26
- [elpa] externals/phps-mode 777c88da24 12/17: Fixed byte-compilation warning,
Christian Johansson <=
- [elpa] externals/phps-mode a682f890c1 16/17: Fixed indentation for enumerations, Christian Johansson, 2022/07/26