emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/phps-mode 90d059c 064/405: Fixed bug in incremental lex


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 90d059c 064/405: Fixed bug in incremental lexer logic
Date: Sat, 13 Jul 2019 09:59:44 -0400 (EDT)

branch: externals/phps-mode
commit 90d059cca8120b659e61835f67302ce4e63cadcf
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    Fixed bug in incremental lexer logic
---
 phps-lexer.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/phps-lexer.el b/phps-lexer.el
index 88d65b3..dfca7c2 100644
--- a/phps-lexer.el
+++ b/phps-lexer.el
@@ -1308,9 +1308,9 @@ ANY_CHAR'
             (setq phps-mode/state_stack state-stack)
             (setq phps-mode/lexer-states new-states)
             ;; (message "Rewinding lex to state: %s and stack: %s and states: 
%s and start: %s" state state-stack new-states previous-token-start)
-            (semantic-lex previous-token-start (point-max)))
+            (setq phps-mode/lexer-tokens (semantic-lex previous-token-start 
(point-max))))
         (display-warning "phps-mode" (format "Found no state to rewind to for 
%s in stack %s" change-start states))
-        (semantic-lex-buffer)))
+        (phps-mode/lex--RUN)))
     (setq phps-mode/buffer-changes--start nil)))
 
 (define-lex phps-mode/tags-lexer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]