branch: externals/phps-mode
commit a30e5ff0539c143e76df9dd275bafd2e3cd77259
Author: Christian Johansson <christ...@cvj.se>
Commit: Christian Johansson <christ...@cvj.se>

    Run incremental lexer when processing file if buffer change
---
 phps-mode-functions.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/phps-mode-functions.el b/phps-mode-functions.el
index dd4e5ce..cc80145 100644
--- a/phps-mode-functions.el
+++ b/phps-mode-functions.el
@@ -58,9 +58,10 @@
 
 (defun phps-mode-functions-process-current-buffer ()
   "Process current buffer, generate indentations and Imenu."
+  (when (phps-mode-functions-get-buffer-changes-start)
+    (phps-mode-lexer-run-incremental)
+    (setq phps-mode-functions-processed-buffer nil))
   (unless phps-mode-functions-processed-buffer
-    (when (phps-mode-functions-get-buffer-changes-start)
-      (phps-mode-lexer-run-incremental))
     (phps-mode-functions--process-current-buffer)
     (setq phps-mode-functions-processed-buffer t)))
 

Reply via email to