branch: externals/phps-mode commit 90d059cca8120b659e61835f67302ce4e63cadcf Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
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