We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37aaab5 commit 75c6836Copy full SHA for 75c6836
php-mode-test.el
@@ -103,3 +103,14 @@ Gets the face of the text after the comma."
103
(re-search-forward "^if ")
104
(should (string= (buffer-substring-no-properties (match-beginning 0) (point-max))
105
expected)))))
106
+
107
+(ert-deftest php-mode-test-issue-19 ()
108
+ "Alignment of arrow operators."
109
+ (with-php-mode-test ("issue-19.php")
110
+ (indent-region (point-min) (point-max))
111
+ (goto-char (point-min))
112
+ (while (re-search-forward "^\\s-*\\$object->")
113
+ ;; Point is just after `->'
114
+ (let ((col (current-column)))
115
+ (search-forward "->")
116
+ (should (eq (current-column) col))))))
0 commit comments