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

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

[elpa] externals/phps-mode 0dd5d89 08/11: Added bookkeeping support of c


From: Christian Johansson
Subject: [elpa] externals/phps-mode 0dd5d89 08/11: Added bookkeeping support of chained variable assignments
Date: Sat, 18 Sep 2021 16:22:45 -0400 (EDT)

branch: externals/phps-mode
commit 0dd5d899f15e33d6118a18962c487db86bb4cc2f
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added bookkeeping support of chained variable assignments
---
 phps-mode-lex-analyzer.el           | 1 -
 test/phps-mode-test-lex-analyzer.el | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/phps-mode-lex-analyzer.el b/phps-mode-lex-analyzer.el
index d121f00..b8e00af 100644
--- a/phps-mode-lex-analyzer.el
+++ b/phps-mode-lex-analyzer.el
@@ -1414,7 +1414,6 @@ SQUARE-BRACKET-LEVEL and ROUND-BRACKET-LEVEL."
 
                       ;; Stand-alone variable assignment
                       (when (and (equal token 'T_VARIABLE)
-                                 first-token-on-line
                                  (string= next-token "="))
                         (setq bookkeeping-in-assignment t))
 
diff --git a/test/phps-mode-test-lex-analyzer.el 
b/test/phps-mode-test-lex-analyzer.el
index 223c7e0..895f6b3 100644
--- a/test/phps-mode-test-lex-analyzer.el
+++ b/test/phps-mode-test-lex-analyzer.el
@@ -1607,7 +1607,7 @@
    (should
     (equal
      (phps-mode-test--hash-to-list (phps-mode-lex-analyzer--get-bookkeeping) t)
-     '((" id $a" 1) (" id $b") (" id $c") ((8 10) 1) ((13 15) 1) ((18 20) 1) 
((31 33) 1) ((51 53) 1) ((99 101) 1) ((119 121) 1) ((167 169) 1) ((187 189) 
1)))))
+     '((" id $a" 1) ((8 10) 1) (" id $b" 1) ((13 15) 1) (" id $c" 1) ((18 20) 
1) ((31 33) 1) ((51 53) 1) ((99 101) 1) ((119 121) 1) ((167 169) 1) ((187 189) 
1)))))
 
   )
 



reply via email to

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