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