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

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

[elpa] externals/phps-mode 1072b2d 14/62: Improved debugging of lex-anal


From: Christian Johansson
Subject: [elpa] externals/phps-mode 1072b2d 14/62: Improved debugging of lex-analyzer
Date: Tue, 20 Apr 2021 10:56:14 -0400 (EDT)

branch: externals/phps-mode
commit 1072b2d4dc6efd8cedb3bbd6feb25ec02602fdc0
Author: Christian Johansson <christian@mediastrategi.se>
Commit: Christian Johansson <christian@mediastrategi.se>

    Improved debugging of lex-analyzer
---
 phps-mode-lexer.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/phps-mode-lexer.el b/phps-mode-lexer.el
index ec98b79..4db57f1 100644
--- a/phps-mode-lexer.el
+++ b/phps-mode-lexer.el
@@ -246,6 +246,11 @@
   "Emit TOKEN with START and END."
   (semantic-lex-push-token (semantic-lex-token token start end))
   (push `(,token ,start . ,end) phps-mode-lexer--generated-tokens)
+
+  (phps-mode-debug-message
+   (message
+    "Emitted token %s"
+    `(,token ,start . ,end)))
   
   ;; Push token start, end, lexer state and state stack to variable
   (push
@@ -445,6 +450,7 @@
 
       (phps-mode-lexer--match-macro
        (and ST_IN_SCRIPTING (looking-at "exit"))
+       (message "was here")
        (phps-mode-lexer--return-token-with-indent 'T_EXIT))
 
       (phps-mode-lexer--match-macro



reply via email to

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