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

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

[elpa] externals/phps-mode 969a4d1 278/405: Fixed syntax for coalesce as


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 969a4d1 278/405: Fixed syntax for coalesce assignment operator
Date: Sat, 13 Jul 2019 10:00:31 -0400 (EDT)

branch: externals/phps-mode
commit 969a4d1718822a5cd911d713282d519c32d466e2
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    Fixed syntax for coalesce assignment operator
---
 phps-mode-test-lexer.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/phps-mode-test-lexer.el b/phps-mode-test-lexer.el
index 61b5e2d..e688032 100644
--- a/phps-mode-test-lexer.el
+++ b/phps-mode-test-lexer.el
@@ -162,11 +162,11 @@
                   '((T_OPEN_TAG 1 . 7) (T_STRING 7 . 18) ("(" 18 . 19) 
(T_VARIABLE 19 . 24) ("," 24 . 25) (T_VARIABLE 26 . 31) (")" 31 . 32)))))
 
   (phps-mode-test-with-buffer
-   "<?php\n$username = $_GET['user'] ?? 'nobody';\n$username ??= $_GET['user'] 
: 'nobody2';\n"
-   "Coalescing operator and coalescing assignment"
+   "<?php\n$username = $_GET['user'] ?? 
'nobody';\n$this->request->data['comments']['user_id'] ??= 'value';\n"
+   "Coalescing comparison operator and coalescing assignment operator"
    ;; (message "Tokens: %s" (phps-mode-lexer-get-tokens))
    (should (equal (phps-mode-lexer-get-tokens)
-                  '((T_OPEN_TAG 1 . 7) (T_VARIABLE 7 . 16) ("=" 17 . 18) 
(T_VARIABLE 19 . 24) ("[" 24 . 25) (T_CONSTANT_ENCAPSED_STRING 25 . 31) ("]" 31 
. 32) (T_COALESCE 33 . 35) (T_CONSTANT_ENCAPSED_STRING 36 . 44) (";" 44 . 45) 
(T_VARIABLE 46 . 55) (T_COALESCE_EQUAL 56 . 59) (T_VARIABLE 60 . 65) ("[" 65 . 
66) (T_CONSTANT_ENCAPSED_STRING 66 . 72) ("]" 72 . 73) (":" 74 . 75) 
(T_CONSTANT_ENCAPSED_STRING 76 . 85) (";" 85 . 86)))))
+                  '((T_OPEN_TAG 1 . 7) (T_VARIABLE 7 . 16) ("=" 17 . 18) 
(T_VARIABLE 19 . 24) ("[" 24 . 25) (T_CONSTANT_ENCAPSED_STRING 25 . 31) ("]" 31 
. 32) (T_COALESCE 33 . 35) (T_CONSTANT_ENCAPSED_STRING 36 . 44) (";" 44 . 45) 
(T_VARIABLE 46 . 51) (T_OBJECT_OPERATOR 51 . 53) (T_STRING 53 . 60) 
(T_OBJECT_OPERATOR 60 . 62) (T_STRING 62 . 66) ("[" 66 . 67) 
(T_CONSTANT_ENCAPSED_STRING 67 . 77) ("]" 77 . 78) ("[" 78 . 79) 
(T_CONSTANT_ENCAPSED_STRING 79 . 88) ("]" 88 . 89) (T_COALESCE_EQUA [...]
 
   ;; TODO Add test for long as var offset
 



reply via email to

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